v0.14.0
Loading...
Searching...
No Matches
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 36 of file nonlinear_dynamic_elastic.cpp.

◆ EntData

Definition at line 26 of file nonlinear_dynamic_elastic.cpp.

◆ OpBodyForceVector

Definition at line 38 of file nonlinear_dynamic_elastic.cpp.

◆ OpInertiaForce

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

Definition at line 33 of file nonlinear_dynamic_elastic.cpp.

◆ OpMass

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

Definition at line 31 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";
451
452 // Add logging channel for example
453 auto core_log = logging::core::get();
454 core_log->add_sink(
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 }
482
484}
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: DMMoFEM.cpp:47
static LoggerType & setLog(const std::string channel)
Set ans resset chanel logger.
Definition: LogManager.cpp:389
#define MOFEM_LOG_TAG(channel, tag)
Tag channel.
Definition: LogManager.hpp:339
static char help[]
[Check]
[Example]
Definition: plastic.cpp:217
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.
static boost::shared_ptr< SinkType > createSink(boost::shared_ptr< std::ostream > stream_ptr, std::string comm_filter)
Create a sink object.
Definition: LogManager.cpp:298
static boost::shared_ptr< std::ostream > getStrmWorld()
Get the strm world object.
Definition: LogManager.cpp:344

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:
=
#define EXECUTABLE_DIMENSION
Definition: plastic.cpp:13

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.