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 []
 

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 378 of file auxiliary_logarithmic_stress_patch_atom.cpp.

378 {
379 MoFEM::Core::Initialize(&argc, &argv, nullptr, help);
380#ifdef ENABLE_PYTHON_BINDING
381 Py_Initialize();
382 np::initialize();
383#endif
384 auto core_log = logging::core::get();
385 core_log->add_sink(LogManager::createSink(LogManager::getStrmWorld(), "EP"));
386 LogManager::setLog("EP");
387 core_log->add_sink(
389 LogManager::setLog("EPSELF");
390 core_log->add_sink(
392 LogManager::setLog("EPSYNC");
393 try {
395 // Read the mode before loading its mesh. The normal test setup creates its
396 // own MoFEM database and applies the same JSON configuration there.
397 {
398 moab::Core options_moab;
399 MoFEM::Core options_core(options_moab);
400 options_core.getInterface<JsonConfigManager>();
401 }
402 PetscBool prepare = PETSC_FALSE;
403 CHKERR PetscOptionsGetBool(nullptr, nullptr, "-patch_prepare", &prepare,
404 nullptr);
405 if (prepare)
406 CHKERR prepareMesh();
407 else
409 }
412 return 0;
413}
#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[]
static
Initial value:
=
"Prepare and solve an affine auxiliary logarithmic patch.\n"

Definition at line 375 of file auxiliary_logarithmic_stress_patch_atom.cpp.