v0.15.0
Loading...
Searching...
No Matches
EshelbianPlasticity::OpCalculateEshelbyStress Struct Reference

#include "users_modules/eshelbian_plasticity/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
 

Detailed Description

Definition at line 281 of file EshelbianPlasticity.hpp.

Constructor & Destructor Documentation

◆ OpCalculateEshelbyStress()

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

Definition at line 283 of file EshelbianPlasticity.hpp.

285 {

Member Function Documentation

◆ doWork()

MoFEMErrorCode OpCalculateEshelbyStress::doWork ( int side,
EntityType type,
EntData & data )
Examples
EshelbianOperators.cpp.

Definition at line 66 of file EshelbianOperators.cpp.

67 {
72
73 int nb_integration_pts = getGaussPts().size2();
74
77 auto t_energy = getFTensor0FromVec(dataAtPts->energyAtPts);
78
79 dataAtPts->SigmaAtPts.resize(SPACE_DIM * SPACE_DIM, nb_integration_pts,
80 false);
81 auto t_eshelby_stress =
83
85
86 for (auto gg = 0; gg != nb_integration_pts; ++gg) {
87 t_eshelby_stress(i, j) = t_energy * t_kd(i, j) - t_F(m, i) * t_P(m, j);
88 ++t_energy;
89 ++t_P;
90 ++t_F;
91 ++t_eshelby_stress;
92 }
93
95}
#define FTENSOR_INDEX(DIM, I)
constexpr int SPACE_DIM
Kronecker Delta class symmetric.
#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()
constexpr auto t_kd
FTensor::Index< 'i', SPACE_DIM > i
FTensor::Index< 'j', 3 > j
FTensor::Tensor2< FTensor::PackPtr< double *, 1 >, Tensor_Dim1, Tensor_Dim2 > getFTensor2FromMat(MatrixDouble &data)
Get tensor rank 2 (matrix) form data matrix.
static auto getFTensor0FromVec(ublas::vector< T, A > &data)
Get tensor rank 0 (scalar) form data vector.
FTensor::Index< 'm', 3 > m
boost::shared_ptr< DataAtIntegrationPts > dataAtPts
data at integration pts

Member Data Documentation

◆ dataAtPts

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

data at integration pts

Examples
EshelbianOperators.cpp.

Definition at line 290 of file EshelbianPlasticity.hpp.


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