v0.15.0
Loading...
Searching...
No Matches
Classes | Typedefs | Functions | Variables
nonlinear_elastic.cpp File Reference
#include <MoFEM.hpp>
#include <MatrixFunction.hpp>
#include <HenckyOps.hpp>
#include <Monitor.hpp>
#include <NonlinearElasticExample.hpp>

Go to the source code of this file.

Classes

struct  PostProcEleByDim< 2 >
 
struct  PostProcEleByDim< 3 >
 
struct  Example
 [Example] More...
 
struct  Monitor
 [Push operators to pipeline] More...
 

Typedefs

using EntData = EntitiesFieldData::EntData
 
using DomainEle = PipelineManager::ElementsAndOpsByDim< SPACE_DIM >::DomainEle
 
using BoundaryEle = PipelineManager::ElementsAndOpsByDim< SPACE_DIM >::BoundaryEle
 
using DomainEleOp = DomainEle::UserDataOperator
 
using BoundaryEleOp = BoundaryEle::UserDataOperator
 
using DomainNaturalBC = NaturalBC< DomainEleOp >::Assembly< PETSC >::LinearForm< GAUSS >
 
using OpBodyForce = DomainNaturalBC::OpFlux< NaturalMeshsetType< BLOCKSET >, 1, SPACE_DIM >
 
using BoundaryNaturalBC = NaturalBC< BoundaryEleOp >::Assembly< PETSC >::LinearForm< GAUSS >
 
using OpForce = BoundaryNaturalBC::OpFlux< NaturalForceMeshsets, 1, SPACE_DIM >
 
using SideEle = PostProcEleByDim< SPACE_DIM >::SideEle
 
using PostProcEleBdy = PostProcEleByDim< SPACE_DIM >::PostProcEleBdy
 
using PostProcEleDomain = PostProcEleByDim< SPACE_DIM >::PostProcEleDomain
 
using PostProcEdges = PostProcBrokenMeshInMoabBase< EdgeElementForcesAndSourcesCore >
 
using ExampleTimeScale = TimeScale
 

Functions

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

Variables

constexpr int SPACE_DIM
 
static char help [] = "...\n\n"
 
static char help [] = "...\n\n"
 [Check]
 

Typedef Documentation

◆ BoundaryEle

Definition at line 20 of file nonlinear_elastic.cpp.

◆ BoundaryEleOp

Definition at line 23 of file nonlinear_elastic.cpp.

◆ BoundaryNaturalBC

using BoundaryNaturalBC = NaturalBC<BoundaryEleOp>::Assembly<PETSC>::LinearForm<GAUSS>

Definition at line 30 of file nonlinear_elastic.cpp.

◆ DomainEle

Definition at line 19 of file nonlinear_elastic.cpp.

◆ DomainEleOp

◆ DomainNaturalBC

using DomainNaturalBC = NaturalBC<DomainEleOp>::Assembly<PETSC>::LinearForm<GAUSS>

Definition at line 25 of file nonlinear_elastic.cpp.

◆ EntData

Definition at line 18 of file nonlinear_elastic.cpp.

◆ ExampleTimeScale

Definition at line 58 of file nonlinear_elastic.cpp.

◆ OpBodyForce

◆ OpForce

Definition at line 32 of file nonlinear_elastic.cpp.

◆ PostProcEdges

Definition at line 51 of file nonlinear_elastic.cpp.

◆ PostProcEleBdy

Definition at line 49 of file nonlinear_elastic.cpp.

◆ PostProcEleDomain

Definition at line 50 of file nonlinear_elastic.cpp.

◆ SideEle

Definition at line 48 of file nonlinear_elastic.cpp.

Function Documentation

◆ main()

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

[Register MoFEM discrete manager in PETSc]

[Register MoFEM discrete manager in PETSc

[Create MoAB]

< mesh database

< mesh database interface

[Create MoAB]

[Create MoFEM]

< finite element database

< finite element database interface

[Create MoFEM]

[Example]

[Example]

[Register MoFEM discrete manager in PETSc]

[Register MoFEM discrete manager in PETSc

[Create MoAB]

< mesh database

< mesh database interface

[Create MoAB]

[Create MoFEM]

< finite element database

< finite element database interface

[Create MoFEM]

[Example]

[Example]

Definition at line 63 of file nonlinear_elastic.cpp.

75 {
77 CHKERR readMesh();
78 CHKERR setupProblem();
79 CHKERR boundaryCondition();
80 CHKERR assembleSystem();
81 CHKERR solveSystem();
82 CHKERR gettingNorms();
83 CHKERR outputResults();
84 CHKERR checkResults();
86}
87//! [Run problem]
88
89//! [Read mesh]
94 char meshFileName[255];
95 CHKERR PetscOptionsGetString(PETSC_NULL, PETSC_NULL, "-file_name",
96 meshFileName, 255, PETSC_NULL);
97 CHKERR simple->loadFile("", meshFileName,
100}
101//! [Read mesh]
void simple(double P1[], double P2[], double P3[], double c[], const int N)
Definition acoustic.cpp:69
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
#define CHKERR
Inline error check.
PetscErrorCode MoFEMErrorCode
MoFEM/PETSc error code.
PetscErrorCode PetscOptionsGetString(PetscOptions *, const char pre[], const char name[], char str[], size_t size, PetscBool *set)
MoFEMErrorCode readMesh()
[Run problem]
MoFEM::Interface & mField
Reference to MoFEM interface.
Definition plastic.cpp:226
Class (Function) to enforce essential constrains.
Definition Essential.hpp:25
Simple interface for fast problem set-up.
Definition Simple.hpp:27
MoFEMErrorCode getOptions()
get options
Definition Simple.cpp:180
MoFEMErrorCode getInterface(IFACE *&iface) const
Get interface reference to pointer of interface.

Variable Documentation

◆ help [1/2]

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

Definition at line 61 of file nonlinear_elastic.cpp.

◆ help [2/2]

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

[Check]

Definition at line 506 of file nonlinear_elastic.cpp.

◆ SPACE_DIM

constexpr int SPACE_DIM
constexpr