v0.15.0
Loading...
Searching...
No Matches
ADOLCPlasticity::OpUpdate Struct Reference
Inheritance diagram for ADOLCPlasticity::OpUpdate:
[legend]
Collaboration diagram for ADOLCPlasticity::OpUpdate:
[legend]

Public Member Functions

 OpUpdate (boost::shared_ptr< CommonData > common_data_ptr)
 
MoFEMErrorCode doWork (int side, EntityType type, DataForcesAndSourcesCore::EntData &data)
 

Protected Attributes

boost::shared_ptr< CommonDatacommonDataPtr
 

Detailed Description

Definition at line 211 of file ADOLCPlasticity.cpp.

Constructor & Destructor Documentation

◆ OpUpdate()

ADOLCPlasticity::OpUpdate::OpUpdate ( boost::shared_ptr< CommonData > common_data_ptr)

Definition at line 222 of file ADOLCPlasticity.cpp.

223 : ForcesAndSourcesCore::UserDataOperator(NOSPACE,
224 UserDataOperator::OPSPACE),
225 commonDataPtr(common_data_ptr) {}
@ NOSPACE
Definition definitions.h:83
boost::shared_ptr< CommonData > commonDataPtr

Member Function Documentation

◆ doWork()

MoFEMErrorCode ADOLCPlasticity::OpUpdate::doWork ( int side,
EntityType type,
DataForcesAndSourcesCore::EntData & data )

Definition at line 227 of file ADOLCPlasticity.cpp.

228 {
230
231 int nb_gauss_pts = getGaussPts().size2();
232
233 for (int gg = 0; gg < nb_gauss_pts; gg++) {
234 if (commonDataPtr->deltaGamma[gg] > 0) {
235 auto cp_plastic_strain = commonDataPtr->getPlasticStrain(gg);
236 auto cp_internal_variables = commonDataPtr->getInternalVariables(gg);
237 const auto nb_internal_variables = cp_internal_variables.size();
238 auto plastic_strain =
239 getVectorAdaptor(&commonDataPtr->plasticStrainPtr[gg * 6], 6);
240 auto internal_variables = getVectorAdaptor(
241 &commonDataPtr->internalVariablesPtr[gg * nb_internal_variables],
242 nb_internal_variables);
243 plastic_strain = cp_plastic_strain;
244 internal_variables = cp_internal_variables;
245 }
246 }
247
249}
#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()
auto getVectorAdaptor(T1 ptr, const size_t n)
Get Vector adaptor.
Definition Templates.hpp:31

Member Data Documentation

◆ commonDataPtr

boost::shared_ptr<CommonData> ADOLCPlasticity::OpUpdate::commonDataPtr
protected

Definition at line 219 of file ADOLCPlasticity.cpp.


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