v0.14.0
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
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< MatrixDouble > defGradPtr
 
boost::shared_ptr< MatrixDouble > defGradStabPtr
 
boost::shared_ptr< MatrixDouble > defGradDotPtr
 
boost::shared_ptr< MatrixDouble > gradxPtr
 
boost::shared_ptr< MatrixDouble > gradVelPtr
 

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 104 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

Definition at line 105 of file dynamic_first_order_con_law.cpp.

111 : ForcesAndSourcesCore::UserDataOperator(NOSPACE, OPLAST),
112 defGradPtr(def_grad_ptr), defGradStabPtr(def_grad_stab_ptr),
113 defGradDotPtr(def_grad_dot_ptr), tauFPtr(tau_F_ptr), xiF(xi_F_ptr),
114 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 116 of file dynamic_first_order_con_law.cpp.

117 {
119 // Define Indicies
122
123 // Number of Gauss points
124 const size_t nb_gauss_pts = getGaussPts().size2();
125
126 defGradStabPtr->resize(DIM_0 * DIM_1, nb_gauss_pts, false);
127 defGradStabPtr->clear();
128
129 // Extract matrix from data matrix
130 auto t_F = getFTensor2FromMat<SPACE_DIM, SPACE_DIM>(*defGradPtr);
131 auto t_Fstab = getFTensor2FromMat<SPACE_DIM, SPACE_DIM>(*defGradStabPtr);
132 auto t_F_dot = getFTensor2FromMat<SPACE_DIM, SPACE_DIM>(*defGradDotPtr);
133
134 // tau_F = alpha deltaT
135 auto tau_F = tauFPtr;
136 double xi_F = xiF;
137 auto t_gradx = getFTensor2FromMat<SPACE_DIM, SPACE_DIM>(*gradxPtr);
138 auto t_gradVel = getFTensor2FromMat<SPACE_DIM, SPACE_DIM>(*gradVelPtr);
139
140 for (auto gg = 0; gg != nb_gauss_pts; ++gg) {
141 // Stabilised Deformation Gradient
142 t_Fstab(i, j) = t_F(i, j) + tau_F * (t_gradVel(i, j) - t_F_dot(i, j)) +
143 xi_F * (t_gradx(i, j) - t_F(i, j));
144
145 ++t_F;
146 ++t_Fstab;
147 ++t_gradVel;
148 ++t_F_dot;
149
150 ++t_gradx;
151 }
152
154 }
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:346
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:416
FTensor::Index< 'i', SPACE_DIM > i
FTensor::Index< 'j', 3 > j

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: