v0.15.0
Loading...
Searching...
No Matches
ADOLCPlasticity::CommonData Struct Reference

common data used by volume elements More...

#include "users_modules/adolc-plasticity/src/ADOLCPlasticity.hpp"

Inheritance diagram for ADOLCPlasticity::CommonData:
[legend]
Collaboration diagram for ADOLCPlasticity::CommonData:
[legend]

Public Member Functions

auto getFTensor1StressAtGaussPts (int gg=0)
 
auto getFTensor1PlasticStrainAtGaussPts (int gg=0)
 
auto getPlasticStrain (int gg=0)
 
auto getInternalVariables (int gg=0)
 
auto getGradAtGaussPtsPtr ()
 
auto getMatTangentPtr ()
 
MoFEMErrorCode getDefaultMaterialParameters ()
 
boost::shared_ptr< MatrixDouble > getStressMatrixPtr ()
 
boost::shared_ptr< MatrixDouble > getPlasticStrainMatrixPtr ()
 
 CommonData ()
 

Public Attributes

MatrixDouble activeVariablesW
 
MatrixDouble gradientW
 
MatrixDouble gradAtGaussPts
 
MatrixDouble materialTangentOperator
 
vector< doubledeltaGamma
 
doubleplasticStrainPtr
 
doubleinternalVariablesPtr
 
int plasticStrainSize
 
int internalVariablesSize
 
bool bBar = true
 
MatrixDouble stressMatrix
 
MatrixDouble plasticStrainMatrix
 

Detailed Description

common data used by volume elements

Definition at line 61 of file ADOLCPlasticity.hpp.

Constructor & Destructor Documentation

◆ CommonData()

ADOLCPlasticity::CommonData::CommonData ( )
inline
Examples
ADOLCPlasticity.hpp.

Definition at line 135 of file ADOLCPlasticity.hpp.

135 {
136
137 CHK_THROW_MESSAGE(getDefaultMaterialParameters(), "get parameters failed");
138 }
#define CHK_THROW_MESSAGE(err, msg)
Check and throw MoFEM exception.
MoFEMErrorCode getDefaultMaterialParameters()

Member Function Documentation

◆ getDefaultMaterialParameters()

MoFEMErrorCode ADOLCPlasticity::CommonData::getDefaultMaterialParameters ( )
inline
Examples
ADOLCPlasticity.hpp.

Definition at line 115 of file ADOLCPlasticity.hpp.

115 {
117 PetscBool b_bar = bBar ? PETSC_TRUE : PETSC_FALSE;
118 CHKERR PetscOptionsGetBool(PETSC_NULLPTR, PETSC_NULLPTR, "-b_bar", &b_bar,
119 PETSC_NULLPTR);
120 bBar = b_bar;
122 }
#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()
#define CHKERR
Inline error check.
PetscErrorCode PetscOptionsGetBool(PetscOptions *, const char pre[], const char name[], PetscBool *bval, PetscBool *set)

◆ getFTensor1PlasticStrainAtGaussPts()

auto ADOLCPlasticity::CommonData::getFTensor1PlasticStrainAtGaussPts ( int gg = 0)
inline
Examples
ADOLCPlasticity.hpp.

Definition at line 76 of file ADOLCPlasticity.hpp.

76 {
78 &activeVariablesW(gg, 0),
79 &activeVariablesW(gg, 1),
80 &activeVariablesW(gg, 2),
81 &activeVariablesW(gg, 3),
82 &activeVariablesW(gg, 4),
83 &activeVariablesW(gg, 5),
84 static_cast<int>(activeVariablesW.size2())};
85 };

◆ getFTensor1StressAtGaussPts()

auto ADOLCPlasticity::CommonData::getFTensor1StressAtGaussPts ( int gg = 0)
inline
Examples
ADOLCPlasticity.hpp.

Definition at line 66 of file ADOLCPlasticity.hpp.

66 {
68 &gradientW(gg, 7),
69 &gradientW(gg, 8),
70 &gradientW(gg, 9),
71 &gradientW(gg, 10),
72 &gradientW(gg, 11),
73 static_cast<int>(gradientW.size2())};
74 };

◆ getGradAtGaussPtsPtr()

auto ADOLCPlasticity::CommonData::getGradAtGaussPtsPtr ( )
inline
Examples
ADOLCPlasticity.hpp.

Definition at line 105 of file ADOLCPlasticity.hpp.

105 {
106 return boost::shared_ptr<MatrixDouble>(shared_from_this(), &gradAtGaussPts);
107 }

◆ getInternalVariables()

auto ADOLCPlasticity::CommonData::getInternalVariables ( int gg = 0)
inline
Examples
ADOLCPlasticity.hpp.

Definition at line 94 of file ADOLCPlasticity.hpp.

94 {
95 return getVectorAdaptor(&(activeVariablesW(gg, 12)),
96 activeVariablesW.size2() - 12);
97 }
auto getVectorAdaptor(T1 ptr, const size_t n)
Get Vector adaptor.
Definition Templates.hpp:31

◆ getMatTangentPtr()

auto ADOLCPlasticity::CommonData::getMatTangentPtr ( )
inline
Examples
ADOLCPlasticity.hpp.

Definition at line 109 of file ADOLCPlasticity.hpp.

109 {
110 return boost::shared_ptr<MatrixDouble>(shared_from_this(), &materialTangentOperator);
111 }

◆ getPlasticStrain()

auto ADOLCPlasticity::CommonData::getPlasticStrain ( int gg = 0)
inline
Examples
ADOLCPlasticity.hpp.

Definition at line 90 of file ADOLCPlasticity.hpp.

90 {
91 return getVectorAdaptor(&(activeVariablesW(gg, 0)), 6);
92 }

◆ getPlasticStrainMatrixPtr()

boost::shared_ptr< MatrixDouble > ADOLCPlasticity::CommonData::getPlasticStrainMatrixPtr ( )
inline
Examples
ADOLCPlasticity.hpp.

Definition at line 127 of file ADOLCPlasticity.hpp.

127 {
128 return boost::shared_ptr<MatrixDouble>(shared_from_this(),
130 }

◆ getStressMatrixPtr()

boost::shared_ptr< MatrixDouble > ADOLCPlasticity::CommonData::getStressMatrixPtr ( )
inline
Examples
ADOLCPlasticity.hpp.

Definition at line 124 of file ADOLCPlasticity.hpp.

124 {
125 return boost::shared_ptr<MatrixDouble>(shared_from_this(), &stressMatrix);
126 }

Member Data Documentation

◆ activeVariablesW

MatrixDouble ADOLCPlasticity::CommonData::activeVariablesW
Examples
ADOLCPlasticity.hpp.

Definition at line 63 of file ADOLCPlasticity.hpp.

◆ bBar

bool ADOLCPlasticity::CommonData::bBar = true
Examples
ADOLCPlasticity.hpp.

Definition at line 113 of file ADOLCPlasticity.hpp.

◆ deltaGamma

vector<double> ADOLCPlasticity::CommonData::deltaGamma
Examples
ADOLCPlasticity.hpp.

Definition at line 99 of file ADOLCPlasticity.hpp.

◆ gradAtGaussPts

MatrixDouble ADOLCPlasticity::CommonData::gradAtGaussPts
Examples
ADOLCPlasticity.hpp.

Definition at line 87 of file ADOLCPlasticity.hpp.

◆ gradientW

MatrixDouble ADOLCPlasticity::CommonData::gradientW
Examples
ADOLCPlasticity.hpp.

Definition at line 64 of file ADOLCPlasticity.hpp.

◆ internalVariablesPtr

double* ADOLCPlasticity::CommonData::internalVariablesPtr
Examples
ADOLCPlasticity.hpp.

Definition at line 101 of file ADOLCPlasticity.hpp.

◆ internalVariablesSize

int ADOLCPlasticity::CommonData::internalVariablesSize
Examples
ADOLCPlasticity.hpp.

Definition at line 103 of file ADOLCPlasticity.hpp.

◆ materialTangentOperator

MatrixDouble ADOLCPlasticity::CommonData::materialTangentOperator
Examples
ADOLCPlasticity.hpp.

Definition at line 88 of file ADOLCPlasticity.hpp.

◆ plasticStrainMatrix

MatrixDouble ADOLCPlasticity::CommonData::plasticStrainMatrix
Examples
ADOLCPlasticity.hpp.

Definition at line 133 of file ADOLCPlasticity.hpp.

◆ plasticStrainPtr

double* ADOLCPlasticity::CommonData::plasticStrainPtr
Examples
ADOLCPlasticity.hpp.

Definition at line 100 of file ADOLCPlasticity.hpp.

◆ plasticStrainSize

int ADOLCPlasticity::CommonData::plasticStrainSize
Examples
ADOLCPlasticity.hpp.

Definition at line 102 of file ADOLCPlasticity.hpp.

◆ stressMatrix

MatrixDouble ADOLCPlasticity::CommonData::stressMatrix
Examples
ADOLCPlasticity.hpp.

Definition at line 132 of file ADOLCPlasticity.hpp.


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