v0.14.0
Public Member Functions | Private Attributes | List of all members
EshelbianPlasticity::OpCalculateEshelbyStress Struct Reference

#include <users_modules/eshelbian_plasticit/src/EshelbianPlasticity.hpp>

Inheritance diagram for EshelbianPlasticity::OpCalculateEshelbyStress:
[legend]
Collaboration diagram for EshelbianPlasticity::OpCalculateEshelbyStress:
[legend]

Public Member Functions

 OpCalculateEshelbyStress (boost::shared_ptr< DataAtIntegrationPts > data_ptr)
 
MoFEMErrorCode doWork (int side, EntityType type, EntData &data)
 

Private Attributes

boost::shared_ptr< DataAtIntegrationPtsdataAtPts
 data at integration pts More...
 

Detailed Description

Definition at line 545 of file EshelbianPlasticity.hpp.

Constructor & Destructor Documentation

◆ OpCalculateEshelbyStress()

EshelbianPlasticity::OpCalculateEshelbyStress::OpCalculateEshelbyStress ( boost::shared_ptr< DataAtIntegrationPts data_ptr)
inline

Definition at line 547 of file EshelbianPlasticity.hpp.

549  dataAtPts(data_ptr) {}

Member Function Documentation

◆ doWork()

MoFEMErrorCode OpCalculateEshelbyStress::doWork ( int  side,
EntityType  type,
EntData data 
)

Definition at line 200 of file EshelbianOperators.cpp.

201  {
206 
207  int nb_integration_pts = getGaussPts().size2();
208 
209  auto t_P = getFTensor2FromMat<SPACE_DIM, SPACE_DIM>(dataAtPts->approxPAtPts);
210  auto t_F = getFTensor2FromMat<SPACE_DIM, SPACE_DIM>(dataAtPts->hAtPts);
211  auto t_energy = getFTensor0FromVec(dataAtPts->energyAtPts);
212 
213  dataAtPts->SigmaAtPts.resize(SPACE_DIM * SPACE_DIM, nb_integration_pts,
214  false);
215  auto t_eshelby_stress =
216  getFTensor2FromMat<SPACE_DIM, SPACE_DIM>(dataAtPts->SigmaAtPts);
217 
219 
220  for (auto gg = 0; gg != nb_integration_pts; ++gg) {
221  t_eshelby_stress(i, j) = t_energy * t_kd(i, j) - t_F(m, i) * t_P(m, j);
222  ++t_energy;
223  ++t_P;
224  ++t_F;
225  ++t_eshelby_stress;
226  }
227 
229 }

Member Data Documentation

◆ dataAtPts

boost::shared_ptr<DataAtIntegrationPts> EshelbianPlasticity::OpCalculateEshelbyStress::dataAtPts
private

data at integration pts

Definition at line 554 of file EshelbianPlasticity.hpp.


The documentation for this struct was generated from the following files:
NOSPACE
@ NOSPACE
Definition: definitions.h:83
FTENSOR_INDEX
#define FTENSOR_INDEX(DIM, I)
Definition: Templates.hpp:2011
EshelbianPlasticity::OpCalculateEshelbyStress::dataAtPts
boost::shared_ptr< DataAtIntegrationPts > dataAtPts
data at integration pts
Definition: EshelbianPlasticity.hpp:554
SPACE_DIM
constexpr int SPACE_DIM
Definition: child_and_parent.cpp:16
MoFEM::getFTensor0FromVec
static auto getFTensor0FromVec(ublas::vector< T, A > &data)
Get tensor rank 0 (scalar) form data vector.
Definition: Templates.hpp:135
i
FTensor::Index< 'i', SPACE_DIM > i
Definition: hcurl_divergence_operator_2d.cpp:27
t_kd
constexpr auto t_kd
Definition: free_surface.cpp:137
UserDataOperator
ForcesAndSourcesCore::UserDataOperator UserDataOperator
Definition: HookeElement.hpp:75
j
FTensor::Index< 'j', 3 > j
Definition: matrix_function.cpp:19
m
FTensor::Index< 'm', 3 > m
Definition: shallow_wave.cpp:80
FTensor::Kronecker_Delta_symmetric
Kronecker Delta class symmetric.
Definition: Kronecker_Delta.hpp:49
MoFEMFunctionReturn
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:429
MoFEMFunctionBegin
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:359