v0.15.0
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
PlasticOps::OpCalculateConstraintsRhsImpl< GAUSS, AssemblyDomainEleOp > Struct Template Reference

#include "users_modules/multifield-thermoplasticity-private/tutorials/adv-0/src/PlasticOpsGeneric.hpp"

Inheritance diagram for PlasticOps::OpCalculateConstraintsRhsImpl< GAUSS, AssemblyDomainEleOp >:
[legend]
Collaboration diagram for PlasticOps::OpCalculateConstraintsRhsImpl< GAUSS, AssemblyDomainEleOp >:
[legend]

Public Member Functions

 OpCalculateConstraintsRhsImpl (const std::string field_name, boost::shared_ptr< CommonData > common_data_ptr, boost::shared_ptr< MatrixDouble > m_D_ptr)
 
MoFEMErrorCode iNtegrate (EntitiesFieldData::EntData &data)
 
 OpCalculateConstraintsRhsImpl (const std::string field_name, boost::shared_ptr< CommonData > common_data_ptr, boost::shared_ptr< MatrixDouble > m_D_ptr)
 
MoFEMErrorCode iNtegrate (EntitiesFieldData::EntData &data)
 

Private Attributes

boost::shared_ptr< CommonDatacommonDataPtr
 
boost::shared_ptr< MatrixDouble > mDPtr
 

Detailed Description

template<typename AssemblyDomainEleOp>
struct PlasticOps::OpCalculateConstraintsRhsImpl< GAUSS, AssemblyDomainEleOp >

Definition at line 892 of file PlasticOpsGeneric.hpp.

Constructor & Destructor Documentation

◆ OpCalculateConstraintsRhsImpl() [1/2]

template<typename AssemblyDomainEleOp >
PlasticOps::OpCalculateConstraintsRhsImpl< GAUSS, AssemblyDomainEleOp >::OpCalculateConstraintsRhsImpl ( const std::string  field_name,
boost::shared_ptr< CommonData common_data_ptr,
boost::shared_ptr< MatrixDouble >  m_D_ptr 
)

Definition at line 905 of file PlasticOpsGeneric.hpp.

906 {
907 // Opetor is only executed for vertices
908 std::fill(&DomainEleOp::doEntities[MBEDGE],
909 &DomainEleOp::doEntities[MBMAXTYPE], false);
910}

◆ OpCalculateConstraintsRhsImpl() [2/2]

template<typename AssemblyDomainEleOp >
PlasticOps::OpCalculateConstraintsRhsImpl< GAUSS, AssemblyDomainEleOp >::OpCalculateConstraintsRhsImpl ( const std::string  field_name,
boost::shared_ptr< CommonData common_data_ptr,
boost::shared_ptr< MatrixDouble >  m_D_ptr 
)

Member Function Documentation

◆ iNtegrate() [1/2]

template<typename AssemblyDomainEleOp >
MoFEMErrorCode PlasticOps::OpCalculateConstraintsRhsImpl< GAUSS, AssemblyDomainEleOp >::iNtegrate ( EntitiesFieldData::EntData &  data)

Definition at line 914 of file PlasticOpsGeneric.hpp.

914 {
916
917 FTensor::Index<'i', DIM> i;
918 FTensor::Index<'j', DIM> j;
919 FTensor::Index<'k', DIM> k;
920 FTensor::Index<'l', DIM> l;
921 FTensor::Index<'m', DIM> m;
922 FTensor::Index<'n', DIM> n;
923
924 auto &params = commonDataPtr->blockParams; ///< material parameters
925
926 const size_t nb_gauss_pts = DomainEleOp::getGaussPts().size2();
927 auto t_w = DomainEleOp::getFTensor0IntegrationWeight();
928 auto t_tau = getFTensor0FromVec(commonDataPtr->plasticTau);
929 auto t_tau_dot = getFTensor0FromVec(commonDataPtr->plasticTauDot);
930 auto t_f = getFTensor0FromVec(commonDataPtr->plasticSurface);
931 auto t_flow = getFTensor2SymmetricFromMat<DIM>(commonDataPtr->plasticFlow);
932 auto t_plastic_strain =
933 getFTensor2SymmetricFromMat<DIM>(commonDataPtr->plasticStrain);
934 auto t_stress =
935 getFTensor2SymmetricFromMat<DIM>(*(commonDataPtr->mStressPtr));
936
937 auto t_D = getFTensor4DdgFromMat<DIM, DIM, 0>(*commonDataPtr->mDPtr);
938 auto t_D_Op = getFTensor4DdgFromMat<DIM, DIM, 0>(*mDPtr);
939
940 auto t_temp = getFTensor0FromVec(TPCommonDataPtr->temperature);
941
942 auto t_diff_plastic_strain = diff_tensor(FTensor::Number<DIM>());
943 auto t_diff_deviator = diff_deviator(diff_tensor(FTensor::Number<DIM>()));
944
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
FTensor::Index< 'i', SPACE_DIM > i
const double n
refractive index of diffusive medium
FTensor::Index< 'l', 3 > l
FTensor::Index< 'j', 3 > j
FTensor::Index< 'k', 3 > k
auto diff_tensor(FTensor::Number< DIM >)
[Lambda functions]
auto diff_deviator(FTensor::Ddg< double, DIM, DIM > &&t_diff_stress, FTensor::Number< DIM >)
FTensor::Index< 'm', 3 > m

◆ iNtegrate() [2/2]

template<typename AssemblyDomainEleOp >
MoFEMErrorCode PlasticOps::OpCalculateConstraintsRhsImpl< GAUSS, AssemblyDomainEleOp >::iNtegrate ( EntitiesFieldData::EntData &  data)

Member Data Documentation

◆ commonDataPtr

template<typename AssemblyDomainEleOp >
boost::shared_ptr< CommonData > PlasticOps::OpCalculateConstraintsRhsImpl< GAUSS, AssemblyDomainEleOp >::commonDataPtr
private

Definition at line 900 of file PlasticOpsGeneric.hpp.

◆ mDPtr

template<typename AssemblyDomainEleOp >
boost::shared_ptr< MatrixDouble > PlasticOps::OpCalculateConstraintsRhsImpl< GAUSS, AssemblyDomainEleOp >::mDPtr
private

Definition at line 901 of file PlasticOpsGeneric.hpp.


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