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

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

Inheritance 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::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 ()
 
virtual MoFEMErrorCode recordTape (const int tag, DTensor2Ptr *t_h)=0
 
virtual OpJacobianreturnOpJacobian (const std::string &field_name, const int tag, const bool eval_rhs, const bool eval_lhs, boost::shared_ptr< DataAtIntegrationPts > &data_ptr, boost::shared_ptr< PhysicalEquations > &physics_ptr)=0
 
Dependent variables
DTensor2Ptr get_P ()
 
DTensor2Ptr get_Sigma ()
 
DTensor0Ptr get_Phi ()
 
doubleget_PhiRef ()
 
DTensor2Ptr get_Flow ()
 
Derivatives of dependent variables
DTensor3Ptr get_P_dh0 ()
 
DTensor3Ptr get_P_dH0 ()
 
DTensor3Ptr get_P_dh1 ()
 
DTensor3Ptr get_P_dH1 ()
 
DTensor3Ptr get_P_dh2 ()
 
DTensor3Ptr get_P_dH2 ()
 
DTensor3Ptr get_Sigma_dh0 ()
 
DTensor3Ptr get_Sigma_dH0 ()
 
DTensor3Ptr get_Sigma_dh1 ()
 
DTensor3Ptr get_Sigma_dH1 ()
 
DTensor3Ptr get_Sigma_dh2 ()
 
DTensor3Ptr get_Sigma_dH2 ()
 
DTensor2Ptr get_Phi_dh ()
 
DTensor2Ptr get_Phi_dH ()
 
DTensor3Ptr get_Flow_dh0 ()
 
DTensor3Ptr get_Flow_dH0 ()
 
DTensor3Ptr get_Flow_dh1 ()
 
DTensor3Ptr get_Flow_dH1 ()
 
DTensor3Ptr get_Flow_dh2 ()
 
DTensor3Ptr get_Flow_dH2 ()
 

Public Attributes

std::vector< doubleactiveVariables
 
std::vector< doubledependentVariables
 
std::vector< doubledependentVariablesDirevatives
 

Active variables

DTensor2Ptr get_h ()
 
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, int S1, int S2>
static DTensor3Ptr get_vecTensor3 (std::vector< double > &v)
 

Detailed Description

Definition at line 355 of file EshelbianPlasticity.hpp.

Member Typedef Documentation

◆ ATensor1

Definition at line 357 of file EshelbianPlasticity.hpp.

◆ ATensor2

Definition at line 358 of file EshelbianPlasticity.hpp.

◆ ATensor3

Definition at line 359 of file EshelbianPlasticity.hpp.

◆ DTensor0Ptr

Definition at line 360 of file EshelbianPlasticity.hpp.

◆ DTensor2Ptr

Definition at line 362 of file EshelbianPlasticity.hpp.

◆ DTensor3Ptr

Definition at line 363 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 
)

Definition at line 366 of file EshelbianPlasticity.hpp.

367  : activeVariables(size_active, 0), dependentVariables(size_dependent, 0),
368  dependentVariablesDirevatives(size_dependent * size_active, 0) {}

◆ ~PhysicalEquations()

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

Definition at line 369 of file EshelbianPlasticity.hpp.

369 {}

Member Function Documentation

◆ get_Flow()

DTensor2Ptr EshelbianPlasticity::PhysicalEquations::get_Flow ( )

Definition at line 446 of file EshelbianPlasticity.hpp.

446  {
447  return get_VecTensor2<9 + 9 + 1>(dependentVariables);
448  }

◆ get_Flow_dh0()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_Flow_dh0 ( )

Definition at line 501 of file EshelbianPlasticity.hpp.

501  {
502  return get_vecTensor3<9 + 9 + 1, 0, 0>(dependentVariablesDirevatives);
503  }

◆ get_Flow_dH0()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_Flow_dH0 ( )

Definition at line 504 of file EshelbianPlasticity.hpp.

504  {
505  return get_vecTensor3<9 + 9 + 1, 1, 0>(dependentVariablesDirevatives);
506  }

◆ get_Flow_dh1()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_Flow_dh1 ( )

Definition at line 507 of file EshelbianPlasticity.hpp.

507  {
508  return get_vecTensor3<9 + 9 + 1, 0, 1>(dependentVariablesDirevatives);
509  }

◆ get_Flow_dH1()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_Flow_dH1 ( )

Definition at line 510 of file EshelbianPlasticity.hpp.

510  {
511  return get_vecTensor3<9 + 9 + 1, 1, 1>(dependentVariablesDirevatives);
512  }

◆ get_Flow_dh2()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_Flow_dh2 ( )

Definition at line 513 of file EshelbianPlasticity.hpp.

513  {
514  return get_vecTensor3<9 + 9 + 1, 0, 2>(dependentVariablesDirevatives);
515  }

◆ get_Flow_dH2()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_Flow_dH2 ( )

Definition at line 516 of file EshelbianPlasticity.hpp.

516  {
517  return get_vecTensor3<9 + 9 + 1, 1, 2>(dependentVariablesDirevatives);
518  }

◆ get_h()

DTensor2Ptr EshelbianPlasticity::PhysicalEquations::get_h ( )

Definition at line 429 of file EshelbianPlasticity.hpp.

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

◆ get_H()

DTensor2Ptr EshelbianPlasticity::PhysicalEquations::get_H ( )

Definition at line 430 of file EshelbianPlasticity.hpp.

430 { return get_VecTensor2<9>(activeVariables); }

◆ get_P()

DTensor2Ptr EshelbianPlasticity::PhysicalEquations::get_P ( )

Definition at line 438 of file EshelbianPlasticity.hpp.

438 { return get_VecTensor2<0>(dependentVariables); }

◆ get_P_dh0()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_P_dh0 ( )

Definition at line 456 of file EshelbianPlasticity.hpp.

456  {
457  return get_vecTensor3<0, 0, 0>(dependentVariablesDirevatives);
458  }

◆ get_P_dH0()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_P_dH0 ( )

Definition at line 459 of file EshelbianPlasticity.hpp.

459  {
460  return get_vecTensor3<0, 1, 0>(dependentVariablesDirevatives);
461  }

◆ get_P_dh1()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_P_dh1 ( )

Definition at line 462 of file EshelbianPlasticity.hpp.

462  {
463  return get_vecTensor3<0, 0, 1>(dependentVariablesDirevatives);
464  }

◆ get_P_dH1()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_P_dH1 ( )

Definition at line 465 of file EshelbianPlasticity.hpp.

465  {
466  return get_vecTensor3<0, 1, 1>(dependentVariablesDirevatives);
467  }

◆ get_P_dh2()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_P_dh2 ( )

Definition at line 468 of file EshelbianPlasticity.hpp.

468  {
469  return get_vecTensor3<0, 0, 2>(dependentVariablesDirevatives);
470  }

◆ get_P_dH2()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_P_dH2 ( )

Definition at line 471 of file EshelbianPlasticity.hpp.

471  {
472  return get_vecTensor3<0, 1, 2>(dependentVariablesDirevatives);
473  }

◆ get_Phi()

DTensor0Ptr EshelbianPlasticity::PhysicalEquations::get_Phi ( )

Definition at line 442 of file EshelbianPlasticity.hpp.

442  {
443  return get_VecTensor0<18>(dependentVariables);
444  }

◆ get_Phi_dh()

DTensor2Ptr EshelbianPlasticity::PhysicalEquations::get_Phi_dh ( )

Definition at line 494 of file EshelbianPlasticity.hpp.

494  {
495  return get_VecTensor2<18 * (9 + 9) + 0>(dependentVariablesDirevatives);
496  }

◆ get_Phi_dH()

DTensor2Ptr EshelbianPlasticity::PhysicalEquations::get_Phi_dH ( )

Definition at line 497 of file EshelbianPlasticity.hpp.

497  {
498  return get_VecTensor2<18 * (9 + 9) + 9>(dependentVariablesDirevatives);
499  }

◆ get_PhiRef()

double& EshelbianPlasticity::PhysicalEquations::get_PhiRef ( )

Definition at line 445 of file EshelbianPlasticity.hpp.

445 { return dependentVariables[18]; }

◆ get_Sigma()

DTensor2Ptr EshelbianPlasticity::PhysicalEquations::get_Sigma ( )

Definition at line 439 of file EshelbianPlasticity.hpp.

439  {
440  return get_VecTensor2<9>(dependentVariables);
441  }

◆ get_Sigma_dh0()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_Sigma_dh0 ( )

Definition at line 475 of file EshelbianPlasticity.hpp.

475  {
476  return get_vecTensor3<9, 0, 0>(dependentVariablesDirevatives);
477  }

◆ get_Sigma_dH0()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_Sigma_dH0 ( )

Definition at line 478 of file EshelbianPlasticity.hpp.

478  {
479  return get_vecTensor3<9, 1, 0>(dependentVariablesDirevatives);
480  }

◆ get_Sigma_dh1()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_Sigma_dh1 ( )

Definition at line 481 of file EshelbianPlasticity.hpp.

481  {
482  return get_vecTensor3<9, 0, 1>(dependentVariablesDirevatives);
483  }

◆ get_Sigma_dH1()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_Sigma_dH1 ( )

Definition at line 484 of file EshelbianPlasticity.hpp.

484  {
485  return get_vecTensor3<9, 1, 1>(dependentVariablesDirevatives);
486  }

◆ get_Sigma_dh2()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_Sigma_dh2 ( )

Definition at line 487 of file EshelbianPlasticity.hpp.

487  {
488  return get_vecTensor3<9, 0, 2>(dependentVariablesDirevatives);
489  }

◆ get_Sigma_dH2()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_Sigma_dH2 ( )

Definition at line 490 of file EshelbianPlasticity.hpp.

490  {
491  return get_vecTensor3<9, 1, 2>(dependentVariablesDirevatives);
492  }

◆ get_VecTensor0()

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

Definition at line 394 of file EshelbianPlasticity.hpp.

394  {
395  return DTensor0Ptr(&v[S + 0]);
396  }
FTensor::Tensor0< FTensor::PackPtr< double *, 1 > > DTensor0Ptr

◆ get_VecTensor2()

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

Definition at line 388 of file EshelbianPlasticity.hpp.

388  {
389  return DTensor2Ptr(&v[S + 0], &v[S + 1], &v[S + 2], &v[S + 3], &v[S + 4],
390  &v[S + 5], &v[S + 6], &v[S + 7], &v[S + 8]);
391  }
FTensor::Tensor2< FTensor::PackPtr< double *, 1 >, 3, 3 > DTensor2Ptr

◆ get_vecTensor3()

template<int S0, int S1, int S2>
static DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_vecTensor3 ( std::vector< double > &  v)
static

Definition at line 399 of file EshelbianPlasticity.hpp.

399  {
400  constexpr int A00 = 18 * S0 + 18 * 0 + 9 * S1 + 3 * S2;
401  constexpr int A01 = 18 * S0 + 18 * 1 + 9 * S1 + 3 * S2;
402  constexpr int A02 = 18 * S0 + 18 * 2 + 9 * S1 + 3 * S2;
403  constexpr int A10 = 18 * S0 + 18 * 3 + 9 * S1 + 3 * S2;
404  constexpr int A11 = 18 * S0 + 18 * 4 + 9 * S1 + 3 * S2;
405  constexpr int A12 = 18 * S0 + 18 * 5 + 9 * S1 + 3 * S2;
406  constexpr int A20 = 18 * S0 + 18 * 6 + 9 * S1 + 3 * S2;
407  constexpr int A21 = 18 * S0 + 18 * 7 + 9 * S1 + 3 * S2;
408  constexpr int A22 = 18 * S0 + 18 * 8 + 9 * S1 + 3 * S2;
409  return DTensor3Ptr(
410 
411  &v[A00 + 0], &v[A00 + 1], &v[A00 + 2], &v[A01 + 0], &v[A01 + 1],
412  &v[A01 + 2], &v[A02 + 0], &v[A02 + 1], &v[A02 + 2],
413 
414  &v[A10 + 0], &v[A10 + 1], &v[A10 + 2], &v[A11 + 0], &v[A11 + 1],
415  &v[A11 + 2], &v[A12 + 0], &v[A12 + 1], &v[A12 + 2],
416 
417  &v[A20 + 0], &v[A20 + 1], &v[A20 + 2], &v[A21 + 0], &v[A21 + 1],
418  &v[A21 + 2], &v[A22 + 0], &v[A22 + 1], &v[A22 + 2]
419 
420  );
421  }
FTensor::Tensor3< FTensor::PackPtr< double *, 1 >, 3, 3, 3 > DTensor3Ptr

◆ recordTape()

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

◆ returnOpJacobian()

virtual OpJacobian* EshelbianPlasticity::PhysicalEquations::returnOpJacobian ( const std::string &  field_name,
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

Member Data Documentation

◆ activeVariables

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

Definition at line 379 of file EshelbianPlasticity.hpp.

◆ dependentVariables

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

Definition at line 380 of file EshelbianPlasticity.hpp.

◆ dependentVariablesDirevatives

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

Definition at line 381 of file EshelbianPlasticity.hpp.


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