20 #ifndef GEOSX_MANAGERS_PROBLEMMANAGER_HPP_ 21 #define GEOSX_MANAGERS_PROBLEMMANAGER_HPP_ 23 #ifdef GEOSX_USE_PYTHON 26 #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION 28 #include <numpy/arrayobject.h> 31 #include "EventManager.hpp" 38 class PhysicsSolverManager;
39 class DomainPartition;
40 namespace constitutive
42 class ConstitutiveManager;
57 Group *
const parent );
76 integer documentationType )
override;
86 virtual Group * CreateChild(
string const & childKey,
string const & childName )
override;
91 void ParseCommandLineInput();
98 static bool ParseRestart(
std::string & restartFileName );
105 void InitializePythonInterpreter();
112 void ClosePythonInterpreter();
122 void GenerateDocumentation();
128 void ParseInputFile();
139 void ApplyNumericalMethods();
145 void InitializationOrder(
string_array & order )
override final;
155 void RunSimulation();
160 void ReadRestartOverwrite();
165 void ApplyInitialConditions();
184 {
return GetGroup< Group >(
groupKeys.commandLine )->getReference< string >( viewKeys.problemName ); }
191 {
return GetGroup< Group >(
groupKeys.commandLine )->getReference< string >( viewKeys.inputFileName ); }
198 {
return GetGroup< Group >(
groupKeys.commandLine )->getReference< string >( viewKeys.restartFileName ); }
205 {
return GetGroup< Group >(
groupKeys.commandLine )->getReference< string >( viewKeys.schemaFileName ); }
241 static constexpr
auto numericalMethodsManagerString =
"NumericalMethods";
262 return *m_physicsSolverManager;
271 return *m_physicsSolverManager;
278 virtual void PostProcessInput()
override final;
301 void setRegionQuadrature(
Group & meshBodies,
302 constitutive::ConstitutiveManager
const & constitutiveManager,
303 map< std::pair< string, string >,
localIndex >
const & regionQuadrature );
306 PhysicsSolverManager * m_physicsSolverManager;
pugi::xml_document xmlDocument
Alias for the type of xml document.
pugi::xml_node xmlNode
Alias for the type of an xml node.
Command line input viewKeys.
Base template for ordered and unordered maps.
const string & getSchemaFileName() const
Returns the schema file name.
xmlWrapper::xmlNode xmlProblemNode
Input file Problem node handle.
xmlWrapper::xmlDocument xmlDocument
Input file xml document handle.
const string & getInputFileName() const
Returns the input file name.
PhysicsSolverManager & GetPhysicsSolverManager()
Returns the PhysicsSolverManager.
Group::wrapperMap::KeyIndex ViewKey
Type alias for KeyIndexT type used for wrapper lookups.
std::int32_t integer
Signed integer type.
contains the added group access keys to be bound with class in group hierarchy
pugi::xml_parse_result xmlResult
Alias for the type of the result from an xml parse attempt.
const string & getRestartFileName() const
Returns the restart file name.
xmlWrapper::xmlResult xmlResult
Input file parsing results.
std::ptrdiff_t localIndex
Local index type (for indexing objects within an MPI partition).
This is the class handling the operation flow of the problem being ran in GEOSX.
std::string string
String type.
This class provides a fixed dimensional resizeable array interface in addition to an interface simila...
Partition of the decomposed physical domain. It also manages the connexion information to its neighbo...
const string & getProblemName() const
Returns the problem name.
PhysicsSolverManager const & GetPhysicsSolverManager() const
Returns the PhysicsSolverManager.