v0.13.2
Loading...
Searching...
No Matches
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]
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::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 374 of file EshelbianPlasticity.hpp.

Member Typedef Documentation

◆ ATensor1

Definition at line 376 of file EshelbianPlasticity.hpp.

◆ ATensor2

Definition at line 377 of file EshelbianPlasticity.hpp.

◆ ATensor3

Definition at line 378 of file EshelbianPlasticity.hpp.

◆ DTensor0Ptr

Definition at line 379 of file EshelbianPlasticity.hpp.

◆ DTensor2Ptr

Definition at line 381 of file EshelbianPlasticity.hpp.

◆ DTensor3Ptr

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

386 : activeVariables(size_active, 0), dependentVariables(size_dependent, 0),
387 dependentVariablesDirevatives(size_dependent * size_active, 0) {}

◆ ~PhysicalEquations()

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

Definition at line 388 of file EshelbianPlasticity.hpp.

388{}

Member Function Documentation

◆ get_Flow()

DTensor2Ptr EshelbianPlasticity::PhysicalEquations::get_Flow ( )
inline

Definition at line 465 of file EshelbianPlasticity.hpp.

465 {
466 return get_VecTensor2<9 + 9 + 1>(dependentVariables);
467 }

◆ get_Flow_dh0()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_Flow_dh0 ( )
inline

Definition at line 520 of file EshelbianPlasticity.hpp.

520 {
521 return get_vecTensor3<9 + 9 + 1, 0, 0>(dependentVariablesDirevatives);
522 }

◆ get_Flow_dH0()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_Flow_dH0 ( )
inline

Definition at line 523 of file EshelbianPlasticity.hpp.

523 {
524 return get_vecTensor3<9 + 9 + 1, 1, 0>(dependentVariablesDirevatives);
525 }

◆ get_Flow_dh1()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_Flow_dh1 ( )
inline

Definition at line 526 of file EshelbianPlasticity.hpp.

526 {
527 return get_vecTensor3<9 + 9 + 1, 0, 1>(dependentVariablesDirevatives);
528 }

◆ get_Flow_dH1()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_Flow_dH1 ( )
inline

Definition at line 529 of file EshelbianPlasticity.hpp.

529 {
530 return get_vecTensor3<9 + 9 + 1, 1, 1>(dependentVariablesDirevatives);
531 }

◆ get_Flow_dh2()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_Flow_dh2 ( )
inline

Definition at line 532 of file EshelbianPlasticity.hpp.

532 {
533 return get_vecTensor3<9 + 9 + 1, 0, 2>(dependentVariablesDirevatives);
534 }

◆ get_Flow_dH2()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_Flow_dH2 ( )
inline

Definition at line 535 of file EshelbianPlasticity.hpp.

535 {
536 return get_vecTensor3<9 + 9 + 1, 1, 2>(dependentVariablesDirevatives);
537 }

◆ get_h()

DTensor2Ptr EshelbianPlasticity::PhysicalEquations::get_h ( )
inline

Definition at line 448 of file EshelbianPlasticity.hpp.

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

◆ get_H()

DTensor2Ptr EshelbianPlasticity::PhysicalEquations::get_H ( )
inline

Definition at line 449 of file EshelbianPlasticity.hpp.

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

◆ get_P()

DTensor2Ptr EshelbianPlasticity::PhysicalEquations::get_P ( )
inline

Definition at line 457 of file EshelbianPlasticity.hpp.

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

◆ get_P_dh0()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_P_dh0 ( )
inline

Definition at line 475 of file EshelbianPlasticity.hpp.

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

◆ get_P_dH0()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_P_dH0 ( )
inline

Definition at line 478 of file EshelbianPlasticity.hpp.

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

◆ get_P_dh1()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_P_dh1 ( )
inline

Definition at line 481 of file EshelbianPlasticity.hpp.

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

◆ get_P_dH1()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_P_dH1 ( )
inline

Definition at line 484 of file EshelbianPlasticity.hpp.

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

◆ get_P_dh2()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_P_dh2 ( )
inline

Definition at line 487 of file EshelbianPlasticity.hpp.

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

◆ get_P_dH2()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_P_dH2 ( )
inline

Definition at line 490 of file EshelbianPlasticity.hpp.

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

◆ get_Phi()

DTensor0Ptr EshelbianPlasticity::PhysicalEquations::get_Phi ( )
inline

Definition at line 461 of file EshelbianPlasticity.hpp.

461 {
462 return get_VecTensor0<18>(dependentVariables);
463 }

◆ get_Phi_dh()

DTensor2Ptr EshelbianPlasticity::PhysicalEquations::get_Phi_dh ( )
inline

Definition at line 513 of file EshelbianPlasticity.hpp.

513 {
514 return get_VecTensor2<18 * (9 + 9) + 0>(dependentVariablesDirevatives);
515 }

◆ get_Phi_dH()

DTensor2Ptr EshelbianPlasticity::PhysicalEquations::get_Phi_dH ( )
inline

Definition at line 516 of file EshelbianPlasticity.hpp.

516 {
517 return get_VecTensor2<18 * (9 + 9) + 9>(dependentVariablesDirevatives);
518 }

◆ get_PhiRef()

double & EshelbianPlasticity::PhysicalEquations::get_PhiRef ( )
inline

Definition at line 464 of file EshelbianPlasticity.hpp.

464{ return dependentVariables[18]; }

◆ get_Sigma()

DTensor2Ptr EshelbianPlasticity::PhysicalEquations::get_Sigma ( )
inline

Definition at line 458 of file EshelbianPlasticity.hpp.

458 {
459 return get_VecTensor2<9>(dependentVariables);
460 }

◆ get_Sigma_dh0()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_Sigma_dh0 ( )
inline

Definition at line 494 of file EshelbianPlasticity.hpp.

494 {
495 return get_vecTensor3<9, 0, 0>(dependentVariablesDirevatives);
496 }

◆ get_Sigma_dH0()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_Sigma_dH0 ( )
inline

Definition at line 497 of file EshelbianPlasticity.hpp.

497 {
498 return get_vecTensor3<9, 1, 0>(dependentVariablesDirevatives);
499 }

◆ get_Sigma_dh1()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_Sigma_dh1 ( )
inline

Definition at line 500 of file EshelbianPlasticity.hpp.

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

◆ get_Sigma_dH1()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_Sigma_dH1 ( )
inline

Definition at line 503 of file EshelbianPlasticity.hpp.

503 {
504 return get_vecTensor3<9, 1, 1>(dependentVariablesDirevatives);
505 }

◆ get_Sigma_dh2()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_Sigma_dh2 ( )
inline

Definition at line 506 of file EshelbianPlasticity.hpp.

506 {
507 return get_vecTensor3<9, 0, 2>(dependentVariablesDirevatives);
508 }

◆ get_Sigma_dH2()

DTensor3Ptr EshelbianPlasticity::PhysicalEquations::get_Sigma_dH2 ( )
inline

Definition at line 509 of file EshelbianPlasticity.hpp.

509 {
510 return get_vecTensor3<9, 1, 2>(dependentVariablesDirevatives);
511 }

◆ get_VecTensor0()

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

Definition at line 413 of file EshelbianPlasticity.hpp.

413 {
414 return DTensor0Ptr(&v[S + 0]);
415 }
const double v
phase velocity of light in medium (cm/ns)
FTensor::Tensor0< FTensor::PackPtr< double *, 1 > > DTensor0Ptr

◆ get_VecTensor2()

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

Definition at line 407 of file EshelbianPlasticity.hpp.

407 {
408 return DTensor2Ptr(&v[S + 0], &v[S + 1], &v[S + 2], &v[S + 3], &v[S + 4],
409 &v[S + 5], &v[S + 6], &v[S + 7], &v[S + 8]);
410 }
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)
inlinestatic

Definition at line 418 of file EshelbianPlasticity.hpp.

418 {
419 constexpr int A00 = 18 * S0 + 18 * 0 + 9 * S1 + 3 * S2;
420 constexpr int A01 = 18 * S0 + 18 * 1 + 9 * S1 + 3 * S2;
421 constexpr int A02 = 18 * S0 + 18 * 2 + 9 * S1 + 3 * S2;
422 constexpr int A10 = 18 * S0 + 18 * 3 + 9 * S1 + 3 * S2;
423 constexpr int A11 = 18 * S0 + 18 * 4 + 9 * S1 + 3 * S2;
424 constexpr int A12 = 18 * S0 + 18 * 5 + 9 * S1 + 3 * S2;
425 constexpr int A20 = 18 * S0 + 18 * 6 + 9 * S1 + 3 * S2;
426 constexpr int A21 = 18 * S0 + 18 * 7 + 9 * S1 + 3 * S2;
427 constexpr int A22 = 18 * S0 + 18 * 8 + 9 * S1 + 3 * S2;
428 return DTensor3Ptr(
429
430 &v[A00 + 0], &v[A00 + 1], &v[A00 + 2], &v[A01 + 0], &v[A01 + 1],
431 &v[A01 + 2], &v[A02 + 0], &v[A02 + 1], &v[A02 + 2],
432
433 &v[A10 + 0], &v[A10 + 1], &v[A10 + 2], &v[A11 + 0], &v[A11 + 1],
434 &v[A11 + 2], &v[A12 + 0], &v[A12 + 1], &v[A12 + 2],
435
436 &v[A20 + 0], &v[A20 + 1], &v[A20 + 2], &v[A21 + 0], &v[A21 + 1],
437 &v[A21 + 2], &v[A22 + 0], &v[A22 + 1], &v[A22 + 2]
438
439 );
440 }
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 398 of file EshelbianPlasticity.hpp.

◆ dependentVariables

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

Definition at line 399 of file EshelbianPlasticity.hpp.

◆ dependentVariablesDirevatives

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

Definition at line 400 of file EshelbianPlasticity.hpp.


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