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

Public Member Functions

 OpCalculateFStab (boost::shared_ptr< MatrixDouble > def_grad_ptr, boost::shared_ptr< MatrixDouble > def_grad_stab_ptr, boost::shared_ptr< MatrixDouble > def_grad_dot_ptr, double tau_F_ptr, double xi_F_ptr, boost::shared_ptr< MatrixDouble > grad_x_ptr, boost::shared_ptr< MatrixDouble > grad_vel_ptr)
 
MoFEMErrorCode doWork (int side, EntityType type, DataForcesAndSourcesCore::EntData &data)
 

Private Attributes

double tauFPtr
 
double xiF
 
boost::shared_ptr< MatrixDoubledefGradPtr
 
boost::shared_ptr< MatrixDoubledefGradStabPtr
 
boost::shared_ptr< MatrixDoubledefGradDotPtr
 
boost::shared_ptr< MatrixDoublegradxPtr
 
boost::shared_ptr< MatrixDoublegradVelPtr
 

Detailed Description

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

Definition at line 103 of file dynamic_first_order_con_law.cpp.

Constructor & Destructor Documentation

◆ OpCalculateFStab()

template<int DIM_0, int DIM_1>
OpCalculateFStab< DIM_0, DIM_1 >::OpCalculateFStab ( boost::shared_ptr< MatrixDouble > def_grad_ptr,
boost::shared_ptr< MatrixDouble > def_grad_stab_ptr,
boost::shared_ptr< MatrixDouble > def_grad_dot_ptr,
double tau_F_ptr,
double xi_F_ptr,
boost::shared_ptr< MatrixDouble > grad_x_ptr,
boost::shared_ptr< MatrixDouble > grad_vel_ptr )
inline
Examples
dynamic_first_order_con_law.cpp.

Definition at line 104 of file dynamic_first_order_con_law.cpp.

110 : ForcesAndSourcesCore::UserDataOperator(NOSPACE, OPLAST),
111 defGradPtr(def_grad_ptr), defGradStabPtr(def_grad_stab_ptr),
112 defGradDotPtr(def_grad_dot_ptr), tauFPtr(tau_F_ptr), xiF(xi_F_ptr),
113 gradxPtr(grad_x_ptr), gradVelPtr(grad_vel_ptr) {}
@ NOSPACE
Definition definitions.h:83
boost::shared_ptr< MatrixDouble > gradxPtr
boost::shared_ptr< MatrixDouble > defGradStabPtr
boost::shared_ptr< MatrixDouble > gradVelPtr
boost::shared_ptr< MatrixDouble > defGradPtr
boost::shared_ptr< MatrixDouble > defGradDotPtr

Member Function Documentation

◆ doWork()

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

Definition at line 115 of file dynamic_first_order_con_law.cpp.

116 {
118 // Define Indicies
121
122 // Number of Gauss points
123 const size_t nb_gauss_pts = getGaussPts().size2();
124
125 defGradStabPtr->resize(DIM_0 * DIM_1, nb_gauss_pts, false);
126 defGradStabPtr->clear();
127
128 // Extract matrix from data matrix
132
133 // tau_F = alpha deltaT
134 auto tau_F = tauFPtr;
135 double xi_F = xiF;
138
139 for (auto gg = 0; gg != nb_gauss_pts; ++gg) {
140 // Stabilised Deformation Gradient
141 t_Fstab(i, j) = t_F(i, j) + tau_F * (t_gradVel(i, j) - t_F_dot(i, j)) +
142 xi_F * (t_gradx(i, j) - t_F(i, j));
143
144 ++t_F;
145 ++t_Fstab;
146 ++t_gradVel;
147 ++t_F_dot;
148
149 ++t_gradx;
150 }
151
153 }
#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
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

◆ defGradDotPtr

template<int DIM_0, int DIM_1>
boost::shared_ptr<MatrixDouble> OpCalculateFStab< DIM_0, DIM_1 >::defGradDotPtr
private

◆ defGradPtr

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

◆ defGradStabPtr

template<int DIM_0, int DIM_1>
boost::shared_ptr<MatrixDouble> OpCalculateFStab< DIM_0, DIM_1 >::defGradStabPtr
private

◆ gradVelPtr

template<int DIM_0, int DIM_1>
boost::shared_ptr<MatrixDouble> OpCalculateFStab< DIM_0, DIM_1 >::gradVelPtr
private

◆ gradxPtr

template<int DIM_0, int DIM_1>
boost::shared_ptr<MatrixDouble> OpCalculateFStab< DIM_0, DIM_1 >::gradxPtr
private

◆ tauFPtr

template<int DIM_0, int DIM_1>
double OpCalculateFStab< DIM_0, DIM_1 >::tauFPtr
private

◆ xiF

template<int DIM_0, int DIM_1>
double OpCalculateFStab< DIM_0, DIM_1 >::xiF
private

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