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

#include "tutorials/adv-0_plasticity/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< CommonData > commonDataPtr
 
boost::shared_ptr< MatrixDouble > mDPtr
 

Detailed Description

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

Definition at line 888 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 901 of file PlasticOpsGeneric.hpp.

905 : AssemblyDomainEleOp(field_name, field_name, AssemblyDomainEleOp::OPROW),
906 commonDataPtr(common_data_ptr), mDPtr(m_D_ptr) {}
constexpr auto field_name
FormsIntegrators< DomainEleOp >::Assembly< A >::OpBase AssemblyDomainEleOp

◆ 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 910 of file PlasticOpsGeneric.hpp.

911 {
913
914 const size_t nb_integration_pts = AssemblyDomainEleOp::getGaussPts().size2();
915 const size_t nb_base_functions = data.getN().size2();
916
917 auto t_res_c = getFTensor0FromVec(commonDataPtr->resC);
918
919 auto next = [&]() { ++t_res_c; };
920
921 auto t_w = AssemblyDomainEleOp::getFTensor0IntegrationWeight();
922 auto &nf = AssemblyDomainEleOp::locF;
923 auto t_base = data.getFTensor0N();
924 for (size_t gg = 0; gg != nb_integration_pts; ++gg) {
925 const double alpha = AssemblyDomainEleOp::getMeasure() * t_w;
926 ++t_w;
927 const auto res = alpha * t_res_c;
928 next();
929
930 size_t bb = 0;
931 for (; bb != AssemblyDomainEleOp::nbRows; ++bb) {
932 nf[bb] += t_base * res;
933 ++t_base;
934 }
935 for (; bb < nb_base_functions; ++bb)
936 ++t_base;
937 }
938
940}
#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()

◆ 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 896 of file PlasticOpsGeneric.hpp.

◆ mDPtr

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

Definition at line 897 of file PlasticOpsGeneric.hpp.


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