v0.16.0
Loading...
Searching...
No Matches
neohookean_stretch_gradient_atom.cpp
Go to the documentation of this file.
1#include <MoFEM.hpp>
2
3using namespace MoFEM;
4
7} // namespace EshelbianPlasticity
8
9static char help[] =
10 "Finite-difference check of HMHNeohookean dHenckyStretch/dBiotStress.\n"
11 "Reproduction options:\n"
12 " -nh_stretch_atom_c10 <real>\n"
13 " -nh_stretch_atom_k <real>\n"
14 " -nh_stretch_atom_q <real>\n"
15 " -nh_stretch_atom_max_it <int>\n"
16 " -nh_stretch_atom_tol <real>\n"
17 " -nh_stretch_atom_biot_stress <s00,s01,s02,s11,s12,s22>\n";
18
19int main(int argc, char *argv[]) {
20 MoFEM::Core::Initialize(&argc, &argv, (char *)0, help);
21
22 auto core_log = logging::core::get();
23 core_log->add_sink(LogManager::createSink(LogManager::getStrmSelf(), "EP"));
25 MOFEM_LOG_TAG("EP", "neohookean_stretch_gradient_atom");
26
27 try {
29 }
31
33 return 0;
34}
int main()
#define CATCH_ERRORS
Catch errors.
#define CHKERR
Inline error check.
static LoggerType & setLog(const std::string channel)
Set ans resset chanel logger.
#define MOFEM_LOG_TAG(channel, tag)
Tag channel.
MoFEMErrorCode testHMHNeohookeanStretchGradient()
PetscErrorCode MoFEMErrorCode
MoFEM/PETSc error code.
implementation of Data Operators for Forces and Sources
Definition Common.hpp:10
static char help[]
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 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 > getStrmSelf()
Get the strm self object.