v0.14.0
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
 [Push operators to pipeline] More...
 

Typedefs

using EntData = EntitiesFieldData::EntData
 
using DomainEle = ElementsAndOps< SPACE_DIM >::DomainEle
 
using DomainEleOp = DomainEle::UserDataOperator
 
using PostProcEle = PostProcBrokenMeshInMoab< DomainEle >
 
using OpMass = FormsIntegrators< DomainEleOp >::Assembly< PETSC >::BiLinearForm< GAUSS >::OpMass< 1, SPACE_DIM >
 
using OpInertiaForce = FormsIntegrators< DomainEleOp >::Assembly< PETSC >::LinearForm< GAUSS >::OpBaseTimesVector< 1, SPACE_DIM, 1 >
 
using DomainNaturalBC = NaturalBC< DomainEleOp >::Assembly< PETSC >::LinearForm< GAUSS >
 
using OpBodyForceVector = DomainNaturalBC::OpFlux< NaturalMeshsetTypeVectorScaling< BLOCKSET >, 1, SPACE_DIM >
 

Functions

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

Variables

constexpr int SPACE_DIM
 
constexpr double rho = 1
 
constexpr double omega = 2.4
 
constexpr double young_modulus = 1
 
constexpr double poisson_ratio = 0.25
 
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.

◆ DomainNaturalBC

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

Definition at line 37 of file nonlinear_dynamic_elastic.cpp.

◆ EntData

Definition at line 26 of file nonlinear_dynamic_elastic.cpp.

◆ OpBodyForceVector

Definition at line 40 of file nonlinear_dynamic_elastic.cpp.

◆ OpInertiaForce

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

Definition at line 34 of file nonlinear_dynamic_elastic.cpp.

◆ OpMass

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

Definition at line 32 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[] 
)

[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 446 of file nonlinear_dynamic_elastic.cpp.

446  {
447 
448  // Initialisation of MoFEM/PETSc and MOAB data structures
449  const char param_file[] = "param_file.petsc";
450  MoFEM::Core::Initialize(&argc, &argv, param_file, help);
451 
452  // Add logging channel for example
453  auto core_log = logging::core::get();
454  core_log->add_sink(
455  LogManager::createSink(LogManager::getStrmWorld(), "EXAMPLE"));
456  LogManager::setLog("EXAMPLE");
457  MOFEM_LOG_TAG("EXAMPLE", "example");
458 
459  try {
460 
461  //! [Register MoFEM discrete manager in PETSc]
462  DMType dm_name = "DMMOFEM";
463  CHKERR DMRegister_MoFEM(dm_name);
464  //! [Register MoFEM discrete manager in PETSc
465 
466  //! [Create MoAB]
467  moab::Core mb_instance; ///< mesh database
468  moab::Interface &moab = mb_instance; ///< mesh database interface
469  //! [Create MoAB]
470 
471  //! [Create MoFEM]
472  MoFEM::Core core(moab); ///< finite element database
473  MoFEM::Interface &m_field = core; ///< finite element database interface
474  //! [Create MoFEM]
475 
476  //! [Example]
477  Example ex(m_field);
478  CHKERR ex.runProblem();
479  //! [Example]
480  }
481  CATCH_ERRORS;
482 
484 }

Variable Documentation

◆ help

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

[Check]

Definition at line 444 of file nonlinear_dynamic_elastic.cpp.

◆ omega

constexpr double omega = 2.4
constexpr

Definition at line 43 of file nonlinear_dynamic_elastic.cpp.

◆ poisson_ratio

constexpr double poisson_ratio = 0.25
constexpr

Definition at line 45 of file nonlinear_dynamic_elastic.cpp.

◆ rho

constexpr double rho = 1
constexpr

Definition at line 42 of file nonlinear_dynamic_elastic.cpp.

◆ SPACE_DIM

constexpr int SPACE_DIM
constexpr
Initial value:

Definition at line 23 of file nonlinear_dynamic_elastic.cpp.

◆ ts_aa_ptr

double* ts_aa_ptr
static

Definition at line 51 of file nonlinear_dynamic_elastic.cpp.

◆ ts_time_ptr

double* ts_time_ptr
static

Definition at line 50 of file nonlinear_dynamic_elastic.cpp.

◆ young_modulus

constexpr double young_modulus = 1
constexpr

Definition at line 44 of file nonlinear_dynamic_elastic.cpp.

EXECUTABLE_DIMENSION
#define EXECUTABLE_DIMENSION
Definition: plastic.cpp:13
MoFEM::CoreTmp< 0 >
Core (interface) class.
Definition: Core.hpp:82
MoFEM::CoreTmp< 0 >::Finalize
static MoFEMErrorCode Finalize()
Checks for options to be called at the conclusion of the program.
Definition: Core.cpp:112
MoFEM::DeprecatedCoreInterface
Deprecated interface functions.
Definition: DeprecatedCoreInterface.hpp:16
MoFEM::Interface
DeprecatedCoreInterface Interface
Definition: Interface.hpp:2010
help
static char help[]
[Check]
Definition: nonlinear_dynamic_elastic.cpp:444
CHKERR
#define CHKERR
Inline error check.
Definition: definitions.h:548
Example
[Example]
Definition: plastic.cpp:177
MoFEM::DMRegister_MoFEM
PetscErrorCode DMRegister_MoFEM(const char sname[])
Register MoFEM problem.
Definition: DMMoFEM.cpp:43
MOFEM_LOG_TAG
#define MOFEM_LOG_TAG(channel, tag)
Tag channel.
Definition: LogManager.hpp:339
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:72
CATCH_ERRORS
#define CATCH_ERRORS
Catch errors.
Definition: definitions.h:385
MoFEM::Core
CoreTmp< 0 > Core
Definition: Core.hpp:1148