v0.8.23
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)=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 429 of file EshelbianPlasticity.hpp.

Member Typedef Documentation

◆ ATensor1

Definition at line 431 of file EshelbianPlasticity.hpp.

◆ ATensor2

Definition at line 432 of file EshelbianPlasticity.hpp.

◆ ATensor3

Definition at line 433 of file EshelbianPlasticity.hpp.

◆ DTensor0Ptr

Definition at line 434 of file EshelbianPlasticity.hpp.

◆ DTensor2Ptr

Definition at line 436 of file EshelbianPlasticity.hpp.

◆ DTensor3Ptr

Definition at line 437 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 440 of file EshelbianPlasticity.hpp.

441  : activeVariables(size_active, 0), dependentVariables(size_dependent, 0),
442  dependentVariablesDirevatives(size_dependent * size_active, 0) {}

◆ ~PhysicalEquations()

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

Definition at line 443 of file EshelbianPlasticity.hpp.

443 {}

Member Function Documentation

◆ get_Flow()

DTensor2Ptr EshelbianPlasticity::PhysicalEquations::get_Flow ( )

Definition at line 520 of file EshelbianPlasticity.hpp.

520  {
521  return get_VecTensor2<9 + 9 + 1>(dependentVariables);
522  }

◆ get_Flow_dh0()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_Flow_dh0 ( )

Definition at line 575 of file EshelbianPlasticity.hpp.

575  {
576  return get_vecTensor3<9 + 9 + 1, 0, 0>(dependentVariablesDirevatives);
577  }

◆ get_Flow_dH0()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_Flow_dH0 ( )

Definition at line 578 of file EshelbianPlasticity.hpp.

578  {
579  return get_vecTensor3<9 + 9 + 1, 1, 0>(dependentVariablesDirevatives);
580  }

◆ get_Flow_dh1()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_Flow_dh1 ( )

Definition at line 581 of file EshelbianPlasticity.hpp.

581  {
582  return get_vecTensor3<9 + 9 + 1, 0, 1>(dependentVariablesDirevatives);
583  }

◆ get_Flow_dH1()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_Flow_dH1 ( )

Definition at line 584 of file EshelbianPlasticity.hpp.

584  {
585  return get_vecTensor3<9 + 9 + 1, 1, 1>(dependentVariablesDirevatives);
586  }

◆ get_Flow_dh2()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_Flow_dh2 ( )

Definition at line 587 of file EshelbianPlasticity.hpp.

587  {
588  return get_vecTensor3<9 + 9 + 1, 0, 2>(dependentVariablesDirevatives);
589  }

◆ get_Flow_dH2()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_Flow_dH2 ( )

Definition at line 590 of file EshelbianPlasticity.hpp.

590  {
591  return get_vecTensor3<9 + 9 + 1, 1, 2>(dependentVariablesDirevatives);
592  }

◆ get_h()

DTensor2Ptr EshelbianPlasticity::PhysicalEquations::get_h ( )

Definition at line 503 of file EshelbianPlasticity.hpp.

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

◆ get_H()

DTensor2Ptr EshelbianPlasticity::PhysicalEquations::get_H ( )

Definition at line 504 of file EshelbianPlasticity.hpp.

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

◆ get_P()

DTensor2Ptr EshelbianPlasticity::PhysicalEquations::get_P ( )

Definition at line 512 of file EshelbianPlasticity.hpp.

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

◆ get_P_dh0()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_P_dh0 ( )

Definition at line 530 of file EshelbianPlasticity.hpp.

530  {
531  return get_vecTensor3<0, 0, 0>(dependentVariablesDirevatives);
532  }

◆ get_P_dH0()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_P_dH0 ( )

Definition at line 533 of file EshelbianPlasticity.hpp.

533  {
534  return get_vecTensor3<0, 1, 0>(dependentVariablesDirevatives);
535  }

◆ get_P_dh1()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_P_dh1 ( )

Definition at line 536 of file EshelbianPlasticity.hpp.

536  {
537  return get_vecTensor3<0, 0, 1>(dependentVariablesDirevatives);
538  }

◆ get_P_dH1()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_P_dH1 ( )

Definition at line 539 of file EshelbianPlasticity.hpp.

539  {
540  return get_vecTensor3<0, 1, 1>(dependentVariablesDirevatives);
541  }

◆ get_P_dh2()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_P_dh2 ( )

Definition at line 542 of file EshelbianPlasticity.hpp.

542  {
543  return get_vecTensor3<0, 0, 2>(dependentVariablesDirevatives);
544  }

◆ get_P_dH2()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_P_dH2 ( )

Definition at line 545 of file EshelbianPlasticity.hpp.

545  {
546  return get_vecTensor3<0, 1, 2>(dependentVariablesDirevatives);
547  }

◆ get_Phi()

DTensor0Ptr EshelbianPlasticity::PhysicalEquations::get_Phi ( )

Definition at line 516 of file EshelbianPlasticity.hpp.

516  {
517  return get_VecTensor0<18>(dependentVariables);
518  }

◆ get_Phi_dh()

DTensor2Ptr EshelbianPlasticity::PhysicalEquations::get_Phi_dh ( )

Definition at line 568 of file EshelbianPlasticity.hpp.

568  {
569  return get_VecTensor2<18 * (9 + 9) + 0>(dependentVariablesDirevatives);
570  }

◆ get_Phi_dH()

DTensor2Ptr EshelbianPlasticity::PhysicalEquations::get_Phi_dH ( )

Definition at line 571 of file EshelbianPlasticity.hpp.

571  {
572  return get_VecTensor2<18 * (9 + 9) + 9>(dependentVariablesDirevatives);
573  }

◆ get_PhiRef()

double& EshelbianPlasticity::PhysicalEquations::get_PhiRef ( )

Definition at line 519 of file EshelbianPlasticity.hpp.

519 { return dependentVariables[18]; }

◆ get_Sigma()

DTensor2Ptr EshelbianPlasticity::PhysicalEquations::get_Sigma ( )

Definition at line 513 of file EshelbianPlasticity.hpp.

513  {
514  return get_VecTensor2<9>(dependentVariables);
515  }

◆ get_Sigma_dh0()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_Sigma_dh0 ( )

Definition at line 549 of file EshelbianPlasticity.hpp.

549  {
550  return get_vecTensor3<9, 0, 0>(dependentVariablesDirevatives);
551  }

◆ get_Sigma_dH0()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_Sigma_dH0 ( )

Definition at line 552 of file EshelbianPlasticity.hpp.

552  {
553  return get_vecTensor3<9, 1, 0>(dependentVariablesDirevatives);
554  }

◆ get_Sigma_dh1()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_Sigma_dh1 ( )

Definition at line 555 of file EshelbianPlasticity.hpp.

555  {
556  return get_vecTensor3<9, 0, 1>(dependentVariablesDirevatives);
557  }

◆ get_Sigma_dH1()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_Sigma_dH1 ( )

Definition at line 558 of file EshelbianPlasticity.hpp.

558  {
559  return get_vecTensor3<9, 1, 1>(dependentVariablesDirevatives);
560  }

◆ get_Sigma_dh2()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_Sigma_dh2 ( )

Definition at line 561 of file EshelbianPlasticity.hpp.

561  {
562  return get_vecTensor3<9, 0, 2>(dependentVariablesDirevatives);
563  }

◆ get_Sigma_dH2()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_Sigma_dH2 ( )

Definition at line 564 of file EshelbianPlasticity.hpp.

564  {
565  return get_vecTensor3<9, 1, 2>(dependentVariablesDirevatives);
566  }

◆ get_VecTensor0()

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

Definition at line 468 of file EshelbianPlasticity.hpp.

468  {
469  return DTensor0Ptr(&v[S + 0]);
470  }
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 462 of file EshelbianPlasticity.hpp.

462  {
463  return DTensor2Ptr(&v[S + 0], &v[S + 1], &v[S + 2], &v[S + 3], &v[S + 4],
464  &v[S + 5], &v[S + 6], &v[S + 7], &v[S + 8]);
465  }
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 473 of file EshelbianPlasticity.hpp.

473  {
474  constexpr int A00 = 18 * S0 + 18 * 0 + 9 * S1 + 3 * S2;
475  constexpr int A01 = 18 * S0 + 18 * 1 + 9 * S1 + 3 * S2;
476  constexpr int A02 = 18 * S0 + 18 * 2 + 9 * S1 + 3 * S2;
477  constexpr int A10 = 18 * S0 + 18 * 3 + 9 * S1 + 3 * S2;
478  constexpr int A11 = 18 * S0 + 18 * 4 + 9 * S1 + 3 * S2;
479  constexpr int A12 = 18 * S0 + 18 * 5 + 9 * S1 + 3 * S2;
480  constexpr int A20 = 18 * S0 + 18 * 6 + 9 * S1 + 3 * S2;
481  constexpr int A21 = 18 * S0 + 18 * 7 + 9 * S1 + 3 * S2;
482  constexpr int A22 = 18 * S0 + 18 * 8 + 9 * S1 + 3 * S2;
483  return DTensor3Ptr(
484 
485  &v[A00 + 0], &v[A00 + 1], &v[A00 + 2], &v[A01 + 0], &v[A01 + 1],
486  &v[A01 + 2], &v[A02 + 0], &v[A02 + 1], &v[A02 + 2],
487 
488  &v[A10 + 0], &v[A10 + 1], &v[A10 + 2], &v[A11 + 0], &v[A11 + 1],
489  &v[A11 + 2], &v[A12 + 0], &v[A12 + 1], &v[A12 + 2],
490 
491  &v[A20 + 0], &v[A20 + 1], &v[A20 + 2], &v[A21 + 0], &v[A21 + 1],
492  &v[A21 + 2], &v[A22 + 0], &v[A22 + 1], &v[A22 + 2]
493 
494  );
495  }
FTensor::Tensor3< FTensor::PackPtr< double *, 1 >, 3, 3, 3 > DTensor3Ptr

◆ recordTape()

virtual MoFEMErrorCode EshelbianPlasticity::PhysicalEquations::recordTape ( const int  tag)
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 453 of file EshelbianPlasticity.hpp.

◆ dependentVariables

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

Definition at line 454 of file EshelbianPlasticity.hpp.

◆ dependentVariablesDirevatives

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

Definition at line 455 of file EshelbianPlasticity.hpp.


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