v0.14.0
Public Types | Public Member Functions | Public Attributes | List of all members
EshelbianPlasticity::PhysicalEquations Struct Referenceabstract

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

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

Public Types

typedef FTensor::Tensor1< adouble, 3 > ATensor1
 
typedef FTensor::Tensor2< adouble, 3, 3 > ATensor2
 
typedef FTensor::Tensor3< adouble, 3, 3, 3 > ATensor3
 
typedef FTensor::Tensor1< double, 3 > DTensor1
 
typedef FTensor::Tensor2< double, 3, 3 > DTensor2
 
typedef FTensor::Tensor3< double, 3, 3, 3 > DTensor3
 
typedef FTensor::Tensor0< FTensor::PackPtr< double *, 1 > > DTensor0Ptr
 
typedef FTensor::Tensor2< FTensor::PackPtr< double *, 1 >, 3, 3 > DTensor2Ptr
 
typedef FTensor::Tensor3< FTensor::PackPtr< double *, 1 >, 3, 3, 3 > DTensor3Ptr
 

Public Member Functions

 PhysicalEquations ()=delete
 
 PhysicalEquations (const int size_active, const int size_dependent)
 
virtual ~PhysicalEquations ()=default
 
virtual MoFEMErrorCode recordTape (const int tag, DTensor2Ptr *t_h)=0
 
virtual OpJacobianreturnOpJacobian (const int tag, const bool eval_rhs, const bool eval_lhs, boost::shared_ptr< DataAtIntegrationPts > data_ptr, boost::shared_ptr< PhysicalEquations > physics_ptr)=0
 
virtual VolUserDataOperatorreturnOpSpatialPhysical (const std::string &field_name, boost::shared_ptr< DataAtIntegrationPts > data_ptr, const double alpha_u)
 
virtual VolUserDataOperatorreturnOpSpatialPhysical_du_du (std::string row_field, std::string col_field, boost::shared_ptr< DataAtIntegrationPts > data_ptr, const double alpha)
 
virtual VolUserDataOperatorreturnOpCalculateEnergy (boost::shared_ptr< DataAtIntegrationPts > data_ptr, boost::shared_ptr< double > total_energy_ptr)
 
virtual VolUserDataOperatorreturnOpCalculateStretchFromStress (boost::shared_ptr< DataAtIntegrationPts > data_ptr, boost::shared_ptr< PhysicalEquations > physics_ptr)
 
Dependent variables
DTensor2Ptr get_P ()
 
Derivatives of dependent variables
DTensor3Ptr get_P_dh0 ()
 
DTensor3Ptr get_P_dh1 ()
 
DTensor3Ptr get_P_dh2 ()
 

Public Attributes

std::vector< doubleactiveVariables
 
std::vector< doubledependentVariablesPiola
 
std::vector< doubledependentVariablesPiolaDirevatives
 

Active variables

DTensor2Ptr get_h ()
 
template<int S>
static DTensor2Ptr get_VecTensor2 (std::vector< double > &v)
 
template<int S>
static DTensor0Ptr get_VecTensor0 (std::vector< double > &v)
 
template<int S0>
static DTensor3Ptr get_vecTensor3 (std::vector< double > &v, const int nba)
 

Detailed Description

Definition at line 219 of file EshelbianPlasticity.hpp.

Member Typedef Documentation

◆ ATensor1

Definition at line 221 of file EshelbianPlasticity.hpp.

◆ ATensor2

Definition at line 222 of file EshelbianPlasticity.hpp.

◆ ATensor3

Definition at line 223 of file EshelbianPlasticity.hpp.

◆ DTensor0Ptr

Definition at line 228 of file EshelbianPlasticity.hpp.

◆ DTensor1

Definition at line 224 of file EshelbianPlasticity.hpp.

◆ DTensor2

Definition at line 225 of file EshelbianPlasticity.hpp.

◆ DTensor2Ptr

Definition at line 230 of file EshelbianPlasticity.hpp.

◆ DTensor3

Definition at line 226 of file EshelbianPlasticity.hpp.

◆ DTensor3Ptr

Definition at line 231 of file EshelbianPlasticity.hpp.

Constructor & Destructor Documentation

◆ PhysicalEquations() [1/2]

EshelbianPlasticity::PhysicalEquations::PhysicalEquations ( )
delete

◆ PhysicalEquations() [2/2]

EshelbianPlasticity::PhysicalEquations::PhysicalEquations ( const int  size_active,
const int  size_dependent 
)
inline

Definition at line 234 of file EshelbianPlasticity.hpp.

235  : activeVariables(size_active, 0),
236  dependentVariablesPiola(size_dependent, 0),
237  dependentVariablesPiolaDirevatives(size_dependent * size_active, 0) {}

◆ ~PhysicalEquations()

virtual EshelbianPlasticity::PhysicalEquations::~PhysicalEquations ( )
virtualdefault

Member Function Documentation

◆ get_h()

DTensor2Ptr EshelbianPlasticity::PhysicalEquations::get_h ( )
inline

Definition at line 317 of file EshelbianPlasticity.hpp.

317 { return get_VecTensor2<0>(activeVariables); }

◆ get_P()

DTensor2Ptr EshelbianPlasticity::PhysicalEquations::get_P ( )
inline

Definition at line 325 of file EshelbianPlasticity.hpp.

325  {
326  return get_VecTensor2<0>(dependentVariablesPiola);
327  }

◆ get_P_dh0()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_P_dh0 ( )
inline

Definition at line 335 of file EshelbianPlasticity.hpp.

335  {
336  return get_vecTensor3<0>(dependentVariablesPiolaDirevatives,
337  activeVariables.size());
338  }

◆ get_P_dh1()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_P_dh1 ( )
inline

Definition at line 339 of file EshelbianPlasticity.hpp.

339  {
340  return get_vecTensor3<3>(dependentVariablesPiolaDirevatives,
341  activeVariables.size());
342  }

◆ get_P_dh2()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_P_dh2 ( )
inline

Definition at line 343 of file EshelbianPlasticity.hpp.

343  {
344  return get_vecTensor3<6>(dependentVariablesPiolaDirevatives,
345  activeVariables.size());
346  }

◆ get_VecTensor0()

template<int S>
static DTensor0Ptr EshelbianPlasticity::PhysicalEquations::get_VecTensor0 ( std::vector< double > &  v)
inlinestatic

Definition at line 279 of file EshelbianPlasticity.hpp.

279  {
280  return DTensor0Ptr(&v[S + 0]);
281  }

◆ get_VecTensor2()

template<int S>
static DTensor2Ptr EshelbianPlasticity::PhysicalEquations::get_VecTensor2 ( std::vector< double > &  v)
inlinestatic

Definition at line 273 of file EshelbianPlasticity.hpp.

273  {
274  return DTensor2Ptr(&v[S + 0], &v[S + 1], &v[S + 2], &v[S + 3], &v[S + 4],
275  &v[S + 5], &v[S + 6], &v[S + 7], &v[S + 8]);
276  }

◆ get_vecTensor3()

template<int S0>
static DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_vecTensor3 ( std::vector< double > &  v,
const int  nba 
)
inlinestatic

Definition at line 284 of file EshelbianPlasticity.hpp.

285  {
286 
287  const int A00 = nba * 0 + S0;
288  const int A01 = nba * 1 + S0;
289  const int A02 = nba * 2 + S0;
290  const int A10 = nba * 3 + S0;
291  const int A11 = nba * 4 + S0;
292  const int A12 = nba * 5 + S0;
293  const int A20 = nba * 6 + S0;
294  const int A21 = nba * 7 + S0;
295  const int A22 = nba * 8 + S0;
296 
297  return DTensor3Ptr(
298 
299  &v[A00 + 0], &v[A00 + 1], &v[A00 + 2], &v[A01 + 0], &v[A01 + 1],
300  &v[A01 + 2], &v[A02 + 0], &v[A02 + 1], &v[A02 + 2],
301 
302  &v[A10 + 0], &v[A10 + 1], &v[A10 + 2], &v[A11 + 0], &v[A11 + 1],
303  &v[A11 + 2], &v[A12 + 0], &v[A12 + 1], &v[A12 + 2],
304 
305  &v[A20 + 0], &v[A20 + 1], &v[A20 + 2], &v[A21 + 0], &v[A21 + 1],
306  &v[A21 + 2], &v[A22 + 0], &v[A22 + 1], &v[A22 + 2]
307 
308  );
309  }

◆ recordTape()

virtual MoFEMErrorCode EshelbianPlasticity::PhysicalEquations::recordTape ( const int  tag,
DTensor2Ptr t_h 
)
pure virtual

◆ returnOpCalculateEnergy()

VolUserDataOperator * EshelbianPlasticity::PhysicalEquations::returnOpCalculateEnergy ( boost::shared_ptr< DataAtIntegrationPts data_ptr,
boost::shared_ptr< double total_energy_ptr 
)
virtual

Reimplemented in EshelbianPlasticity::HMHHencky.

Definition at line 265 of file EshelbianADOL-C.cpp.

267  {
268  return nullptr;
269 }

◆ returnOpCalculateStretchFromStress()

VolUserDataOperator * EshelbianPlasticity::PhysicalEquations::returnOpCalculateStretchFromStress ( boost::shared_ptr< DataAtIntegrationPts data_ptr,
boost::shared_ptr< PhysicalEquations physics_ptr 
)
virtual

Reimplemented in EshelbianPlasticity::HMHHencky.

Definition at line 271 of file EshelbianADOL-C.cpp.

273  {
274  return nullptr;
275 }

◆ returnOpJacobian()

virtual OpJacobian* EshelbianPlasticity::PhysicalEquations::returnOpJacobian ( const int  tag,
const bool  eval_rhs,
const bool  eval_lhs,
boost::shared_ptr< DataAtIntegrationPts data_ptr,
boost::shared_ptr< PhysicalEquations physics_ptr 
)
pure virtual

◆ returnOpSpatialPhysical()

VolUserDataOperator * EshelbianPlasticity::PhysicalEquations::returnOpSpatialPhysical ( const std::string &  field_name,
boost::shared_ptr< DataAtIntegrationPts data_ptr,
const double  alpha_u 
)
virtual

Reimplemented in EshelbianPlasticity::HMHHencky, and EshelbianPlasticity::HMHNeohookean.

Definition at line 99 of file EshelbianADOL-C.cpp.

101  {
102  return new OpSpatialPhysical(field_name, data_ptr, alpha_u);
103 }

◆ returnOpSpatialPhysical_du_du()

VolUserDataOperator * EshelbianPlasticity::PhysicalEquations::returnOpSpatialPhysical_du_du ( std::string  row_field,
std::string  col_field,
boost::shared_ptr< DataAtIntegrationPts data_ptr,
const double  alpha 
)
virtual

Reimplemented in EshelbianPlasticity::HMHHencky, and EshelbianPlasticity::HMHNeohookean.

Definition at line 259 of file EshelbianADOL-C.cpp.

261  {
262  return new OpSpatialPhysical_du_du(row_field, col_field, data_ptr, alpha);
263 }

Member Data Documentation

◆ activeVariables

std::vector<double> EshelbianPlasticity::PhysicalEquations::activeVariables

Definition at line 264 of file EshelbianPlasticity.hpp.

◆ dependentVariablesPiola

std::vector<double> EshelbianPlasticity::PhysicalEquations::dependentVariablesPiola

Definition at line 265 of file EshelbianPlasticity.hpp.

◆ dependentVariablesPiolaDirevatives

std::vector<double> EshelbianPlasticity::PhysicalEquations::dependentVariablesPiolaDirevatives

Definition at line 266 of file EshelbianPlasticity.hpp.


The documentation for this struct was generated from the following files:
EshelbianPlasticity::PhysicalEquations::activeVariables
std::vector< double > activeVariables
Definition: EshelbianPlasticity.hpp:264
EshelbianPlasticity::PhysicalEquations::DTensor0Ptr
FTensor::Tensor0< FTensor::PackPtr< double *, 1 > > DTensor0Ptr
Definition: EshelbianPlasticity.hpp:228
EshelbianPlasticity::PhysicalEquations::DTensor2Ptr
FTensor::Tensor2< FTensor::PackPtr< double *, 1 >, 3, 3 > DTensor2Ptr
Definition: EshelbianPlasticity.hpp:230
EshelbianPlasticity::PhysicalEquations::dependentVariablesPiolaDirevatives
std::vector< double > dependentVariablesPiolaDirevatives
Definition: EshelbianPlasticity.hpp:266
field_name
constexpr auto field_name
Definition: poisson_2d_homogeneous.cpp:13
v
const double v
phase velocity of light in medium (cm/ns)
Definition: initial_diffusion.cpp:40
EshelbianPlasticity::PhysicalEquations::dependentVariablesPiola
std::vector< double > dependentVariablesPiola
Definition: EshelbianPlasticity.hpp:265
EshelbianPlasticity::PhysicalEquations::DTensor3Ptr
FTensor::Tensor3< FTensor::PackPtr< double *, 1 >, 3, 3, 3 > DTensor3Ptr
Definition: EshelbianPlasticity.hpp:231