#include <users_modules/eshelbian_plasticty/src/EshelbianPlasticity.hpp>
Inherits VolUserDataOperator.
Definition at line 1138 of file EshelbianPlasticity.hpp.
◆ OpCalculateStrainEnergy()
EshelbianPlasticity::OpCalculateStrainEnergy::OpCalculateStrainEnergy |
( |
const std::string |
field_name, |
|
|
boost::shared_ptr< DataAtIntegrationPts > |
data_at_pts, |
|
|
boost::shared_ptr< double > & |
e |
|
) |
| |
◆ doWork()
Definition at line 2232 of file EshelbianOperators.cpp.
2235 if (
type == MBTET) {
2236 int nb_integration_pts = data.
getN().size1();
2237 auto v = getVolume();
2238 auto t_w = getFTensor0IntegrationWeight();
2239 auto t_P = getFTensor2FromMat<3, 3>(
dataAtPts->approxPAtPts);
2240 auto t_h = getFTensor2FromMat<3, 3>(
dataAtPts->hAtPts);
2245 for (
int gg = 0; gg != nb_integration_pts; ++gg) {
2246 const double a = t_w * v;
2247 (*energy) += a * t_P(
i,
J) * t_h(
i,
J);
◆ dataAtPts
◆ energy
boost::shared_ptr<double> EshelbianPlasticity::OpCalculateStrainEnergy::energy |
|
private |
The documentation for this struct was generated from the following files: