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

#include "tutorials/adv-0_plasticity/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)
 
 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 963 of file PlasticOpsGeneric.hpp.

Constructor & Destructor Documentation

◆ OpCalculatePlasticFlowLhs_dTAUImpl() [1/2]

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

983 : AssemblyDomainEleOp(row_field_name, col_field_name,
984 DomainEleOp::OPROWCOL),
985 commonDataPtr(common_data_ptr), mDPtr(m_D_ptr) {
986 AssemblyDomainEleOp::sYmm = false;
987}
FormsIntegrators< DomainEleOp >::Assembly< A >::OpBase AssemblyDomainEleOp

◆ OpCalculatePlasticFlowLhs_dTAUImpl() [2/2]

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 
)

Member Function Documentation

◆ iNtegrate() [1/2]

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

Definition at line 1004 of file PlasticOpsGeneric.hpp.

1006 {
1008
1009 FTensor::Index<'i', DIM> i;
1010 FTensor::Index<'j', DIM> j;
1011 constexpr auto size_symm = (DIM * (DIM + 1)) / 2;
1013
1014 const auto nb_integration_pts = AssemblyDomainEleOp::getGaussPts().size2();
1015 const size_t nb_row_base_functions = row_data.getN().size2();
1016 auto &locMat = AssemblyDomainEleOp::locMat;
1017
1018 auto t_res_flow_dtau =
1019 getFTensor2SymmetricFromMat<DIM>(commonDataPtr->resFlowDtau);
1020
1021 auto t_L = FTensor::symm_l_tensor<double, DIM>();
1022
1023 auto next = [&]() { ++t_res_flow_dtau; };
1024
1025 auto t_w = AssemblyDomainEleOp::getFTensor0IntegrationWeight();
1026 auto t_row_base = row_data.getFTensor0N();
1027 for (size_t gg = 0; gg != nb_integration_pts; ++gg) {
1028 double alpha = AssemblyDomainEleOp::getMeasure() * t_w;
1029 ++t_w;
1031 t_res_vec(L) = alpha * (t_res_flow_dtau(i, j) * t_L(i, j, L));
1032 next();
1033
1034 size_t rr = 0;
1035 for (; rr != AssemblyDomainEleOp::nbRows / size_symm; ++rr) {
1036 auto t_mat =
1038 auto t_col_base = col_data.getFTensor0N(gg, 0);
1039 for (size_t cc = 0; cc != AssemblyDomainEleOp::nbCols; cc++) {
1040 t_mat(L) += t_row_base * t_col_base * t_res_vec(L);
1041 ++t_mat;
1042 ++t_col_base;
1043 }
1044 ++t_row_base;
1045 }
1046 for (; rr != nb_row_base_functions; ++rr)
1047 ++t_row_base;
1048 }
1049
1051}
#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 >)
constexpr auto size_symm
Definition plastic.cpp:42

◆ iNtegrate() [2/2]

template<int DIM, typename AssemblyDomainEleOp >
MoFEMErrorCode PlasticOps::OpCalculatePlasticFlowLhs_dTAUImpl< 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::OpCalculatePlasticFlowLhs_dTAUImpl< DIM, GAUSS, AssemblyDomainEleOp >::commonDataPtr
private

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


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