v0.15.0
Loading...
Searching...
No Matches
OpCalculateDeformationGradient< DIM_0, DIM_1 > Struct Template Reference
Inheritance diagram for OpCalculateDeformationGradient< DIM_0, DIM_1 >:
[legend]
Collaboration diagram for OpCalculateDeformationGradient< DIM_0, DIM_1 >:
[legend]

Public Member Functions

 OpCalculateDeformationGradient (boost::shared_ptr< MatrixDouble > def_grad_ptr, boost::shared_ptr< MatrixDouble > grad_tensor_ptr)
 
MoFEMErrorCode doWork (int side, EntityType type, DataForcesAndSourcesCore::EntData &data)
 

Private Attributes

boost::shared_ptr< MatrixDoublegradTensorPtr
 
boost::shared_ptr< MatrixDoubledefGradPtr
 

Detailed Description

template<int DIM_0, int DIM_1>
struct OpCalculateDeformationGradient< DIM_0, DIM_1 >
Examples
dynamic_first_order_con_law.cpp.

Definition at line 338 of file dynamic_first_order_con_law.cpp.

Constructor & Destructor Documentation

◆ OpCalculateDeformationGradient()

template<int DIM_0, int DIM_1>
OpCalculateDeformationGradient< DIM_0, DIM_1 >::OpCalculateDeformationGradient ( boost::shared_ptr< MatrixDouble > def_grad_ptr,
boost::shared_ptr< MatrixDouble > grad_tensor_ptr )
inline
Examples
dynamic_first_order_con_law.cpp.

Definition at line 340 of file dynamic_first_order_con_law.cpp.

343 : ForcesAndSourcesCore::UserDataOperator(NOSPACE, OPLAST),
344 defGradPtr(def_grad_ptr), gradTensorPtr(grad_tensor_ptr) {}
@ NOSPACE
Definition definitions.h:83
boost::shared_ptr< MatrixDouble > defGradPtr
boost::shared_ptr< MatrixDouble > gradTensorPtr

Member Function Documentation

◆ doWork()

template<int DIM_0, int DIM_1>
MoFEMErrorCode OpCalculateDeformationGradient< DIM_0, DIM_1 >::doWork ( int side,
EntityType type,
DataForcesAndSourcesCore::EntData & data )
inline
Examples
dynamic_first_order_con_law.cpp.

Definition at line 346 of file dynamic_first_order_con_law.cpp.

347 {
349 // Define Indicies
352
353 // Define Kronecker Delta
354 constexpr auto t_kd = FTensor::Kronecker_Delta<double>();
355
356 // Number of Gauss points
357 const size_t nb_gauss_pts = getGaussPts().size2();
358
359 // Resize Piola
360 defGradPtr->resize(DIM_0 * DIM_1, nb_gauss_pts, false);
361 defGradPtr->clear();
362
363 // Extract matrix from data matrix
366 for (auto gg = 0; gg != nb_gauss_pts; ++gg) {
367
368 t_F(i, j) = t_H(i, j) + t_kd(i, j);
369
370 ++t_F;
371 ++t_H;
372 }
373
375 }
Kronecker Delta class.
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
constexpr int SPACE_DIM
constexpr auto t_kd
FTensor::Index< 'i', SPACE_DIM > i
FTensor::Index< 'j', 3 > j
FTensor::Tensor2< FTensor::PackPtr< double *, 1 >, Tensor_Dim1, Tensor_Dim2 > getFTensor2FromMat(MatrixDouble &data)
Get tensor rank 2 (matrix) form data matrix.

Member Data Documentation

◆ defGradPtr

template<int DIM_0, int DIM_1>
boost::shared_ptr<MatrixDouble> OpCalculateDeformationGradient< DIM_0, DIM_1 >::defGradPtr
private

◆ gradTensorPtr

template<int DIM_0, int DIM_1>
boost::shared_ptr<MatrixDouble> OpCalculateDeformationGradient< DIM_0, DIM_1 >::gradTensorPtr
private

The documentation for this struct was generated from the following file: