v0.14.0
Public Member Functions | List of all members
FractureMechanics::ConstantArea::OpTangentJacobian Struct Reference

#include <users_modules/fracture_mechanics/src/ConstantArea.hpp>

Inheritance diagram for FractureMechanics::ConstantArea::OpTangentJacobian:
[legend]
Collaboration diagram for FractureMechanics::ConstantArea::OpTangentJacobian:
[legend]

Public Member Functions

 OpTangentJacobian (int tag, CommonData &common_data)
 
PetscErrorCode doWork (int side, EntityType type, DataForcesAndSourcesCore::EntData &data)
 
- Public Member Functions inherited from FractureMechanics::ConstantArea::OpAreaJacobian
 OpAreaJacobian (int tag, CommonData &common_data)
 
PetscErrorCode doWork (int side, EntityType type, DataForcesAndSourcesCore::EntData &data)
 

Additional Inherited Members

- Public Attributes inherited from FractureMechanics::ConstantArea::OpAreaJacobian
int tAg
 
CommonDatacommonData
 
bool isTapeRecorded
 
AuxFunctions< adoublea_auxFun
 

Detailed Description

Definition at line 635 of file ConstantArea.hpp.

Constructor & Destructor Documentation

◆ OpTangentJacobian()

FractureMechanics::ConstantArea::OpTangentJacobian::OpTangentJacobian ( int  tag,
CommonData common_data 
)
inline

Definition at line 637 of file ConstantArea.hpp.

638  : OpAreaJacobian(tag, common_data) {
639  sYmm = false;
640  }

Member Function Documentation

◆ doWork()

PetscErrorCode FractureMechanics::ConstantArea::OpTangentJacobian::doWork ( int  side,
EntityType  type,
DataForcesAndSourcesCore::EntData data 
)
inline

Definition at line 642 of file ConstantArea.hpp.

643  {
645 
646  if (isTapeRecorded) {
648  }
649  if (type != MBVERTEX) {
651  }
652 
653  int nb_dofs = data.getFieldData().size();
654  int nb_gauss_pts = data.getN().size1();
655 
656  a_auxFun.referenceCoords.resize(9, false);
657  a_auxFun.currentCoords.resize(9, false);
658 
659  trace_on(tAg);
660 
661  for (int dd = 0; dd != nb_dofs; dd++) {
662  a_auxFun.referenceCoords[dd] <<= getCoords()[dd];
663  }
664  for (int dd = 0; dd != nb_dofs; dd++) {
665  a_auxFun.currentCoords[dd] <<= data.getFieldData()[dd];
666  }
667 
668  a_auxFun.crackAreaIncrement.resize(9, false);
669  a_auxFun.crackFrontTangent.resize(9, false);
670  std::fill(a_auxFun.crackAreaIncrement.begin(),
671  a_auxFun.crackAreaIncrement.end(), 0);
672  std::fill(a_auxFun.crackFrontTangent.begin(),
673  a_auxFun.crackFrontTangent.end(), 0);
674 
675  for (int gg = 0; gg != nb_gauss_pts; gg++) {
676 
677  double val = getGaussPts()(2, gg) * 0.5;
678 
679  CHKERR a_auxFun.matrixB(gg, data);
685  }
686 
687  commonData.crackFrontTangent.resize(nb_dofs, false);
688  for (int dd = 0; dd != nb_dofs; dd++) {
690  }
691 
692  trace_off();
693 
694  isTapeRecorded = true;
695 
697  }

The documentation for this struct was generated from the following file:
MoFEMFunctionReturnHot
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:460
FractureMechanics::ConstantArea::OpAreaJacobian::AuxFunctions::matrixA
PetscErrorCode matrixA()
Definition: ConstantArea.hpp:363
FractureMechanics::ConstantArea::OpAreaJacobian::AuxFunctions::dIffX
PetscErrorCode dIffX()
Definition: ConstantArea.hpp:326
FractureMechanics::ConstantArea::OpAreaJacobian::AuxFunctions::referenceCoords
ublas::vector< TYPE > referenceCoords
Definition: ConstantArea.hpp:273
FractureMechanics::ConstantArea::OpAreaJacobian::OpAreaJacobian
OpAreaJacobian(int tag, CommonData &common_data)
Definition: ConstantArea.hpp:247
FractureMechanics::ConstantArea::OpAreaJacobian::AuxFunctions::crackFrontTangent
ublas::vector< TYPE > crackFrontTangent
Definition: ConstantArea.hpp:292
FractureMechanics::ConstantArea::OpAreaJacobian::AuxFunctions::crackAreaIncrement
ublas::vector< TYPE > crackAreaIncrement
Definition: ConstantArea.hpp:291
FractureMechanics::ConstantArea::OpAreaJacobian::AuxFunctions::calculateFrontTangent
PetscErrorCode calculateFrontTangent(double beta)
Definition: ConstantArea.hpp:393
CHKERR
#define CHKERR
Inline error check.
Definition: definitions.h:548
FractureMechanics::ConstantArea::OpAreaJacobian::AuxFunctions::matrixB
PetscErrorCode matrixB(int gg, DataForcesAndSourcesCore::EntData &data)
Definition: ConstantArea.hpp:307
convert.type
type
Definition: convert.py:64
FractureMechanics::ConstantArea::OpAreaJacobian::AuxFunctions::currentCoords
ublas::vector< TYPE > currentCoords
Definition: ConstantArea.hpp:282
FractureMechanics::ConstantArea::OpAreaJacobian::a_auxFun
AuxFunctions< adouble > a_auxFun
Definition: ConstantArea.hpp:421
FractureMechanics::ConstantArea::OpAreaJacobian::AuxFunctions::nOrmal
PetscErrorCode nOrmal()
Definition: ConstantArea.hpp:343
FractureMechanics::ConstantArea::OpAreaJacobian::commonData
CommonData & commonData
Definition: ConstantArea.hpp:244
FractureMechanics::ConstantArea::OpAreaJacobian::AuxFunctions::calculateAreaIncrementDirection
PetscErrorCode calculateAreaIncrementDirection(double beta)
Definition: ConstantArea.hpp:377
FTensor::dd
const Tensor2_symmetric_Expr< const ddTensor0< T, Dim, i, j >, typename promote< T, double >::V, Dim, i, j > dd(const Tensor0< T * > &a, const Index< i, Dim > index1, const Index< j, Dim > index2, const Tensor1< int, Dim > &d_ijk, const Tensor1< double, Dim > &d_xyz)
Definition: ddTensor0.hpp:33
FractureMechanics::ConstantArea::OpAreaJacobian::isTapeRecorded
bool isTapeRecorded
Definition: ConstantArea.hpp:245
FractureMechanics::ConstantArea::OpAreaJacobian::tAg
int tAg
Definition: ConstantArea.hpp:243
MoFEMFunctionReturn
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:429
MoFEMFunctionBegin
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:359
FractureMechanics::ConstantArea::CommonData::crackFrontTangent
VectorDouble crackFrontTangent
Definition: ConstantArea.hpp:41