v0.16.3
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
HenckyOps::OpCalculateLogCImpl< DIM, GAUSS, DomainEleOp > Struct Template Reference

#include "tutorials/vec-2_nonlinear_elasticity/src/HenckyOps.hpp"

Inheritance diagram for HenckyOps::OpCalculateLogCImpl< DIM, GAUSS, DomainEleOp >:
[legend]
Collaboration diagram for HenckyOps::OpCalculateLogCImpl< DIM, GAUSS, DomainEleOp >:
[legend]

Public Member Functions

 OpCalculateLogCImpl (const std::string field_name, boost::shared_ptr< CommonData > common_data)
 
MoFEMErrorCode doWork (int side, EntityType type, EntData &data)
 

Private Attributes

boost::shared_ptr< CommonData > commonDataPtr
 

Detailed Description

template<int DIM, typename DomainEleOp>
struct HenckyOps::OpCalculateLogCImpl< DIM, GAUSS, DomainEleOp >

Definition at line 170 of file HenckyOps.hpp.

Constructor & Destructor Documentation

◆ OpCalculateLogCImpl()

template<int DIM, typename DomainEleOp >
HenckyOps::OpCalculateLogCImpl< DIM, GAUSS, DomainEleOp >::OpCalculateLogCImpl ( const std::string  field_name,
boost::shared_ptr< CommonData >  common_data 
)
inline

Definition at line 172 of file HenckyOps.hpp.

174 : DomainEleOp(field_name, DomainEleOp::OPROW),
175 commonDataPtr(common_data) {
176 std::fill(&DomainEleOp::doEntities[MBEDGE],
177 &DomainEleOp::doEntities[MBMAXTYPE], false);
178 }
DomainEle::UserDataOperator DomainEleOp
Finire element operator type.
constexpr auto field_name

Member Function Documentation

◆ doWork()

template<int DIM, typename DomainEleOp >
MoFEMErrorCode HenckyOps::OpCalculateLogCImpl< DIM, GAUSS, DomainEleOp >::doWork ( int  side,
EntityType  type,
EntData &  data 
)
inline

Definition at line 180 of file HenckyOps.hpp.

180 {
182
183 FTensor::Index<'i', DIM> i;
184 FTensor::Index<'j', DIM> j;
185
186 // const size_t nb_gauss_pts = matGradPtr->size2();
187 const size_t nb_gauss_pts = DomainEleOp::getGaussPts().size2();
188 constexpr auto size_symm = (DIM * (DIM + 1)) / 2;
189 commonDataPtr->matLogC.resize(nb_gauss_pts, size_symm, false);
190
191 auto t_eig_val = getFTensor1FromMat<DIM>(commonDataPtr->matEigVal);
192 auto t_eig_vec = getFTensor2FromMat<DIM, DIM>(commonDataPtr->matEigVec);
193
194 auto t_logC = getFTensor2SymmetricFromMat<DIM>(commonDataPtr->matLogC);
195
196 for (size_t gg = 0; gg != nb_gauss_pts; ++gg) {
197 t_logC(i, j) = EigenMatrix::getMat(t_eig_val, t_eig_vec, f)(i, j);
198 ++t_eig_val;
199 ++t_eig_vec;
200 ++t_logC;
201 }
202
204 }
#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()
FTensor::Index< 'i', SPACE_DIM > i
FTensor::Index< 'j', 3 > j
auto getMat(A &&t_val, B &&t_vec, Fun< double > f)
Get the Mat object.
constexpr auto size_symm
Definition plastic.cpp:42

Member Data Documentation

◆ commonDataPtr

template<int DIM, typename DomainEleOp >
boost::shared_ptr<CommonData> HenckyOps::OpCalculateLogCImpl< DIM, GAUSS, DomainEleOp >::commonDataPtr
private

Definition at line 207 of file HenckyOps.hpp.


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