v0.15.0
Loading...
Searching...
No Matches
HenckyOps::OpCalculateLogCImpl< DIM, GAUSS, DomainEleOp > Struct Template Reference

#include "tutorials/vec-2/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< CommonDatacommonDataPtr
 

Detailed Description

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

Definition at line 214 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 216 of file HenckyOps.hpp.

218 : DomainEleOp(field_name, DomainEleOp::OPROW),
219 commonDataPtr(common_data) {
220 std::fill(&DomainEleOp::doEntities[MBEDGE],
221 &DomainEleOp::doEntities[MBMAXTYPE], false);
222 }
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 224 of file HenckyOps.hpp.

224 {
226
227 FTensor::Index<'i', DIM> i;
228 FTensor::Index<'j', DIM> j;
229
230 // const size_t nb_gauss_pts = matGradPtr->size2();
231 const size_t nb_gauss_pts = DomainEleOp::getGaussPts().size2();
232 constexpr auto size_symm = (DIM * (DIM + 1)) / 2;
233 commonDataPtr->matLogC.resize(size_symm, nb_gauss_pts, false);
234
235 auto t_eig_val = getFTensor1FromMat<DIM>(commonDataPtr->matEigVal);
236 auto t_eig_vec = getFTensor2FromMat<DIM, DIM>(commonDataPtr->matEigVec);
237
238 auto t_logC = getFTensor2SymmetricFromMat<DIM>(commonDataPtr->matLogC);
239
240 for (size_t gg = 0; gg != nb_gauss_pts; ++gg) {
241 t_logC(i, j) = EigenMatrix::getMat(t_eig_val, t_eig_vec, f)(i, j);
242 ++t_eig_val;
243 ++t_eig_vec;
244 ++t_logC;
245 }
246
248 }
#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 251 of file HenckyOps.hpp.


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