#include <users_modules/tutorials/adv-0/src/PlasticOps.hpp>
|
| OpCalculatePlasticFlowLhs_dTAU (const std::string row_field_name, const std::string col_field_name, boost::shared_ptr< CommonData > common_data_ptr) |
|
MoFEMErrorCode | iNtegrate (EntitiesFieldData::EntData &row_data, EntitiesFieldData::EntData &col_data) |
|
| OpBaseImpl (const std::string row_field_name, const std::string col_field_name, const OpType type) |
|
MoFEMErrorCode | doWork (int row_side, int col_side, EntityType row_type, EntityType col_type, EntData &row_data, EntData &col_data) |
| Do calculations for the left hand side. More...
|
|
MoFEMErrorCode | doWork (int row_side, EntityType row_type, EntData &row_data) |
| Do calculations for the right hand side. More...
|
|
Definition at line 217 of file PlasticOps.hpp.
◆ OpCalculatePlasticFlowLhs_dTAU()
PlasticOps::OpCalculatePlasticFlowLhs_dTAU::OpCalculatePlasticFlowLhs_dTAU |
( |
const std::string |
row_field_name, |
|
|
const std::string |
col_field_name, |
|
|
boost::shared_ptr< CommonData > |
common_data_ptr |
|
) |
| |
◆ iNtegrate()
- Examples
- PlasticOps.hpp, and PlasticOpsGeneric.hpp.
Definition at line 553 of file PlasticOpsGeneric.hpp.
560 const size_t nb_integration_pts = row_data.getN().size1();
561 auto t_w = getFTensor0IntegrationWeight();
563 getFTensor2SymmetricFromMat<SPACE_DIM>(
commonDataPtr->plasticFlow);
565 auto t_row_base = row_data.getFTensor0N();
568 getFTensor4DdgFromMat<SPACE_DIM, SPACE_DIM, 0>(*
commonDataPtr->mDPtr);
571 for (
size_t gg = 0; gg != nb_integration_pts; ++gg) {
572 double alpha = getMeasure() * t_w * getTSa();
575 t_flow_stress(
i,
j) = t_D(
i,
j,
m,
n) * t_flow(
m,
n);
582 auto t_col_base = col_data.getFTensor0N(gg, 0);
584 t_mat(
i,
j) -=
alpha * t_row_base * t_col_base * t_flow_stress(
i,
j);
#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()
static auto get_mat_tensor_sym_dscalar(size_t rr, MatrixDouble &mat, FTensor::Number< 2 >)
FTensor::Index< 'j', SPACE_DIM > j
[Common data]
FTensor::Index< 'i', SPACE_DIM > i
FTensor::Index< 'm', SPACE_DIM > m
FTensor::Index< 'n', SPACE_DIM > n
int nbRows
number of dofs on rows
MatrixDouble locMat
local entity block matrix
int nbCols
number if dof on column
◆ commonDataPtr
boost::shared_ptr<CommonData> PlasticOps::OpCalculatePlasticFlowLhs_dTAU::commonDataPtr |
|
private |
The documentation for this struct was generated from the following files: