v0.15.0
Loading...
Searching...
No Matches
PlasticOps::OpCalculatePlasticFlowLhs_dTAUImpl< DIM, GAUSS, AssemblyDomainEleOp > Struct Template Reference

#include "tutorials/adv-0/src/PlasticOpsGeneric.hpp"

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

Public Member Functions

 OpCalculatePlasticFlowLhs_dTAUImpl (const std::string row_field_name, const std::string col_field_name, boost::shared_ptr< CommonData > common_data_ptr, boost::shared_ptr< MatrixDouble > m_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::OpCalculatePlasticFlowLhs_dTAUImpl< DIM, GAUSS, AssemblyDomainEleOp >

Definition at line 1079 of file PlasticOpsGeneric.hpp.

Constructor & Destructor Documentation

◆ OpCalculatePlasticFlowLhs_dTAUImpl()

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

Definition at line 1094 of file PlasticOpsGeneric.hpp.

1099 : AssemblyDomainEleOp(row_field_name, col_field_name,
1100 DomainEleOp::OPROWCOL),
1101 commonDataPtr(common_data_ptr), mDPtr(m_D_ptr) {
1102 AssemblyDomainEleOp::sYmm = false;
1103}
FormsIntegrators< DomainEleOp >::Assembly< A >::OpBase AssemblyDomainEleOp

Member Function Documentation

◆ iNtegrate()

template<int DIM, typename AssemblyDomainEleOp >
MoFEMErrorCode PlasticOps::OpCalculatePlasticFlowLhs_dTAUImpl< DIM, GAUSS, AssemblyDomainEleOp >::iNtegrate ( EntitiesFieldData::EntData & row_data,
EntitiesFieldData::EntData & col_data )
Examples
PlasticOpsGeneric.hpp.

Definition at line 1120 of file PlasticOpsGeneric.hpp.

1122 {
1124
1125 FTensor::Index<'i', DIM> i;
1126 FTensor::Index<'j', DIM> j;
1127 constexpr auto size_symm = (DIM * (DIM + 1)) / 2;
1129
1130 const auto nb_integration_pts = AssemblyDomainEleOp::getGaussPts().size2();
1131 const size_t nb_row_base_functions = row_data.getN().size2();
1132 auto &locMat = AssemblyDomainEleOp::locMat;
1133
1134 auto t_res_flow_dtau =
1135 getFTensor2SymmetricFromMat<DIM>(commonDataPtr->resFlowDtau);
1136
1137 auto t_L = symm_L_tensor(FTensor::Number<DIM>());
1138
1139 auto next = [&]() { ++t_res_flow_dtau; };
1140
1141 auto t_w = AssemblyDomainEleOp::getFTensor0IntegrationWeight();
1142 auto t_row_base = row_data.getFTensor0N();
1143 for (size_t gg = 0; gg != nb_integration_pts; ++gg) {
1144 double alpha = AssemblyDomainEleOp::getMeasure() * t_w;
1145 ++t_w;
1147 t_res_vec(L) = alpha * (t_res_flow_dtau(i, j) * t_L(i, j, L));
1148 next();
1149
1150 size_t rr = 0;
1151 for (; rr != AssemblyDomainEleOp::nbRows / size_symm; ++rr) {
1152 auto t_mat =
1154 auto t_col_base = col_data.getFTensor0N(gg, 0);
1155 for (size_t cc = 0; cc != AssemblyDomainEleOp::nbCols; cc++) {
1156 t_mat(L) += t_row_base * t_col_base * t_res_vec(L);
1157 ++t_mat;
1158 ++t_col_base;
1159 }
1160 ++t_row_base;
1161 }
1162 for (; rr != nb_row_base_functions; ++rr)
1163 ++t_row_base;
1164 }
1165
1167}
#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
static auto get_mat_tensor_sym_dscalar(size_t rr, MatrixDouble &mat, FTensor::Number< 2 >)
auto symm_L_tensor(FTensor::Number< DIM >)
constexpr auto size_symm
Definition plastic.cpp:42

Member Data Documentation

◆ commonDataPtr

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

Definition at line 1089 of file PlasticOpsGeneric.hpp.

◆ mDPtr

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

Definition at line 1090 of file PlasticOpsGeneric.hpp.


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