v0.16.3
Loading...
Searching...
No Matches
Functions | Variables
auxiliary_logarithmic_stress_patch_atom.cpp File Reference

Homogeneous finite-deformation patch and boundary flux verification. More...

#include <MoFEM.hpp>
#include "AuxiliaryLogarithmicStressTestSetup.hpp"
#include <AuxiliaryLogarithmicStress.hpp>
#include <Lie.hpp>

Go to the source code of this file.

Functions

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

Variables

static char help [] = "Prepare and solve an affine auxiliary logarithmic patch.\n"
 

Detailed Description

Homogeneous finite-deformation patch and boundary flux verification.

Definition in file auxiliary_logarithmic_stress_patch_atom.cpp.

Function Documentation

◆ main()

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

Definition at line 364 of file auxiliary_logarithmic_stress_patch_atom.cpp.

364 {
365 MoFEM::Core::Initialize(&argc, &argv, nullptr, help);
366#ifdef ENABLE_PYTHON_BINDING
367 Py_Initialize();
368 np::initialize();
369#endif
370 auto core_log = logging::core::get();
371 core_log->add_sink(LogManager::createSink(LogManager::getStrmWorld(), "EP"));
372 LogManager::setLog("EP");
373 core_log->add_sink(LogManager::createSink(LogManager::getStrmSelf(), "EPSELF"));
374 LogManager::setLog("EPSELF");
375 core_log->add_sink(LogManager::createSink(LogManager::getStrmSync(), "EPSYNC"));
376 LogManager::setLog("EPSYNC");
377 try {
379 // Read the mode before loading its mesh. The normal test setup creates its
380 // own MoFEM database and applies the same JSON configuration there.
381 {
382 moab::Core options_moab;
383 MoFEM::Core options_core(options_moab);
384 options_core.getInterface<JsonConfigManager>();
385 }
386 PetscBool prepare = PETSC_FALSE;
387 CHKERR PetscOptionsGetBool(nullptr, nullptr, "-patch_prepare", &prepare,
388 nullptr);
389 if (prepare)
390 CHKERR prepareMesh();
391 else
393 }
396 return 0;
397}
#define CATCH_ERRORS
Catch errors.
#define CHKERR
Inline error check.
static LoggerType & setLog(const std::string channel)
Set ans resset chanel logger.
MoFEMErrorCode runAuxiliaryLogarithmicStressTest(const std::function< MoFEMErrorCode(EshelbianCore &)> &test)
PetscErrorCode PetscOptionsGetBool(PetscOptions *, const char pre[], const char name[], PetscBool *bval, PetscBool *set)
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
static MoFEMErrorCode setMeshFileFromJson()
Set -file_name from JSON before Core is available.
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.
static boost::shared_ptr< std::ostream > getStrmSelf()
Get the strm self object.

Variable Documentation

◆ help

char help[] = "Prepare and solve an affine auxiliary logarithmic patch.\n"
static

Definition at line 362 of file auxiliary_logarithmic_stress_patch_atom.cpp.