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

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

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

Public Member Functions

 OpCalculateConstraintsLhs_dEPImpl (const std::string row_field_name, const std::string col_field_name, boost::shared_ptr< CommonData > common_data_ptr, boost::shared_ptr< MatrixDouble > mat_D_ptr)
 
MoFEMErrorCode iNtegrate (EntitiesFieldData::EntData &row_data, EntitiesFieldData::EntData &col_data)
 
 OpCalculateConstraintsLhs_dEPImpl (const std::string row_field_name, const std::string col_field_name, boost::shared_ptr< CommonData > common_data_ptr, boost::shared_ptr< MatrixDouble > mat_D_ptr)
 
MoFEMErrorCode iNtegrate (EntitiesFieldData::EntData &row_data, EntitiesFieldData::EntData &col_data)
 

Private Attributes

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

Detailed Description

template<int DIM, typename AssemblyDomainEleOp>
struct PlasticOps::OpCalculateConstraintsLhs_dEPImpl< DIM, GAUSS, AssemblyDomainEleOp >

Definition at line 1170 of file PlasticOpsGeneric.hpp.

Constructor & Destructor Documentation

◆ OpCalculateConstraintsLhs_dEPImpl() [1/2]

template<int DIM, typename AssemblyDomainEleOp >
PlasticOps::OpCalculateConstraintsLhs_dEPImpl< DIM, GAUSS, AssemblyDomainEleOp >::OpCalculateConstraintsLhs_dEPImpl ( const std::string  row_field_name,
const std::string  col_field_name,
boost::shared_ptr< CommonData common_data_ptr,
boost::shared_ptr< MatrixDouble >  mat_D_ptr 
)

Definition at line 1185 of file PlasticOpsGeneric.hpp.

1188 :
1189 boost::shared_ptr<CommonData> commonDataPtr;
1190 boost::shared_ptr<MatrixDouble> mDPtr;
1191};
1192
1193template <int DIM, typename AssemblyDomainEleOp>
1194OpCalculatePlasticFlowRhsImpl<DIM, GAUSS, AssemblyDomainEleOp>::

◆ OpCalculateConstraintsLhs_dEPImpl() [2/2]

template<int DIM, typename AssemblyDomainEleOp >
PlasticOps::OpCalculateConstraintsLhs_dEPImpl< DIM, GAUSS, AssemblyDomainEleOp >::OpCalculateConstraintsLhs_dEPImpl ( const std::string  row_field_name,
const std::string  col_field_name,
boost::shared_ptr< CommonData common_data_ptr,
boost::shared_ptr< MatrixDouble >  mat_D_ptr 
)

Member Function Documentation

◆ iNtegrate() [1/2]

template<int DIM, typename AssemblyDomainEleOp >
MoFEMErrorCode PlasticOps::OpCalculateConstraintsLhs_dEPImpl< DIM, GAUSS, AssemblyDomainEleOp >::iNtegrate ( EntitiesFieldData::EntData &  row_data,
EntitiesFieldData::EntData &  col_data 
)

Definition at line 1208 of file PlasticOpsGeneric.hpp.

1221 { ++t_res_flow; };
1222
1223 auto t_w = AssemblyDomainEleOp::getFTensor0IntegrationWeight();
1224 auto t_base = data.getFTensor0N();
1225 auto &nf = AssemblyDomainEleOp::locF;
1226 for (size_t gg = 0; gg != nb_integration_pts; ++gg) {
1227 double alpha = AssemblyDomainEleOp::getMeasure() * t_w;
1228 ++t_w;
1229
1231 t_rhs(L) = alpha * (t_res_flow(i, j) * t_L(i, j, L));
1232 next();
1233
1234 auto t_nf = getFTensor1FromArray<size_symm, size_symm>(nf);
1235 size_t bb = 0;
1236 for (; bb != AssemblyDomainEleOp::nbRows / size_symm; ++bb) {
1237 t_nf(L) += t_base * t_rhs(L);
1238 ++t_base;
1239 ++t_nf;
1240 }
1241 for (; bb < nb_base_functions; ++bb)
1242 ++t_base;
1243 }
1244
1246}
1247
1248template <typename AssemblyDomainEleOp>
1249struct OpCalculateConstraintsRhsImpl<GAUSS, AssemblyDomainEleOp>
1250 : public AssemblyDomainEleOp {
1251 OpCalculateConstraintsRhsImpl(const std::string field_name,
1252 boost::shared_ptr<CommonData> common_data_ptr,
1253 boost::shared_ptr<MatrixDouble> m_D_ptr);
1254 MoFEMErrorCode iNtegrate(EntitiesFieldData::EntData &data);
1255
1256private:
1257 boost::shared_ptr<CommonData> commonDataPtr;
1258 boost::shared_ptr<MatrixDouble> mDPtr;
1259};
1260
1261template <typename AssemblyDomainEleOp>
1262OpCalculateConstraintsRhsImpl<GAUSS, AssemblyDomainEleOp>::
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
@ GAUSS
Gaussian quadrature integration.
FTensor::Index< 'i', SPACE_DIM > i
FTensor::Index< 'j', 3 > j
PetscErrorCode MoFEMErrorCode
MoFEM/PETSc error code.
constexpr auto field_name
constexpr auto size_symm
Definition plastic.cpp:42

◆ iNtegrate() [2/2]

template<int DIM, typename AssemblyDomainEleOp >
MoFEMErrorCode PlasticOps::OpCalculateConstraintsLhs_dEPImpl< DIM, GAUSS, AssemblyDomainEleOp >::iNtegrate ( EntitiesFieldData::EntData &  row_data,
EntitiesFieldData::EntData &  col_data 
)

Member Data Documentation

◆ commonDataPtr

template<int DIM, typename AssemblyDomainEleOp >
boost::shared_ptr< CommonData > PlasticOps::OpCalculateConstraintsLhs_dEPImpl< DIM, GAUSS, AssemblyDomainEleOp >::commonDataPtr
private

Definition at line 1180 of file PlasticOpsGeneric.hpp.

◆ mDPtr

template<int DIM, typename AssemblyDomainEleOp >
boost::shared_ptr< MatrixDouble > PlasticOps::OpCalculateConstraintsLhs_dEPImpl< DIM, GAUSS, AssemblyDomainEleOp >::mDPtr
private

Definition at line 1181 of file PlasticOpsGeneric.hpp.


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