v0.13.1
Classes | Typedefs | Functions | Variables
nonlinear_dynamic_elastic.cpp File Reference
#include <MoFEM.hpp>
#include <MatrixFunction.hpp>
#include <HenckyOps.hpp>

Go to the source code of this file.

Classes

struct  ElementsAndOps< DIM >
 
struct  ElementsAndOps< 2 >
 
struct  ElementsAndOps< 3 >
 
struct  Example
 [Example] More...
 
struct  Monitor
 Monitor solution. More...
 

Typedefs

using EntData = EntitiesFieldData::EntData
 
using DomainEle = ElementsAndOps< SPACE_DIM >::DomainEle
 
using DomainEleOp = DomainEle::UserDataOperator
 
using PostProcEle = PostProcBrokenMeshInMoab< DomainEle >
 
using OpK = FormsIntegrators< DomainEleOp >::Assembly< PETSC >::BiLinearForm< GAUSS >::OpGradTensorGrad< 1, SPACE_DIM, SPACE_DIM, 1 >
 
using OpMass = FormsIntegrators< DomainEleOp >::Assembly< PETSC >::BiLinearForm< GAUSS >::OpMass< 1, SPACE_DIM >
 
using OpInternalForce = FormsIntegrators< DomainEleOp >::Assembly< PETSC >::LinearForm< GAUSS >::OpGradTimesTensor< 1, SPACE_DIM, SPACE_DIM >
 
using OpBodyForce = FormsIntegrators< DomainEleOp >::Assembly< PETSC >::LinearForm< GAUSS >::OpSource< 1, SPACE_DIM >
 
using OpInertiaForce = FormsIntegrators< DomainEleOp >::Assembly< PETSC >::LinearForm< GAUSS >::OpBaseTimesVector< 1, SPACE_DIM, 1 >
 

Functions

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

Variables

constexpr int SPACE_DIM
 
constexpr bool is_quasi_static = false
 
constexpr double rho = 1
 
constexpr double omega = 2.4
 
constexpr double young_modulus = 1
 
constexpr double poisson_ratio = 0.25
 
constexpr double bulk_modulus_K = young_modulus / (3 * (1 - 2 * poisson_ratio))
 
constexpr double shear_modulus_G = young_modulus / (2 * (1 + poisson_ratio))
 
static doublets_time_ptr
 
static doublets_aa_ptr
 
static char help [] = "...\n\n"
 [Check] More...
 

Typedef Documentation

◆ DomainEle

Definition at line 27 of file nonlinear_dynamic_elastic.cpp.

◆ DomainEleOp

Definition at line 28 of file nonlinear_dynamic_elastic.cpp.

◆ EntData

Definition at line 26 of file nonlinear_dynamic_elastic.cpp.

◆ OpBodyForce

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

Definition at line 37 of file nonlinear_dynamic_elastic.cpp.

◆ OpInertiaForce

using OpInertiaForce = FormsIntegrators<DomainEleOp>::Assembly< PETSC>::LinearForm<GAUSS>::OpBaseTimesVector<1, SPACE_DIM, 1>

Definition at line 39 of file nonlinear_dynamic_elastic.cpp.

◆ OpInternalForce

using OpInternalForce = FormsIntegrators<DomainEleOp>::Assembly< PETSC>::LinearForm<GAUSS>::OpGradTimesTensor<1, SPACE_DIM, SPACE_DIM>

Definition at line 35 of file nonlinear_dynamic_elastic.cpp.

◆ OpK

using OpK = FormsIntegrators<DomainEleOp>::Assembly<PETSC>::BiLinearForm< GAUSS>::OpGradTensorGrad<1, SPACE_DIM, SPACE_DIM, 1>

Definition at line 31 of file nonlinear_dynamic_elastic.cpp.

◆ OpMass

using OpMass = FormsIntegrators<DomainEleOp>::Assembly<PETSC>::BiLinearForm< GAUSS>::OpMass<1, SPACE_DIM>

Definition at line 33 of file nonlinear_dynamic_elastic.cpp.

◆ PostProcEle

Definition at line 29 of file nonlinear_dynamic_elastic.cpp.

Function Documentation

◆ main()

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

Definition at line 453 of file nonlinear_dynamic_elastic.cpp.

453 {
454
455 // Initialisation of MoFEM/PETSc and MOAB data structures
456 const char param_file[] = "param_file.petsc";
458
459 // Add logging channel for example
460 auto core_log = logging::core::get();
461 core_log->add_sink(
462 LogManager::createSink(LogManager::getStrmWorld(), "EXAMPLE"));
463 LogManager::setLog("EXAMPLE");
464 MOFEM_LOG_TAG("EXAMPLE", "example");
465
466 try {
467
468 //! [Register MoFEM discrete manager in PETSc]
469 DMType dm_name = "DMMOFEM";
470 CHKERR DMRegister_MoFEM(dm_name);
471 //! [Register MoFEM discrete manager in PETSc
472
473 //! [Create MoAB]
474 moab::Core mb_instance; ///< mesh database
475 moab::Interface &moab = mb_instance; ///< mesh database interface
476 //! [Create MoAB]
477
478 //! [Create MoFEM]
479 MoFEM::Core core(moab); ///< finite element database
480 MoFEM::Interface &m_field = core; ///< finite element database insterface
481 //! [Create MoFEM]
482
483 //! [Example]
484 Example ex(m_field);
485 CHKERR ex.runProblem();
486 //! [Example]
487 }
489
491}
std::string param_file
#define CATCH_ERRORS
Catch errors.
Definition: definitions.h:372
#define CHKERR
Inline error check.
Definition: definitions.h:535
PetscErrorCode DMRegister_MoFEM(const char sname[])
Register MoFEM problem.
Definition: DMMMoFEM.cpp:47
#define MOFEM_LOG_TAG(channel, tag)
Tag channel.
Definition: LogManager.hpp:332
CoreTmp< 0 > Core
Definition: Core.hpp:1086
DeprecatedCoreInterface Interface
Definition: Interface.hpp:1955
static char help[]
[Check]
[Example]
Definition: plastic.cpp:120
Core (interface) class.
Definition: Core.hpp:82
static MoFEMErrorCode Initialize(int *argc, char ***args, const char file[], const char help[])
Initializes the MoFEM database PETSc, MOAB and MPI.
Definition: Core.cpp:72
static MoFEMErrorCode Finalize()
Checks for options to be called at the conclusion of the program.
Definition: Core.cpp:112
Deprecated interface functions.

Variable Documentation

◆ bulk_modulus_K

constexpr double bulk_modulus_K = young_modulus / (3 * (1 - 2 * poisson_ratio))
constexpr

Definition at line 47 of file nonlinear_dynamic_elastic.cpp.

◆ help

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

[Check]

Definition at line 451 of file nonlinear_dynamic_elastic.cpp.

◆ is_quasi_static

constexpr bool is_quasi_static = false
constexpr

Definition at line 42 of file nonlinear_dynamic_elastic.cpp.

◆ omega

constexpr double omega = 2.4
constexpr

Definition at line 44 of file nonlinear_dynamic_elastic.cpp.

◆ poisson_ratio

constexpr double poisson_ratio = 0.25
constexpr

Definition at line 46 of file nonlinear_dynamic_elastic.cpp.

◆ rho

constexpr double rho = 1
constexpr

Definition at line 43 of file nonlinear_dynamic_elastic.cpp.

◆ shear_modulus_G

constexpr double shear_modulus_G = young_modulus / (2 * (1 + poisson_ratio))
constexpr

Definition at line 48 of file nonlinear_dynamic_elastic.cpp.

◆ SPACE_DIM

constexpr int SPACE_DIM
constexpr
Initial value:
=
#define EXECUTABLE_DIMENSION
Definition: plastic.cpp:10

Definition at line 23 of file nonlinear_dynamic_elastic.cpp.

◆ ts_aa_ptr

double* ts_aa_ptr
static

Definition at line 54 of file nonlinear_dynamic_elastic.cpp.

◆ ts_time_ptr

double* ts_time_ptr
static

Definition at line 53 of file nonlinear_dynamic_elastic.cpp.

◆ young_modulus

constexpr double young_modulus = 1
constexpr

Definition at line 45 of file nonlinear_dynamic_elastic.cpp.