v0.14.0
Loading...
Searching...
No Matches
adolc_plasticity.cpp File Reference

Go to the source code of this file.

Classes

struct  ElementsAndOps< 2 >
 
struct  ElementsAndOps< 3 >
 
struct  PlasticProblem
 
struct  Monitor
 [Push operators to pipeline] More...
 

Typedefs

using DomainEle = PipelineManager::ElementsAndOpsByDim<SPACE_DIM>::DomainEle
 
using BoundaryEle
 
using DomainNaturalBC
 
using OpBodyForce
 
using BoundaryRhsBCs
 
using OpBoundaryRhsBCs
 
using BoundaryLhsBCs
 
using OpBoundaryLhsBCs
 
using PostProcEleDomain = ElementsAndOps<SPACE_DIM>::PostProcEleDomain
 
using SideEle = ElementsAndOps<SPACE_DIM>::SideEle
 
using PostProcEleBdy = ElementsAndOps<SPACE_DIM>::PostProcEleBdy
 

Functions

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

Variables

constexpr int SPACE_DIM
 
constexpr FieldSpace CONTACT_SPACE = ElementsAndOps<SPACE_DIM>::CONTACT_SPACE
 
double scale = 1.
 
static boost::shared_ptr< TSUpdatets_update_ptr = nullptr
 
static char help [] = "...\n\n"
 [Check]
 

Typedef Documentation

◆ BoundaryEle

using BoundaryEle
Initial value:

Select finite element type for integrate on boundary based on problem dimension

Definition at line 27 of file adolc_plasticity.cpp.

◆ BoundaryLhsBCs

Initial value:

Use Gauss quadrature rule and PETSc assembly to integrate neural boundary conditions. Select bi-linear forms operators.

Definition at line 69 of file adolc_plasticity.cpp.

◆ BoundaryRhsBCs

Initial value:

Use Gauss quadrature rule and PETSc assembly to integrate neural boundary conditions. Select linear forms operators.

Definition at line 57 of file adolc_plasticity.cpp.

◆ DomainEle

Select finite element type for integration on domain based on problem dimension

Examples
adolc_plasticity.cpp.

Definition at line 22 of file adolc_plasticity.cpp.

◆ DomainNaturalBC

Initial value:

Linear forms used to integrate body forces

Definition at line 39 of file adolc_plasticity.cpp.

◆ OpBodyForce

using OpBodyForce
Initial value:

Select linear froms reading data from blockest (e.g. "BODY_FORCE") and applying body force.

Definition at line 45 of file adolc_plasticity.cpp.

◆ OpBoundaryLhsBCs

Initial value:

Use specialization from adv-1 integrating boundary conditions on forces and with springs

Definition at line 75 of file adolc_plasticity.cpp.

◆ OpBoundaryRhsBCs

◆ PostProcEleBdy

◆ PostProcEleDomain

◆ SideEle

Definition at line 103 of file adolc_plasticity.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]

[PlasticProblem]

[PlasticProblem]

Definition at line 1342 of file adolc_plasticity.cpp.

1342 {
1343
1344#ifdef ADD_CONTACT
1345#ifdef PYTHON_SDF
1346 Py_Initialize();
1347 np::initialize();
1348#endif
1349#endif // ADD_CONTACT
1350
1351 // Initialisation of MoFEM/PETSc and MOAB data structures
1352 const char param_file[] = "param_file.petsc";
1353 MoFEM::Core::Initialize(&argc, &argv, param_file, help);
1354
1355 // Add logging channel for example
1356 auto core_log = logging::core::get();
1357 core_log->add_sink(
1359 LogManager::setLog("PlasticPrb");
1360 MOFEM_LOG_TAG("PlasticPrb", "PlasticPrb");
1361 MOFEM_LOG("PlasticPrb", Sev::inform) << "SPACE_DIM " << SPACE_DIM;
1362#ifdef ADD_CONTACT
1363 core_log->add_sink(
1365 LogManager::setLog("CONTACT");
1366 MOFEM_LOG_TAG("CONTACT", "Contact");
1367#endif // ADD_CONTACT
1368
1369 try {
1370
1371 //! [Register MoFEM discrete manager in PETSc]
1372 DMType dm_name = "DMMOFEM";
1373 CHKERR DMRegister_MoFEM(dm_name);
1374 //! [Register MoFEM discrete manager in PETSc
1375
1376 //! [Create MoAB]
1377 moab::Core mb_instance; ///< mesh database
1378 moab::Interface &moab = mb_instance; ///< mesh database interface
1379 //! [Create MoAB]
1380
1381 //! [Create MoFEM]
1382 MoFEM::Core core(moab); ///< finite element database
1383 MoFEM::Interface &m_field = core; ///< finite element database interface
1384 //! [Create MoFEM]
1385
1386 //! [PlasticProblem]
1387 PlasticProblem ex(m_field);
1388 CHKERR ex.runProblem();
1389 //! [PlasticProblem]
1390 }
1392
1394#ifdef ADD_CONTACT
1395#ifdef PYTHON_SDF
1396 if (Py_FinalizeEx() < 0) {
1397 exit(120);
1398 }
1399#endif
1400#endif // ADD_CONTACT
1401 return 0;
1402}
static char help[]
[Check]
#define CATCH_ERRORS
Catch errors.
#define CHKERR
Inline error check.
PetscErrorCode DMRegister_MoFEM(const char sname[])
Register MoFEM problem.
Definition DMMoFEM.cpp:43
static LoggerType & setLog(const std::string channel)
Set ans resset chanel logger.
#define MOFEM_LOG(channel, severity)
Log.
#define MOFEM_LOG_TAG(channel, tag)
Tag channel.
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.
static boost::shared_ptr< std::ostream > getStrmWorld()
Get the strm world object.

Variable Documentation

◆ CONTACT_SPACE

FieldSpace CONTACT_SPACE = ElementsAndOps<SPACE_DIM>::CONTACT_SPACE
constexpr
Examples
adolc_plasticity.cpp.

Definition at line 100 of file adolc_plasticity.cpp.

◆ help

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

[Check]

Definition at line 1340 of file adolc_plasticity.cpp.

◆ scale

double scale = 1.
Examples
adolc_plasticity.cpp.

Definition at line 106 of file adolc_plasticity.cpp.

◆ SPACE_DIM

int SPACE_DIM
constexpr
Initial value:
=
#define EXECUTABLE_DIMENSION
Definition plastic.cpp:13
Examples
adolc_plasticity.cpp, dynamic_first_order_con_law.cpp, and free_surface.cpp.

Definition at line 14 of file adolc_plasticity.cpp.

◆ ts_update_ptr

boost::shared_ptr<TSUpdate> ts_update_ptr = nullptr
static
Examples
adolc_plasticity.cpp.

Definition at line 792 of file adolc_plasticity.cpp.