OGS
|
Definition at line 29 of file Simulation.h.
#include <Simulation.h>
Public Member Functions | |
OGS_EXPORT_SYMBOL | Simulation (int argc, char *argv[]) |
OGS_EXPORT_SYMBOL void | initializeDataStructures (std::string const &project, std::vector< std::string > const &xml_patch_file_names, bool reference_path_is_set, std::string const &reference_path, bool nonfatal, std::string const &outdir, std::string const &mesh_dir, std::string const &script_dir, bool write_prj) |
OGS_EXPORT_SYMBOL double | currentTime () const |
OGS_EXPORT_SYMBOL double | endTime () const |
OGS_EXPORT_SYMBOL bool | executeTimeStep () |
OGS_EXPORT_SYMBOL bool | executeSimulation () |
OGS_EXPORT_SYMBOL void | outputLastTimeStep () const |
OGS_EXPORT_SYMBOL MeshLib::Mesh & | getMesh (std::string const &name) |
OGS_EXPORT_SYMBOL std::optional< ApplicationsLib::TestDefinition > | getTestDefinition () const |
OGS_EXPORT_SYMBOL | ~Simulation () |
Private Attributes | |
ApplicationsLib::LinearSolverLibrarySetup | linear_solver_library_setup |
vtkSmartPointer< vtkMPIController > | controller |
std::unique_ptr< ProjectData > | project_data |
std::optional< ApplicationsLib::TestDefinition > | test_definition |
bool | isInsituConfigured = false |
Simulation::Simulation | ( | int | argc, |
char * | argv[] ) |
Definition at line 28 of file Simulation.cpp.
References controller.
Simulation::~Simulation | ( | ) |
Definition at line 175 of file Simulation.cpp.
References controller, InSituLib::Finalize(), and isInsituConfigured.
double Simulation::currentTime | ( | ) | const |
Definition at line 115 of file Simulation.cpp.
References project_data.
double Simulation::endTime | ( | ) | const |
Definition at line 121 of file Simulation.cpp.
References project_data.
bool Simulation::executeSimulation | ( | ) |
Definition at line 147 of file Simulation.cpp.
References INFO(), and project_data.
bool Simulation::executeTimeStep | ( | ) |
Definition at line 127 of file Simulation.cpp.
References project_data.
MeshLib::Mesh & Simulation::getMesh | ( | std::string const & | name | ) |
Definition at line 142 of file Simulation.cpp.
References project_data.
std::optional< ApplicationsLib::TestDefinition > Simulation::getTestDefinition | ( | ) | const |
Definition at line 169 of file Simulation.cpp.
References test_definition.
void Simulation::initializeDataStructures | ( | std::string const & | project, |
std::vector< std::string > const & | xml_patch_file_names, | ||
bool | reference_path_is_set, | ||
std::string const & | reference_path, | ||
bool | nonfatal, | ||
std::string const & | outdir, | ||
std::string const & | mesh_dir, | ||
std::string const & | script_dir, | ||
bool | write_prj ) |
Definition at line 47 of file Simulation.cpp.
References BaseLib::ConfigTree::assertNoSwallowedErrors(), BaseLib::extractPath(), BaseLib::getProjectDirectory(), INFO(), InSituLib::Initialize(), isInsituConfigured, BaseLib::makeConfigTree(), OGS_FATAL, BaseLib::prepareProjectFile(), project_data, BaseLib::removeFiles(), and test_definition.
void Simulation::outputLastTimeStep | ( | ) | const |
Definition at line 163 of file Simulation.cpp.
References project_data.
|
private |
Definition at line 56 of file Simulation.h.
Referenced by Simulation(), and ~Simulation().
|
private |
Definition at line 61 of file Simulation.h.
Referenced by ~Simulation(), and initializeDataStructures().
|
private |
Definition at line 54 of file Simulation.h.
|
private |
Definition at line 58 of file Simulation.h.
Referenced by currentTime(), endTime(), executeSimulation(), executeTimeStep(), getMesh(), initializeDataStructures(), and outputLastTimeStep().
|
private |
Definition at line 59 of file Simulation.h.
Referenced by getTestDefinition(), and initializeDataStructures().