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

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

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

Public Member Functions

 OpCalculateHenckyStressImpl (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, int S>
struct HenckyOps::OpCalculateHenckyStressImpl< DIM, GAUSS, DomainEleOp, S >

Definition at line 300 of file HenckyOps.hpp.

Constructor & Destructor Documentation

◆ OpCalculateHenckyStressImpl()

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

Definition at line 303 of file HenckyOps.hpp.

305 : DomainEleOp(field_name, DomainEleOp::OPROW),
306 commonDataPtr(common_data) {
307 std::fill(&DomainEleOp::doEntities[MBEDGE],
308 &DomainEleOp::doEntities[MBMAXTYPE], false);
309 }
DomainEle::UserDataOperator DomainEleOp
Finire element operator type.
constexpr auto field_name

Member Function Documentation

◆ doWork()

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

Definition at line 311 of file HenckyOps.hpp.

311 {
313
314 FTensor::Index<'i', DIM> i;
315 FTensor::Index<'j', DIM> j;
316 FTensor::Index<'k', DIM> k;
317 FTensor::Index<'l', DIM> l;
318
319 // const size_t nb_gauss_pts = matGradPtr->size2();
320 const size_t nb_gauss_pts = DomainEleOp::getGaussPts().size2();
321 auto t_D = getFTensor4DdgFromMat<DIM, DIM, S>(*commonDataPtr->matDPtr);
322 auto t_logC = getFTensor2SymmetricFromMat<DIM>(commonDataPtr->matLogC);
323 constexpr auto size_symm = (DIM * (DIM + 1)) / 2;
324 commonDataPtr->matHenckyStress.resize(size_symm, nb_gauss_pts, false);
325 auto t_T = getFTensor2SymmetricFromMat<DIM>(commonDataPtr->matHenckyStress);
326
327 for (size_t gg = 0; gg != nb_gauss_pts; ++gg) {
328 t_T(i, j) = t_D(i, j, k, l) * t_logC(k, l);
329 ++t_logC;
330 ++t_T;
331 ++t_D;
332 }
333
335 }
#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< 'l', 3 > l
FTensor::Index< 'j', 3 > j
FTensor::Index< 'k', 3 > k
constexpr auto size_symm
Definition plastic.cpp:42

Member Data Documentation

◆ commonDataPtr

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

Definition at line 338 of file HenckyOps.hpp.


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