v0.16.0
Loading...
Searching...
No Matches
Classes | Namespaces | Typedefs | Functions | Variables
elastic_tie_mesh.cpp File Reference
#include <MoFEM.hpp>
#include <ElasticExample.hpp>
#include <ElasticTie.hpp>
#include <AnalyticalSolutions.hpp>

Go to the source code of this file.

Classes

struct  DomainBCs
 [Define entities] More...
 
struct  BoundaryBCs
 Boundary conditions marker. More...
 
struct  ElasticTieMeshExample
 

Namespaces

namespace  ElasticTie
 

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 DomainRhsBCs = NaturalBC< DomainEleOp >::Assembly< A >::LinearForm< I >
 
using OpDomainRhsBCs = DomainRhsBCs::OpFlux< DomainBCs, 1, SPACE_DIM >
 
using BoundaryRhsBCs = NaturalBC< BoundaryEleOp >::Assembly< A >::LinearForm< I >
 
using OpBoundaryRhsBCs = BoundaryRhsBCs::OpFlux< BoundaryBCs, 1, SPACE_DIM >
 
using BoundaryLhsBCs = NaturalBC< BoundaryEleOp >::Assembly< A >::BiLinearForm< I >
 
using OpBoundaryLhsBCs = BoundaryLhsBCs::OpFlux< BoundaryBCs, 1, SPACE_DIM >
 
using SideEle = PipelineManager::ElementsAndOpsByDim< SPACE_DIM >::FaceSideEle
 

Functions

MoFEMErrorCode ElasticTie::makeClosureMeshset (moab::Interface &moab, const Range &ents, const int max_dim, EntityHandle &meshset)
 
Range ElasticTie::getPhysicalVolumeEntities (const Range &ents)
 
MoFEMErrorCode ElasticTie::getPrismTriangleFaces (moab::Interface &moab, const Range &ents, Range &triangle_faces)
 
int main (int argc, char *argv[])
 

Variables

constexpr int SPACE_DIM = EXECUTABLE_DIMENSION
 
constexpr AssemblyType A
 
constexpr IntegrationType I = IntegrationType::GAUSS
 
static char help [] = "...\n\n"
 

Typedef Documentation

◆ BoundaryEle

Definition at line 20 of file elastic_tie_mesh.cpp.

◆ BoundaryEleOp

Definition at line 23 of file elastic_tie_mesh.cpp.

◆ BoundaryLhsBCs

Definition at line 32 of file elastic_tie_mesh.cpp.

◆ BoundaryRhsBCs

Definition at line 30 of file elastic_tie_mesh.cpp.

◆ DomainEle

Definition at line 19 of file elastic_tie_mesh.cpp.

◆ DomainEleOp

Definition at line 22 of file elastic_tie_mesh.cpp.

◆ DomainRhsBCs

Definition at line 28 of file elastic_tie_mesh.cpp.

◆ EntData

Definition at line 18 of file elastic_tie_mesh.cpp.

◆ OpBoundaryLhsBCs

Definition at line 33 of file elastic_tie_mesh.cpp.

◆ OpBoundaryRhsBCs

Definition at line 31 of file elastic_tie_mesh.cpp.

◆ OpDomainRhsBCs

Definition at line 29 of file elastic_tie_mesh.cpp.

◆ SideEle

Definition at line 34 of file elastic_tie_mesh.cpp.

Function Documentation

◆ main()

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

Definition at line 378 of file elastic_tie_mesh.cpp.

378 {
379
380 const char param_file[] = "param_file.petsc";
381 MoFEM::Core::Initialize(&argc, &argv, param_file, help);
382
384
385 auto core_log = logging::core::get();
386 core_log->add_sink(
388 core_log->add_sink(
390 LogManager::setLog("FieldEvaluator");
391 MOFEM_LOG_TAG("FieldEvaluator", "field_eval");
392
393 try {
394 DMType dm_name = "DMMOFEM";
395 CHKERR DMRegister_MoFEM(dm_name);
396 DMType dm_name_mg = "DMMOFEM_MG";
398
399 moab::Core mb_instance;
400 moab::Interface &moab = mb_instance;
401
402 MoFEM::Core core(moab);
403 MoFEM::Interface &m_field = core;
404
405 ElasticTieMeshExample ex(m_field);
406 CHKERR ex.runProblem();
407 }
409
411}
#define CATCH_ERRORS
Catch errors.
#define CHKERR
Inline error check.
static char help[]
PetscErrorCode DMRegister_MoFEM(const char sname[])
Register MoFEM problem.
Definition DMMoFEM.cpp:43
MoFEMErrorCode DMRegister_MGViaApproxOrders(const char sname[])
Register DM for Multi-Grid via approximation orders.
static LoggerType & setLog(const std::string channel)
Set ans resset chanel logger.
#define MOFEM_LOG_TAG(channel, tag)
Tag channel.
Core (interface) class.
Definition Core.hpp:83
static MoFEMErrorCode Initialize(int *argc, char ***args, const char file[], const char help[])
Initializes the MoFEM database PETSc, MOAB and MPI.
Definition Core.cpp:68
static MoFEMErrorCode Finalize()
Checks for options to be called at the conclusion of the program.
Definition Core.cpp:123
Deprecated interface functions.
static boost::shared_ptr< SinkType > createSink(boost::shared_ptr< std::ostream > stream_ptr, std::string comm_filter)
Create a sink object.
static boost::shared_ptr< std::ostream > getStrmWorld()
Get the strm world object.
static boost::shared_ptr< std::ostream > getStrmSync()
Get the strm sync object.

Variable Documentation

◆ A

constexpr AssemblyType A
constexpr
Initial value:
=
(SCHUR_ASSEMBLE) ? AssemblyType::BLOCK_SCHUR : AssemblyType::PETSC
AssemblyType
[Storage and set boundary conditions]
@ PETSC
Standard PETSc assembly.
#define SCHUR_ASSEMBLE
Definition contact.cpp:18

Definition at line 14 of file elastic_tie_mesh.cpp.

◆ help

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

Definition at line 376 of file elastic_tie_mesh.cpp.

◆ I

constexpr IntegrationType I = IntegrationType::GAUSS
constexpr

Definition at line 16 of file elastic_tie_mesh.cpp.

◆ SPACE_DIM

constexpr int SPACE_DIM = EXECUTABLE_DIMENSION
constexpr