v0.10.0
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 414 of file EshelbianPlasticity.hpp.

Member Typedef Documentation

◆ ATensor1

Definition at line 416 of file EshelbianPlasticity.hpp.

◆ ATensor2

Definition at line 417 of file EshelbianPlasticity.hpp.

◆ ATensor3

Definition at line 418 of file EshelbianPlasticity.hpp.

◆ DTensor0Ptr

Definition at line 419 of file EshelbianPlasticity.hpp.

◆ DTensor2Ptr

Definition at line 421 of file EshelbianPlasticity.hpp.

◆ DTensor3Ptr

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

426  : activeVariables(size_active, 0), dependentVariables(size_dependent, 0),
427  dependentVariablesDirevatives(size_dependent * size_active, 0) {}

◆ ~PhysicalEquations()

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

Definition at line 428 of file EshelbianPlasticity.hpp.

428 {}

Member Function Documentation

◆ get_Flow()

DTensor2Ptr EshelbianPlasticity::PhysicalEquations::get_Flow ( )

Definition at line 505 of file EshelbianPlasticity.hpp.

505  {
506  return get_VecTensor2<9 + 9 + 1>(dependentVariables);
507  }

◆ get_Flow_dh0()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_Flow_dh0 ( )

Definition at line 560 of file EshelbianPlasticity.hpp.

560  {
561  return get_vecTensor3<9 + 9 + 1, 0, 0>(dependentVariablesDirevatives);
562  }

◆ get_Flow_dH0()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_Flow_dH0 ( )

Definition at line 563 of file EshelbianPlasticity.hpp.

563  {
564  return get_vecTensor3<9 + 9 + 1, 1, 0>(dependentVariablesDirevatives);
565  }

◆ get_Flow_dh1()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_Flow_dh1 ( )

Definition at line 566 of file EshelbianPlasticity.hpp.

566  {
567  return get_vecTensor3<9 + 9 + 1, 0, 1>(dependentVariablesDirevatives);
568  }

◆ get_Flow_dH1()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_Flow_dH1 ( )

Definition at line 569 of file EshelbianPlasticity.hpp.

569  {
570  return get_vecTensor3<9 + 9 + 1, 1, 1>(dependentVariablesDirevatives);
571  }

◆ get_Flow_dh2()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_Flow_dh2 ( )

Definition at line 572 of file EshelbianPlasticity.hpp.

572  {
573  return get_vecTensor3<9 + 9 + 1, 0, 2>(dependentVariablesDirevatives);
574  }

◆ get_Flow_dH2()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_Flow_dH2 ( )

Definition at line 575 of file EshelbianPlasticity.hpp.

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

◆ get_h()

DTensor2Ptr EshelbianPlasticity::PhysicalEquations::get_h ( )

Definition at line 488 of file EshelbianPlasticity.hpp.

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

◆ get_H()

DTensor2Ptr EshelbianPlasticity::PhysicalEquations::get_H ( )

Definition at line 489 of file EshelbianPlasticity.hpp.

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

◆ get_P()

DTensor2Ptr EshelbianPlasticity::PhysicalEquations::get_P ( )

Definition at line 497 of file EshelbianPlasticity.hpp.

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

◆ get_P_dh0()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_P_dh0 ( )

Definition at line 515 of file EshelbianPlasticity.hpp.

515  {
516  return get_vecTensor3<0, 0, 0>(dependentVariablesDirevatives);
517  }

◆ get_P_dH0()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_P_dH0 ( )

Definition at line 518 of file EshelbianPlasticity.hpp.

518  {
519  return get_vecTensor3<0, 1, 0>(dependentVariablesDirevatives);
520  }

◆ get_P_dh1()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_P_dh1 ( )

Definition at line 521 of file EshelbianPlasticity.hpp.

521  {
522  return get_vecTensor3<0, 0, 1>(dependentVariablesDirevatives);
523  }

◆ get_P_dH1()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_P_dH1 ( )

Definition at line 524 of file EshelbianPlasticity.hpp.

524  {
525  return get_vecTensor3<0, 1, 1>(dependentVariablesDirevatives);
526  }

◆ get_P_dh2()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_P_dh2 ( )

Definition at line 527 of file EshelbianPlasticity.hpp.

527  {
528  return get_vecTensor3<0, 0, 2>(dependentVariablesDirevatives);
529  }

◆ get_P_dH2()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_P_dH2 ( )

Definition at line 530 of file EshelbianPlasticity.hpp.

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

◆ get_Phi()

DTensor0Ptr EshelbianPlasticity::PhysicalEquations::get_Phi ( )

Definition at line 501 of file EshelbianPlasticity.hpp.

501  {
502  return get_VecTensor0<18>(dependentVariables);
503  }

◆ get_Phi_dh()

DTensor2Ptr EshelbianPlasticity::PhysicalEquations::get_Phi_dh ( )

Definition at line 553 of file EshelbianPlasticity.hpp.

553  {
554  return get_VecTensor2<18 * (9 + 9) + 0>(dependentVariablesDirevatives);
555  }

◆ get_Phi_dH()

DTensor2Ptr EshelbianPlasticity::PhysicalEquations::get_Phi_dH ( )

Definition at line 556 of file EshelbianPlasticity.hpp.

556  {
557  return get_VecTensor2<18 * (9 + 9) + 9>(dependentVariablesDirevatives);
558  }

◆ get_PhiRef()

double& EshelbianPlasticity::PhysicalEquations::get_PhiRef ( )

Definition at line 504 of file EshelbianPlasticity.hpp.

504 { return dependentVariables[18]; }

◆ get_Sigma()

DTensor2Ptr EshelbianPlasticity::PhysicalEquations::get_Sigma ( )

Definition at line 498 of file EshelbianPlasticity.hpp.

498  {
499  return get_VecTensor2<9>(dependentVariables);
500  }

◆ get_Sigma_dh0()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_Sigma_dh0 ( )

Definition at line 534 of file EshelbianPlasticity.hpp.

534  {
535  return get_vecTensor3<9, 0, 0>(dependentVariablesDirevatives);
536  }

◆ get_Sigma_dH0()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_Sigma_dH0 ( )

Definition at line 537 of file EshelbianPlasticity.hpp.

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

◆ get_Sigma_dh1()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_Sigma_dh1 ( )

Definition at line 540 of file EshelbianPlasticity.hpp.

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

◆ get_Sigma_dH1()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_Sigma_dH1 ( )

Definition at line 543 of file EshelbianPlasticity.hpp.

543  {
544  return get_vecTensor3<9, 1, 1>(dependentVariablesDirevatives);
545  }

◆ get_Sigma_dh2()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_Sigma_dh2 ( )

Definition at line 546 of file EshelbianPlasticity.hpp.

546  {
547  return get_vecTensor3<9, 0, 2>(dependentVariablesDirevatives);
548  }

◆ get_Sigma_dH2()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_Sigma_dH2 ( )

Definition at line 549 of file EshelbianPlasticity.hpp.

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

◆ get_VecTensor0()

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

Definition at line 453 of file EshelbianPlasticity.hpp.

453  {
454  return DTensor0Ptr(&v[S + 0]);
455  }
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 447 of file EshelbianPlasticity.hpp.

447  {
448  return DTensor2Ptr(&v[S + 0], &v[S + 1], &v[S + 2], &v[S + 3], &v[S + 4],
449  &v[S + 5], &v[S + 6], &v[S + 7], &v[S + 8]);
450  }
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 458 of file EshelbianPlasticity.hpp.

458  {
459  constexpr int A00 = 18 * S0 + 18 * 0 + 9 * S1 + 3 * S2;
460  constexpr int A01 = 18 * S0 + 18 * 1 + 9 * S1 + 3 * S2;
461  constexpr int A02 = 18 * S0 + 18 * 2 + 9 * S1 + 3 * S2;
462  constexpr int A10 = 18 * S0 + 18 * 3 + 9 * S1 + 3 * S2;
463  constexpr int A11 = 18 * S0 + 18 * 4 + 9 * S1 + 3 * S2;
464  constexpr int A12 = 18 * S0 + 18 * 5 + 9 * S1 + 3 * S2;
465  constexpr int A20 = 18 * S0 + 18 * 6 + 9 * S1 + 3 * S2;
466  constexpr int A21 = 18 * S0 + 18 * 7 + 9 * S1 + 3 * S2;
467  constexpr int A22 = 18 * S0 + 18 * 8 + 9 * S1 + 3 * S2;
468  return DTensor3Ptr(
469 
470  &v[A00 + 0], &v[A00 + 1], &v[A00 + 2], &v[A01 + 0], &v[A01 + 1],
471  &v[A01 + 2], &v[A02 + 0], &v[A02 + 1], &v[A02 + 2],
472 
473  &v[A10 + 0], &v[A10 + 1], &v[A10 + 2], &v[A11 + 0], &v[A11 + 1],
474  &v[A11 + 2], &v[A12 + 0], &v[A12 + 1], &v[A12 + 2],
475 
476  &v[A20 + 0], &v[A20 + 1], &v[A20 + 2], &v[A21 + 0], &v[A21 + 1],
477  &v[A21 + 2], &v[A22 + 0], &v[A22 + 1], &v[A22 + 2]
478 
479  );
480  }
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 438 of file EshelbianPlasticity.hpp.

◆ dependentVariables

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

Definition at line 439 of file EshelbianPlasticity.hpp.

◆ dependentVariablesDirevatives

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

Definition at line 440 of file EshelbianPlasticity.hpp.


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