![]() |
|
#include <shape.h>
Public Member Functions | |
DShape (const unsigned &N, const unsigned &P) | |
Constructor with two parameters: a single-index shape function. More... | |
DShape (const unsigned &N, const unsigned &M, const unsigned &P) | |
Constructor with three paramters: a two-index shape function. More... | |
DShape () | |
DShape (const DShape &dshape)=delete | |
Broken copy constructor. More... | |
void | operator= (const DShape &dshape) |
void | operator= (DShape *const &dshape_pt) |
~DShape () | |
Destructor, clean up the memory allocated by this object. More... | |
void | resize (const unsigned &N, const unsigned &P, const unsigned &M=1) |
double & | operator() (const unsigned &i, const unsigned &k) |
Overload the round bracket operator for access to the data. More... | |
const double & | operator() (const unsigned &i, const unsigned &k) const |
Overload the round bracket operator (const version) More... | |
double & | operator() (const unsigned &i, const unsigned &j, const unsigned &k) |
Overload the round bracket operator, with 3 indices. More... | |
const double & | operator() (const unsigned &i, const unsigned &j, const unsigned &k) const |
Overload the round bracket operator (const version) More... | |
double & | raw_direct_access (const unsigned long &i) |
const double & | raw_direct_access (const unsigned long &i) const |
unsigned | offset (const unsigned long &i, const unsigned long &j) const |
unsigned long | nindex1 () const |
Return the range of index 1 of the derivatives of the shape functions. More... | |
unsigned long | nindex2 () const |
Return the range of index 2 of the derivatives of the shape functions. More... | |
unsigned long | nindex3 () const |
Return the range of index 3 of the derivatives of the shape functions. More... | |
Private Member Functions | |
void | range_check (const unsigned &i, const unsigned &j, const unsigned &k) const |
Private function that checks whether the indices are in range. More... | |
Private Attributes | |
double * | DPsi |
double * | Allocated_storage |
unsigned | Index1 |
Size of the first index of the shape function. More... | |
unsigned | Index2 |
Size of the second index of the shape function. More... | |
unsigned | Index3 |
Size of the third index of the shape function. More... | |
A Class for the derivatives of shape functions The class design is essentially the same as Shape, but there is on additional index that is used to indicate the coordinate direction in which the derivative is taken.
Constructor with two parameters: a single-index shape function.
References Allocated_storage, DPsi, N, and Global_Physical_Variables::P.
Constructor with three paramters: a two-index shape function.
References Allocated_storage, DPsi, N, and Global_Physical_Variables::P.
|
inline |
Default constructor - just assigns a null pointers and zero index sizes.
|
delete |
Broken copy constructor.
|
inline |
Destructor, clean up the memory allocated by this object.
References Allocated_storage.
|
inline |
Return the range of index 1 of the derivatives of the shape functions.
References Index1.
Referenced by oomph::ClampedHermiteShellBoundaryConditionElement::dshape_local(), oomph::FiniteElement::transform_derivatives(), oomph::FiniteElement::transform_derivatives_diagonal(), oomph::FiniteElement::transform_second_derivatives_diagonal(), and oomph::FiniteElement::transform_second_derivatives_template().
|
inline |
Return the range of index 2 of the derivatives of the shape functions.
References Index2.
Referenced by oomph::ClampedHermiteShellBoundaryConditionElement::dshape_local(), oomph::FiniteElement::transform_derivatives(), oomph::FiniteElement::transform_derivatives_diagonal(), oomph::FiniteElement::transform_second_derivatives_diagonal(), and oomph::FiniteElement::transform_second_derivatives_template().
|
inline |
Return the range of index 3 of the derivatives of the shape functions.
References Index3.
Referenced by oomph::ClampedHermiteShellBoundaryConditionElement::dshape_local().
Caculate the offset in flat-packed C-style, column-major format, required for a given i,j. WARNING: Only for experienced users. Only use this if raw speed is of the essence, as in the solid mechanics problems.
References i, Index2, Index3, and j.
Referenced by oomph::RefineableQDPVDElement< DIM, NNODE_1D >::fill_in_generic_contribution_to_residuals_pvd(), oomph::RefineablePVDEquations< DIM >::fill_in_generic_contribution_to_residuals_pvd(), oomph::PVDEquations< DIM >::fill_in_generic_contribution_to_residuals_pvd(), oomph::ScaleCoupledElement< ELEMENT >::fill_in_generic_contribution_to_residuals_pvd(), oomph::VolumeCoupledElement< ELEMENT >::fill_in_generic_contribution_to_residuals_pvd(), oomph::RefineablePVDEquationsWithPressure< DIM >::fill_in_generic_residual_contribution_pvd_with_pressure(), and oomph::PVDEquationsWithPressure< DIM >::fill_in_generic_residual_contribution_pvd_with_pressure().
|
inline |
|
inline |
The assignment operator does a shallow copy (resets the pointer to the data)
References DPsi, oomph::OneDimHermite::dshape(), Index1, Index2, Index3, OOMPH_CURRENT_FUNCTION, and OOMPH_EXCEPTION_LOCATION.
|
inline |
The assignment operator does a shallow copy (resets the pointer to the data)
References DPsi, Index1, Index2, Index3, OOMPH_CURRENT_FUNCTION, and OOMPH_EXCEPTION_LOCATION.
|
inlineprivate |
Private function that checks whether the indices are in range.
References i, Index1, Index2, Index3, j, k, OOMPH_CURRENT_FUNCTION, and OOMPH_EXCEPTION_LOCATION.
Referenced by operator()().
Direct access to internal storage of data in flat-packed C-style column-major format. WARNING: Only for experienced users. Only use this if raw speed is of the essence, as in the solid mechanics problems.
Referenced by oomph::RefineableQDPVDElement< DIM, NNODE_1D >::fill_in_generic_contribution_to_residuals_pvd(), oomph::RefineablePVDEquations< DIM >::fill_in_generic_contribution_to_residuals_pvd(), oomph::PVDEquations< DIM >::fill_in_generic_contribution_to_residuals_pvd(), oomph::ScaleCoupledElement< ELEMENT >::fill_in_generic_contribution_to_residuals_pvd(), oomph::VolumeCoupledElement< ELEMENT >::fill_in_generic_contribution_to_residuals_pvd(), oomph::RefineablePVDEquationsWithPressure< DIM >::fill_in_generic_residual_contribution_pvd_with_pressure(), and oomph::PVDEquationsWithPressure< DIM >::fill_in_generic_residual_contribution_pvd_with_pressure().
|
inline |
Change the size of the storage. Note that (for some strange reason) index2 is the "optional" index, to conform with the existing constructor.
References Allocated_storage, DPsi, Index1, Index2, Index3, N, and Global_Physical_Variables::P.
|
private |
|
private |
Pointer that addresses the storage that will be used to read and set the shape-function derivatives. The values are packed into a flat array of doubles.
Referenced by DShape(), operator()(), operator=(), raw_direct_access(), and resize().
|
private |
Size of the first index of the shape function.
Referenced by nindex1(), operator=(), range_check(), and resize().
|
private |
Size of the second index of the shape function.
Referenced by nindex2(), offset(), operator()(), operator=(), range_check(), and resize().
|
private |
Size of the third index of the shape function.
Referenced by nindex3(), offset(), operator()(), operator=(), range_check(), and resize().