v0.14.0
Public Member Functions | Public Attributes | List of all members
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 getGardAtGaussPtsPtr ()
 
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 59 of file ADOLCPlasticity.hpp.

Constructor & Destructor Documentation

◆ CommonData()

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

Definition at line 129 of file ADOLCPlasticity.hpp.

129  {
130 
131  CHK_THROW_MESSAGE(getDefaultMaterialParameters(), "get parameters failed");
132  }

Member Function Documentation

◆ getDefaultMaterialParameters()

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

Definition at line 109 of file ADOLCPlasticity.hpp.

109  {
111  PetscBool b_bar = bBar ? PETSC_TRUE : PETSC_FALSE;
112  CHKERR PetscOptionsGetBool(PETSC_NULL, PETSC_NULL, "-b_bar", &b_bar,
113  PETSC_NULL);
114  bBar = b_bar;
116  }

◆ getFTensor1PlasticStrainAtGaussPts()

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

Definition at line 74 of file ADOLCPlasticity.hpp.

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

◆ getFTensor1StressAtGaussPts()

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

Definition at line 64 of file ADOLCPlasticity.hpp.

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

◆ getGardAtGaussPtsPtr()

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

Definition at line 103 of file ADOLCPlasticity.hpp.

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

◆ getInternalVariables()

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

Definition at line 92 of file ADOLCPlasticity.hpp.

92  {
93  return getVectorAdaptor(&(activeVariablesW(gg, 12)),
94  activeVariablesW.size2() - 12);
95  }

◆ getPlasticStrain()

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

Definition at line 88 of file ADOLCPlasticity.hpp.

88  {
89  return getVectorAdaptor(&(activeVariablesW(gg, 0)), 6);
90  }

◆ getPlasticStrainMatrixPtr()

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

Definition at line 121 of file ADOLCPlasticity.hpp.

121  {
122  return boost::shared_ptr<MatrixDouble>(shared_from_this(),
124  }

◆ getStressMatrixPtr()

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

Definition at line 118 of file ADOLCPlasticity.hpp.

118  {
119  return boost::shared_ptr<MatrixDouble>(shared_from_this(), &stressMatrix);
120  }

Member Data Documentation

◆ activeVariablesW

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

Definition at line 61 of file ADOLCPlasticity.hpp.

◆ bBar

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

Definition at line 107 of file ADOLCPlasticity.hpp.

◆ deltaGamma

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

Definition at line 97 of file ADOLCPlasticity.hpp.

◆ gradAtGaussPts

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

Definition at line 83 of file ADOLCPlasticity.hpp.

◆ gradientW

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

Definition at line 62 of file ADOLCPlasticity.hpp.

◆ internalVariablesPtr

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

Definition at line 99 of file ADOLCPlasticity.hpp.

◆ internalVariablesSize

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

Definition at line 101 of file ADOLCPlasticity.hpp.

◆ materialTangentOperator

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

Definition at line 86 of file ADOLCPlasticity.hpp.

◆ plasticStrainMatrix

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

Definition at line 127 of file ADOLCPlasticity.hpp.

◆ plasticStrainPtr

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

Definition at line 98 of file ADOLCPlasticity.hpp.

◆ plasticStrainSize

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

Definition at line 100 of file ADOLCPlasticity.hpp.

◆ stressMatrix

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

Definition at line 126 of file ADOLCPlasticity.hpp.


The documentation for this struct was generated from the following file:
FTensor::Tensor1
Definition: Tensor1_value.hpp:8
ADOLCPlasticity::CommonData::getDefaultMaterialParameters
MoFEMErrorCode getDefaultMaterialParameters()
Definition: ADOLCPlasticity.hpp:109
CHK_THROW_MESSAGE
#define CHK_THROW_MESSAGE(err, msg)
Check and throw MoFEM exception.
Definition: definitions.h:596
ADOLCPlasticity::CommonData::activeVariablesW
MatrixDouble activeVariablesW
Definition: ADOLCPlasticity.hpp:61
ADOLCPlasticity::CommonData::gradientW
MatrixDouble gradientW
Definition: ADOLCPlasticity.hpp:62
CHKERR
#define CHKERR
Inline error check.
Definition: definitions.h:535
MoFEM::getVectorAdaptor
auto getVectorAdaptor(T1 ptr, const size_t n)
Get Vector adaptor.
Definition: Templates.hpp:31
ADOLCPlasticity::CommonData::stressMatrix
MatrixDouble stressMatrix
Definition: ADOLCPlasticity.hpp:126
ADOLCPlasticity::CommonData::gradAtGaussPts
MatrixDouble gradAtGaussPts
Definition: ADOLCPlasticity.hpp:83
ADOLCPlasticity::CommonData::plasticStrainMatrix
MatrixDouble plasticStrainMatrix
Definition: ADOLCPlasticity.hpp:127
MoFEMFunctionReturn
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:416
ADOLCPlasticity::CommonData::bBar
bool bBar
Definition: ADOLCPlasticity.hpp:107
MoFEMFunctionBegin
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:346
MoFEM::PetscOptionsGetBool
PetscErrorCode PetscOptionsGetBool(PetscOptions *, const char pre[], const char name[], PetscBool *bval, PetscBool *set)
Definition: DeprecatedPetsc.hpp:182