v0.10.0
Classes | Typedefs | Functions | Variables
multifield_plasticity.cpp File Reference
#include <MoFEM.hpp>
#include <chrono>
#include <BasicFiniteElements.hpp>
#include <AnalyticalSurfaces.hpp>
#include <RigidBodies.hpp>
#include <BasicFeTools.hpp>
#include <MatrixFunction.hpp>
#include <ElasticOperators.hpp>
#include <PlasticOperators.hpp>
#include <ContactOperators.hpp>
#include <DefaultParams.hpp>

Go to the source code of this file.

Classes

struct  MeasureTime
 
struct  ContactPlasticity
 
struct  ContactPlasticity::ProblemData
 
struct  ContactPlasticity::MMonitor
 

Typedefs

using EntData = DataForcesAndSourcesCore::EntData
 
using DomainEle = VolumeElementForcesAndSourcesCore
 
using DomainEleOp = DomainEle::UserDataOperator
 
using SkeletonEle = FaceElementForcesAndSourcesCore
 
using SkeletonEleOp = SkeletonEle::UserDataOperator
 
using BoundaryEle = FaceElementForcesAndSourcesCore
 
using BoundaryEleOp = BoundaryEle::UserDataOperator
 
using OpLogStrainMatrixLhs = FormsIntegrators< DomainEleOp >::Assembly< PETSC >::BiLinearForm< GAUSS >::OpGradTensorGrad< 1, 3, 3, 1 >
 
using OpStiffnessMatrixLhs = FormsIntegrators< DomainEleOp >::Assembly< PETSC >::BiLinearForm< GAUSS >::OpGradSymTensorGrad< 1, 3, 3, 0 >
 
using OpBodyForce = FormsIntegrators< DomainEleOp >::Assembly< PETSC >::LinearForm< GAUSS >::OpSource< 1, 3 >
 
using OpMixDivULhs = FormsIntegrators< DomainEleOp >::Assembly< PETSC >::BiLinearForm< GAUSS >::OpMixDivTimesVec< 3 >
 
using OpLambdaGraULhs = FormsIntegrators< DomainEleOp >::Assembly< PETSC >::BiLinearForm< GAUSS >::OpMixTensorTimesGrad< 3 >
 
using OpMixDivURhs = FormsIntegrators< DomainEleOp >::Assembly< PETSC >::LinearForm< GAUSS >::OpMixDivTimesU< 3 >
 
using OpMiXLambdaGradURhs = FormsIntegrators< DomainEleOp >::Assembly< PETSC >::LinearForm< GAUSS >::OpMixTensorTimesGradU< 3 >
 
using OpMixUTimesDivLambdaRhs = FormsIntegrators< DomainEleOp >::Assembly< PETSC >::LinearForm< GAUSS >::OpMixVecTimesDivLambda< 3 >
 
using OpMixUTimesLambdaRhs = FormsIntegrators< DomainEleOp >::Assembly< PETSC >::LinearForm< GAUSS >::OpGradTimesTensor< 1, 3, 3 >
 
using OpSpringLhs = FormsIntegrators< BoundaryEleOp >::Assembly< PETSC >::BiLinearForm< GAUSS >::OpMass< 1, 3 >
 
using OpSpringRhs = FormsIntegrators< BoundaryEleOp >::Assembly< PETSC >::LinearForm< GAUSS >::OpBaseTimesVector< 1, 3, 1 >
 

Functions

int main (int argc, char *argv[])
 

Variables

BlockParamDatacache = new BlockParamData()
 
static char help [] = "...\n\n"
 

Typedef Documentation

◆ BoundaryEle

Definition at line 47 of file multifield_plasticity.cpp.

◆ BoundaryEleOp

Definition at line 48 of file multifield_plasticity.cpp.

◆ DomainEle

Definition at line 43 of file multifield_plasticity.cpp.

◆ DomainEleOp

Examples
OpPostProcElastic.hpp.

Definition at line 44 of file multifield_plasticity.cpp.

◆ EntData

Definition at line 42 of file multifield_plasticity.cpp.

◆ OpBodyForce

using OpBodyForce = FormsIntegrators<DomainEleOp>::Assembly<PETSC>::LinearForm< GAUSS>::OpSource<1, 3>

Definition at line 54 of file multifield_plasticity.cpp.

◆ OpLambdaGraULhs

using OpLambdaGraULhs = FormsIntegrators<DomainEleOp>::Assembly< PETSC>::BiLinearForm<GAUSS>::OpMixTensorTimesGrad<3>

Definition at line 59 of file multifield_plasticity.cpp.

◆ OpLogStrainMatrixLhs

using OpLogStrainMatrixLhs = FormsIntegrators<DomainEleOp>::Assembly< PETSC>::BiLinearForm<GAUSS>::OpGradTensorGrad<1, 3, 3, 1>

Definition at line 50 of file multifield_plasticity.cpp.

◆ OpMixDivULhs

using OpMixDivULhs = FormsIntegrators<DomainEleOp>::Assembly< PETSC>::BiLinearForm<GAUSS>::OpMixDivTimesVec<3>

Definition at line 57 of file multifield_plasticity.cpp.

◆ OpMixDivURhs

using OpMixDivURhs = FormsIntegrators<DomainEleOp>::Assembly<PETSC>::LinearForm< GAUSS>::OpMixDivTimesU<3>

Definition at line 61 of file multifield_plasticity.cpp.

◆ OpMiXLambdaGradURhs

using OpMiXLambdaGradURhs = FormsIntegrators<DomainEleOp>::Assembly< PETSC>::LinearForm<GAUSS>::OpMixTensorTimesGradU<3>

Definition at line 63 of file multifield_plasticity.cpp.

◆ OpMixUTimesDivLambdaRhs

using OpMixUTimesDivLambdaRhs = FormsIntegrators<DomainEleOp>::Assembly< PETSC>::LinearForm<GAUSS>::OpMixVecTimesDivLambda<3>

Definition at line 65 of file multifield_plasticity.cpp.

◆ OpMixUTimesLambdaRhs

using OpMixUTimesLambdaRhs = FormsIntegrators<DomainEleOp>::Assembly< PETSC>::LinearForm<GAUSS>::OpGradTimesTensor<1, 3, 3>

Definition at line 67 of file multifield_plasticity.cpp.

◆ OpSpringLhs

using OpSpringLhs = FormsIntegrators<BoundaryEleOp>::Assembly< PETSC>::BiLinearForm<GAUSS>::OpMass<1, 3>

Definition at line 70 of file multifield_plasticity.cpp.

◆ OpSpringRhs

using OpSpringRhs = FormsIntegrators<BoundaryEleOp>::Assembly< PETSC>::LinearForm<GAUSS>::OpBaseTimesVector<1, 3, 1>

Definition at line 72 of file multifield_plasticity.cpp.

◆ OpStiffnessMatrixLhs

using OpStiffnessMatrixLhs = FormsIntegrators<DomainEleOp>::Assembly< PETSC>::BiLinearForm<GAUSS>::OpGradSymTensorGrad<1, 3, 3, 0>

Definition at line 52 of file multifield_plasticity.cpp.

◆ SkeletonEle

Definition at line 45 of file multifield_plasticity.cpp.

◆ SkeletonEleOp

Definition at line 46 of file multifield_plasticity.cpp.

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 1358 of file multifield_plasticity.cpp.

1358  {
1359 
1360 #include <DefaultParams.hpp>
1361 
1362  MoFEM::Core::Initialize(&argc, &argv, param_file.c_str(), help);
1363 
1364  try {
1365 
1366  DMType dm_name = "DMMOFEM";
1367  CHKERR DMRegister_MoFEM(dm_name);
1368 
1369  moab::Core mb_instance; ///< mesh database
1370  moab::Interface &moab = mb_instance; ///< mesh database interface
1371 
1372  MoFEM::Core core(moab); ///< finite element database
1373  MoFEM::Interface &m_field = core; ///< finite element database insterface
1374 
1375  Simple *simple = m_field.getInterface<Simple>();
1376  CHKERR simple->getOptions();
1377  CHKERR simple->loadFile("");
1378 
1379  ContactPlasticity ex(m_field);
1381 
1382  // BlockParamData my_block_data;
1384  if (ex.data.scale_params)
1386  // cache = my_block_data; // TODO: make operator and change it for
1387  // particular blocks
1388 
1389  CHKERR ex.runProblem();
1390  }
1391  CATCH_ERRORS;
1392 
1394 }

Variable Documentation

◆ cache

Definition at line 81 of file multifield_plasticity.cpp.

◆ help

char help[] = "...\n\n"
static

Definition at line 1356 of file multifield_plasticity.cpp.

MoFEM::DeprecatedCoreInterface
Deprecated interface functions.
Definition: DeprecatedCoreInterface.hpp:26
DefaultParams.hpp
help
static char help[]
Definition: multifield_plasticity.cpp:1356
ContactPlasticity::getAnalysisParameters
static MoFEMErrorCode getAnalysisParameters()
Definition: multifield_plasticity.cpp:364
MoFEM::Simple
Simple interface for fast problem set-up.
Definition: Simple.hpp:36
MoFEM::Interface
DeprecatedCoreInterface Interface
Definition: Interface.hpp:1943
CHKERR
#define CHKERR
Inline error check.
Definition: definitions.h:604
param_file
std::string param_file
Definition: DefaultParams.hpp:29
simple
void simple(double P1[], double P2[], double P3[], double c[], const int N)
Definition: acoustic.cpp:69
MoFEM::CoreTmp< 0 >::Initialize
static MoFEMErrorCode Initialize(int *argc, char ***args, const char file[], const char help[])
Initializes the MoFEM database PETSc, MOAB and MPI.
Definition: Core.cpp:60
MoFEM::DMRegister_MoFEM
PetscErrorCode DMRegister_MoFEM(const char sname[])
Register MoFEM problem.
Definition: DMMMoFEM.cpp:48
MoFEM::CoreTmp< 0 >
Core (interface) class.
Definition: Core.hpp:77
MoFEM::CoreTmp< 0 >::Finalize
static MoFEMErrorCode Finalize()
Checks for options to be called at the conclusion of the program.
Definition: Core.cpp:100
BlockParamData::getOptionsFromCommandLine
MoFEMErrorCode getOptionsFromCommandLine()
Definition: BasicFeTools.hpp:96
CATCH_ERRORS
#define CATCH_ERRORS
Catch errors.
Definition: definitions.h:441
ContactPlasticity
Definition: multifield_plasticity.cpp:91
MoFEM::Core
CoreTmp< 0 > Core
Definition: Core.hpp:1129
MoFEM::UnknownInterface::getInterface
MoFEMErrorCode getInterface(const MOFEMuuid &uuid, IFACE *&iface) const
Get interface by uuid and return reference to pointer of interface.
Definition: UnknownInterface.hpp:130
BlockParamData::scaleParameters
MoFEMErrorCode scaleParameters()
Definition: BasicFeTools.hpp:236
cache
BlockParamData * cache
Definition: multifield_plasticity.cpp:81