21 #include <pybind11/eval.h>
30 #include "InfoLib/CMakeInfo.h"
50 #ifdef OGS_BUILD_PROCESS_COMPONENTTRANSPORT
54 #ifdef OGS_BUILD_PROCESS_STEADYSTATEDIFFUSION
57 #ifdef OGS_BUILD_PROCESS_HT
60 #ifdef OGS_BUILD_PROCESS_HEATCONDUCTION
63 #ifdef OGS_BUILD_PROCESS_HEATTRANSPORTBHE
66 #ifdef OGS_BUILD_PROCESS_HYDROMECHANICS
69 #ifdef OGS_BUILD_PROCESS_LIE
73 #ifdef OGS_BUILD_PROCESS_LIQUIDFLOW
77 #ifdef OGS_BUILD_PROCESS_THERMORICHARDSMECHANICS
81 #ifdef OGS_BUILD_PROCESS_PHASEFIELD
84 #ifdef OGS_BUILD_PROCESS_RICHARDSCOMPONENTTRANSPORT
87 #ifdef OGS_BUILD_PROCESS_RICHARDSFLOW
90 #ifdef OGS_BUILD_PROCESS_RICHARDSMECHANICS
93 #ifdef OGS_BUILD_PROCESS_SMALLDEFORMATION
96 #ifdef OGS_BUILD_PROCESS_SMALLDEFORMATIONNONLOCAL
99 #ifdef OGS_BUILD_PROCESS_TES
102 #ifdef OGS_BUILD_PROCESS_THERMALTWOPHASEFLOWWITHPP
105 #ifdef OGS_BUILD_PROCESS_THERMOHYDROMECHANICS
108 #ifdef OGS_BUILD_PROCESS_THERMOMECHANICALPHASEFIELD
111 #ifdef OGS_BUILD_PROCESS_THERMOMECHANICS
114 #ifdef OGS_BUILD_PROCESS_TWOPHASEFLOWWITHPP
117 #ifdef OGS_BUILD_PROCESS_TWOPHASEFLOWWITHPRHO
125 DBUG(
"Reading geometry file '{:s}'.", fname);
136 DBUG(
"Reading mesh file '{:s}'.", mesh_file);
138 auto mesh = std::unique_ptr<MeshLib::Mesh>(
142 OGS_FATAL(
"Could not read mesh from '{:s}' file. No mesh added.",
146 #ifdef DOXYGEN_DOCU_ONLY
151 if (
auto const axially_symmetric =
154 "axially_symmetric"))
156 mesh->setAxiallySymmetric(*axially_symmetric);
165 std::vector<std::unique_ptr<MeshLib::Mesh>> meshes;
171 DBUG(
"Reading multiple meshes.");
173 auto const configs = optional_meshes->getConfigParameterList(
"mesh");
175 configs.begin(), configs.end(), std::back_inserter(meshes),
177 return readSingleMesh(mesh_config, project_directory);
183 "Consider switching from mesh and geometry input to multiple "
185 "https://www.opengeosys.org/docs/tools/model-preparation/"
186 "constructmeshesfromgeometry/ tool for conversion.");
198 std::unique_ptr<MeshGeoToolsLib::SearchLength> search_length_algorithm =
200 bool const multiple_nodes_allowed =
false;
201 auto additional_meshes =
203 geoObjects, *meshes[0], std::move(search_length_algorithm),
204 multiple_nodes_allowed);
206 std::move(begin(additional_meshes), end(additional_meshes),
207 std::back_inserter(meshes));
213 std::optional<BaseLib::ConfigTree>
const& config,
214 std::vector<std::unique_ptr<ParameterLib::ParameterBase>>
const& parameters)
221 DBUG(
"Reading coordinate system configuration.");
226 auto const& basis_vector_0 = ParameterLib::findParameter<double>(
229 "basis_vector_0", parameters, 0 );
230 int const dimension = basis_vector_0.getNumberOfGlobalComponents();
233 if (dimension != 2 && dimension != 3)
236 "Basis vector parameter '{:s}' must have two or three components, "
238 basis_vector_0.name, dimension);
245 auto const& basis_vector_1 = ParameterLib::findParameter<double>(
248 "basis_vector_1", parameters, dimension);
261 auto const& basis_vector_2 = ParameterLib::findParameter<double>(
264 "basis_vector_2", parameters, dimension);
274 std::string
const& output_directory)
277 if (
auto const python_script =
281 #ifdef OGS_USE_PYTHON
282 namespace py = pybind11;
285 auto py_path = py::module::import(
"sys").attr(
"path");
288 py_path.attr(
"append")(
289 CMakeInfoLib::CMakeInfo::python_virtualenv_sitepackages);
291 auto const script_path =
295 py::object scope = py::module::import(
"__main__").attr(
"__dict__");
297 auto globals = py::dict(scope);
299 py::eval_file(script_path, scope);
301 OGS_FATAL(
"OpenGeoSys has not been built with Python support.");
308 auto parameter_names_for_transformation =
319 if (std::find(begin(parameter_names_for_transformation),
320 end(parameter_names_for_transformation),
322 end(parameter_names_for_transformation))
327 "The parameter '{:s}' is using the local coordinate system "
328 "but no local coordinate system was provided.",
351 std::move(chemical_solver_interface));
367 DBUG(
"Parse process variables:");
369 std::set<std::string> names;
377 auto const mesh_name =
379 var_config.getConfigParameter<std::string>(
"mesh",
384 [&mesh_name](
auto const& m) {
return m->getName() == mesh_name; },
385 "Expected to find a mesh named " + mesh_name +
".");
389 if (!names.insert(pv.getName()).second)
391 OGS_FATAL(
"A process variable with name `{:s}' already exists.",
404 std::set<std::string> names;
405 std::vector<std::string> parameter_names_for_transformation;
407 DBUG(
"Reading parameters:");
408 for (
auto parameter_config :
414 if (!names.insert(
p->name).second)
416 OGS_FATAL(
"A parameter with name `{:s}' already exists.",
p->name);
419 auto const use_local_coordinate_system =
421 parameter_config.getConfigParameterOptional<
bool>(
422 "use_local_coordinate_system");
423 if (!!use_local_coordinate_system && *use_local_coordinate_system)
425 parameter_names_for_transformation.push_back(
p->name);
435 return parameter_names_for_transformation;
439 std::optional<BaseLib::ConfigTree>
const& media_config)
446 DBUG(
"Reading media:");
450 ERR(
"A mesh is required to define medium materials.");
454 for (
auto const& medium_config :
456 media_config->getConfigSubtreeList(
"medium"))
458 auto material_id_string =
460 medium_config.getConfigAttribute<std::string>(
"id",
"0");
461 material_id_string.erase(
462 remove_if(begin(material_id_string), end(material_id_string),
463 [](
unsigned char const c) {
return std::isspace(c); }),
464 end(material_id_string));
465 auto const material_ids_strings =
469 std::vector<int> material_ids;
471 begin(material_ids_strings), end(material_ids_strings),
472 std::back_inserter(material_ids), [](std::string
const& m_id) {
473 if (
auto const it = std::find_if_not(
474 begin(m_id), end(m_id),
475 [](
unsigned char const c) {
return std::isdigit(c); });
479 "Could not parse material ID's from '{:s}'. Please "
480 "separate multiple material ID's by comma only. "
481 "Invalid character: '%c'",
484 return std::stoi(m_id);
487 for (
auto const&
id : material_ids)
492 "Multiple media were specified for the same material id "
494 "Keep in mind, that if no material id is specified, it is "
495 "assumed to be 0 by default.",
500 (
id == material_ids[0])
507 :
_media[material_ids[0]];
513 OGS_FATAL(
"No entity is found inside <media>.");
517 std::unique_ptr<ChemistryLib::ChemicalSolverInterface>
519 std::optional<BaseLib::ConfigTree>
const& config,
520 std::string
const& output_directory)
527 std::unique_ptr<ChemistryLib::ChemicalSolverInterface>
528 chemical_solver_interface;
529 #ifdef OGS_BUILD_PROCESS_COMPONENTTRANSPORT
531 "Ready for initializing interface to a chemical solver for water "
532 "chemistry calculation.");
534 auto const chemical_solver =
536 config->getConfigAttribute<std::string>(
"chemical_solver");
538 if (boost::iequals(chemical_solver,
"Phreeqc"))
541 "Configuring phreeqc interface for water chemistry "
542 "calculation using file-based approach.");
548 else if (boost::iequals(chemical_solver,
"PhreeqcKernel"))
551 "The chemical solver option of PhreeqcKernel is not accessible "
552 "for the time being. Please set 'Phreeqc'' as the chemical "
553 "solver for reactive transport modeling.");
558 "Unknown chemical solver. Please specify either Phreeqc or "
559 "PhreeqcKernel as the solver for water chemistry calculation "
563 (void)output_directory;
566 "Found the type of the process to be solved is not component transport "
567 "process. Please specify the process type to ComponentTransport. At "
568 "the present, water chemistry calculation is only available for "
569 "component transport process.");
571 return chemical_solver_interface;
577 std::string
const& output_directory,
578 [[maybe_unused]] std::unique_ptr<ChemistryLib::ChemicalSolverInterface>&&
579 chemical_solver_interface)
582 (void)output_directory;
584 DBUG(
"Reading processes:");
590 process_config.peekConfigParameter<std::string>(
"type");
594 process_config.getConfigParameter<std::string>(
"name");
596 auto const integration_order =
598 process_config.getConfigParameter<
int>(
"integration_order");
600 std::unique_ptr<ProcessLib::Process> process;
604 process_config.getConfigSubtreeOptional(
"jacobian_assembler"));
606 #ifdef OGS_BUILD_PROCESS_STEADYSTATEDIFFUSION
607 if (type ==
"STEADY_STATE_DIFFUSION")
622 #ifdef OGS_BUILD_PROCESS_LIQUIDFLOW
623 if (type ==
"LIQUID_FLOW")
632 #ifdef OGS_BUILD_PROCESS_TES
642 #ifdef OGS_BUILD_PROCESS_HEATCONDUCTION
643 if (type ==
"HEAT_CONDUCTION")
652 #ifdef OGS_BUILD_PROCESS_HEATTRANSPORTBHE
653 if (type ==
"HEAT_TRANSPORT_BHE")
658 "HEAT_TRANSPORT_BHE can only work with a 3-dimensional "
670 #ifdef OGS_BUILD_PROCESS_HYDROMECHANICS
671 if (type ==
"HYDRO_MECHANICS")
674 switch (process_config.getConfigParameter<
int>(
"dimension"))
680 std::move(jacobian_assembler),
689 std::move(jacobian_assembler),
696 "HYDRO_MECHANICS process does not support given "
702 #ifdef OGS_BUILD_PROCESS_LIE
703 if (type ==
"HYDRO_MECHANICS_WITH_LIE")
706 switch (process_config.getConfigParameter<
int>(
"dimension"))
726 "HYDRO_MECHANICS_WITH_LIE process does not support "
732 #ifdef OGS_BUILD_PROCESS_HT
742 #ifdef OGS_BUILD_PROCESS_COMPONENTTRANSPORT
743 if (type ==
"ComponentTransport")
750 std::move(chemical_solver_interface));
754 #ifdef OGS_BUILD_PROCESS_PHASEFIELD
755 if (type ==
"PHASE_FIELD")
779 #ifdef OGS_BUILD_PROCESS_RICHARDSCOMPONENTTRANSPORT
780 if (type ==
"RichardsComponentTransport")
790 #ifdef OGS_BUILD_PROCESS_SMALLDEFORMATION
791 if (type ==
"SMALL_DEFORMATION")
813 "SMALL_DEFORMATION process does not support "
819 #ifdef OGS_BUILD_PROCESS_SMALLDEFORMATIONNONLOCAL
820 if (type ==
"SMALL_DEFORMATION_NONLOCAL")
842 "SMALL_DEFORMATION_NONLOCAL process does not support "
843 "given dimension {:d}",
849 #ifdef OGS_BUILD_PROCESS_LIE
850 if (type ==
"SMALL_DEFORMATION_WITH_LIE")
853 switch (process_config.getConfigParameter<
int>(
"dimension"))
873 "SMALL_DEFORMATION_WITH_LIE process does not support "
879 #ifdef OGS_BUILD_PROCESS_THERMOHYDROMECHANICS
880 if (type ==
"THERMO_HYDRO_MECHANICS")
883 switch (process_config.getConfigParameter<
int>(
"dimension"))
903 "THERMO_HYDRO_MECHANICS process does not support given "
909 #ifdef OGS_BUILD_PROCESS_THERMOMECHANICALPHASEFIELD
910 if (type ==
"THERMO_MECHANICAL_PHASE_FIELD")
934 #ifdef OGS_BUILD_PROCESS_THERMOMECHANICS
935 if (type ==
"THERMO_MECHANICS")
959 #ifdef OGS_BUILD_PROCESS_RICHARDSFLOW
960 if (type ==
"RICHARDS_FLOW")
969 #ifdef OGS_BUILD_PROCESS_RICHARDSMECHANICS
970 if (type ==
"RICHARDS_MECHANICS")
973 switch (process_config.getConfigParameter<
int>(
"dimension"))
996 #ifdef OGS_BUILD_PROCESS_THERMORICHARDSMECHANICS
997 if (type ==
"THERMO_RICHARDS_MECHANICS")
1022 #ifdef OGS_BUILD_PROCESS_TWOPHASEFLOWWITHPP
1023 if (type ==
"TWOPHASE_FLOW_PP")
1033 #ifdef OGS_BUILD_PROCESS_TWOPHASEFLOWWITHPRHO
1034 if (type ==
"TWOPHASE_FLOW_PRHO")
1044 #ifdef OGS_BUILD_PROCESS_THERMALTWOPHASEFLOWWITHPP
1045 if (type ==
"THERMAL_TWOPHASE_WITH_PP")
1056 OGS_FATAL(
"Unknown process type: {:s}", type);
1061 [&
name](std::unique_ptr<ProcessLib::Process>
const&
p) {
1062 return p->name ==
name;
1072 std::string
const& output_directory)
1074 DBUG(
"Reading time loop configuration.");
1081 OGS_FATAL(
"Initialization of time loop failed.");
1087 DBUG(
"Reading linear solver configuration.");
1093 auto const name = conf.getConfigParameter<std::string>(
"name");
1097 std::make_unique<GlobalLinearSolver>(
"", &conf),
1098 "The linear solver name is not unique");
1104 DBUG(
"Reading linear solver configuration.");
1109 auto const ls_name =
1111 conf.getConfigParameter<std::string>(
"linear_solver");
1114 "A linear solver with the given name does not exist.");
1117 auto const name = conf.getConfigParameter<std::string>(
"name");
1122 "The nonlinear solver name is not unique");
1133 DBUG(
"Reading curves configuration.");
1136 for (
auto conf : config->getConfigSubtreeList(
"curve"))
1139 auto const name = conf.getConfigParameter<std::string>(
"name");
1145 "The curve name is not unique.");
Definition of the BoostXmlGmlInterface class.
Functionality to build different search length algorithm objects from given config.
Definition of the GEOObjects class.
void INFO(char const *fmt, Args const &... args)
void ERR(char const *fmt, Args const &... args)
void DBUG(char const *fmt, Args const &... args)
void WARN(char const *fmt, Args const &... args)
Definition of the Mesh class.
Base class for different search length strategies.
std::optional< ConfigTree > getConfigSubtreeOptional(std::string const &root) const
std::optional< T > getConfigParameterOptional(std::string const ¶m) const
T getConfigParameter(std::string const ¶m) const
Range< SubtreeIterator > getConfigSubtreeList(std::string const &root) const
ConfigTree getConfigSubtree(std::string const &root) const
std::optional< T > getConfigAttributeOptional(std::string const &attr) const
Container class for geometric objects.
bool readFile(const std::string &fname) override
Reads an xml-file containing OGS geometry.
std::map< std::string, std::unique_ptr< GlobalLinearSolver > > _linear_solvers
std::optional< ParameterLib::CoordinateSystem > _local_coordinate_system
std::map< std::string, std::unique_ptr< NumLib::NonlinearSolverBase > > _nonlinear_solvers
void parseProcesses(BaseLib::ConfigTree const &processes_config, std::string const &project_directory, std::string const &output_directory, std::unique_ptr< ChemistryLib::ChemicalSolverInterface > &&chemical_solver_interface)
std::unique_ptr< ChemistryLib::ChemicalSolverInterface > parseChemicalSolverInterface(std::optional< BaseLib::ConfigTree > const &config, const std::string &output_directory)
void parseMedia(std::optional< BaseLib::ConfigTree > const &media_config)
Parses media configuration and saves them in an object.
void parseLinearSolvers(BaseLib::ConfigTree const &config)
std::vector< std::unique_ptr< ParameterLib::ParameterBase > > _parameters
Buffer for each parameter config passed to the process.
std::vector< std::unique_ptr< ProcessLib::Process > > _processes
void parseNonlinearSolvers(BaseLib::ConfigTree const &config)
std::vector< ProcessLib::ProcessVariable > _process_variables
void parseProcessVariables(BaseLib::ConfigTree const &process_variables_config)
std::map< std::string, std::unique_ptr< MathLib::PiecewiseLinearInterpolation > > _curves
void parseCurves(std::optional< BaseLib::ConfigTree > const &config)
std::vector< std::unique_ptr< MeshLib::Mesh > > _mesh_vec
void parseTimeLoop(BaseLib::ConfigTree const &config, const std::string &output_directory)
Parses the time loop configuration.
std::map< int, std::shared_ptr< MaterialPropertyLib::Medium > > _media
std::vector< std::string > parseParameters(BaseLib::ConfigTree const ¶meters_config)
std::unique_ptr< ProcessLib::TimeLoop > _time_loop
The time loop used to solve this project's processes.
std::unique_ptr< GeoLib::GEOObjects > readGeometry(std::string const &filename)
std::pair< std::unique_ptr< NonlinearSolverBase >, NonlinearSolverTag > createNonlinearSolver(GlobalLinearSolver &linear_solver, BaseLib::ConfigTree const &config)
std::vector< std::unique_ptr< MeshLib::Mesh > > readMeshes(std::vector< std::string > const &filenames)
Map::mapped_type & getOrError(Map &map, Key const &key, std::string const &error_message)
void insertIfKeyUniqueElseError(Map &map, Key const &key, Value &&value, std::string const &error_message)
bool containsIf(Container const &container, Predicate &&predicate)
std::string copyPathToFileName(const std::string &file_name, const std::string &source)
std::vector< std::string > splitString(std::string const &str)
std::iterator_traits< InputIt >::reference findElementOrError(InputIt begin, InputIt end, Predicate predicate, std::string const &error="")
std::unique_ptr< ChemicalSolverInterface > createChemicalSolverInterface(std::vector< std::unique_ptr< MeshLib::Mesh >> const &meshes, BaseLib::ConfigTree const &config, std::string const &output_directory)
std::unique_ptr< Medium > createMedium(int const geometry_dimension, BaseLib::ConfigTree const &config, std::vector< std::unique_ptr< ParameterLib::ParameterBase >> const ¶meters, ParameterLib::CoordinateSystem const *const local_coordinate_system, std::map< std::string, std::unique_ptr< MathLib::PiecewiseLinearInterpolation >> const &curves)
std::unique_ptr< CurveType > createPiecewiseLinearCurve(BaseLib::ConfigTree const &config)
MeshLib::Mesh * readMeshFromFile(const std::string &file_name)
std::unique_ptr< ParameterBase > createParameter(BaseLib::ConfigTree const &config, std::vector< std::unique_ptr< MeshLib::Mesh >> const &meshes, std::map< std::string, std::unique_ptr< MathLib::PiecewiseLinearInterpolation >> const &curves)
std::unique_ptr< Process > createComponentTransportProcess(std::string name, MeshLib::Mesh &mesh, std::unique_ptr< ProcessLib::AbstractJacobianAssembler > &&jacobian_assembler, std::vector< ProcessVariable > const &variables, std::vector< std::unique_ptr< ParameterLib::ParameterBase >> const ¶meters, unsigned const integration_order, BaseLib::ConfigTree const &config, std::vector< std::unique_ptr< MeshLib::Mesh >> const &meshes, std::map< int, std::shared_ptr< MaterialPropertyLib::Medium >> const &media, std::unique_ptr< ChemistryLib::ChemicalSolverInterface > &&chemical_solver_interface)
std::unique_ptr< Process > createHTProcess(std::string name, MeshLib::Mesh &mesh, std::unique_ptr< ProcessLib::AbstractJacobianAssembler > &&jacobian_assembler, std::vector< ProcessVariable > const &variables, std::vector< std::unique_ptr< ParameterLib::ParameterBase >> const ¶meters, unsigned const integration_order, BaseLib::ConfigTree const &config, std::vector< std::unique_ptr< MeshLib::Mesh >> const &meshes, std::map< int, std::shared_ptr< MaterialPropertyLib::Medium >> const &media)
std::unique_ptr< Process > createHeatConductionProcess(std::string name, MeshLib::Mesh &mesh, std::unique_ptr< ProcessLib::AbstractJacobianAssembler > &&jacobian_assembler, std::vector< ProcessVariable > const &variables, std::vector< std::unique_ptr< ParameterLib::ParameterBase >> const ¶meters, unsigned const integration_order, BaseLib::ConfigTree const &config, std::map< int, std::shared_ptr< MaterialPropertyLib::Medium >> const &media)
std::unique_ptr< Process > createHeatTransportBHEProcess(std::string name, MeshLib::Mesh &mesh, std::unique_ptr< ProcessLib::AbstractJacobianAssembler > &&jacobian_assembler, std::vector< ProcessVariable > const &variables, std::vector< std::unique_ptr< ParameterLib::ParameterBase >> const ¶meters, unsigned const integration_order, BaseLib::ConfigTree const &config, std::map< std::string, std::unique_ptr< MathLib::PiecewiseLinearInterpolation >> const &curves, std::map< int, std::shared_ptr< MaterialPropertyLib::Medium >> const &media)
std::unique_ptr< Process > createHydroMechanicsProcess(std::string name, MeshLib::Mesh &mesh, std::unique_ptr< ProcessLib::AbstractJacobianAssembler > &&jacobian_assembler, std::vector< ProcessVariable > const &variables, std::vector< std::unique_ptr< ParameterLib::ParameterBase >> const ¶meters, std::optional< ParameterLib::CoordinateSystem > const &local_coordinate_system, unsigned const integration_order, BaseLib::ConfigTree const &config, std::map< int, std::shared_ptr< MaterialPropertyLib::Medium >> const &media)
template std::unique_ptr< Process > createHydroMechanicsProcess< 2 >(std::string name, MeshLib::Mesh &mesh, std::unique_ptr< ProcessLib::AbstractJacobianAssembler > &&jacobian_assembler, std::vector< ProcessVariable > const &variables, std::vector< std::unique_ptr< ParameterLib::ParameterBase >> const ¶meters, std::optional< ParameterLib::CoordinateSystem > const &local_coordinate_system, unsigned const integration_order, BaseLib::ConfigTree const &config)
template std::unique_ptr< Process > createHydroMechanicsProcess< 3 >(std::string name, MeshLib::Mesh &mesh, std::unique_ptr< ProcessLib::AbstractJacobianAssembler > &&jacobian_assembler, std::vector< ProcessVariable > const &variables, std::vector< std::unique_ptr< ParameterLib::ParameterBase >> const ¶meters, std::optional< ParameterLib::CoordinateSystem > const &local_coordinate_system, unsigned const integration_order, BaseLib::ConfigTree const &config)
std::unique_ptr< Process > createLiquidFlowProcess(std::string name, MeshLib::Mesh &mesh, std::unique_ptr< ProcessLib::AbstractJacobianAssembler > &&jacobian_assembler, std::vector< ProcessVariable > const &variables, std::vector< std::unique_ptr< ParameterLib::ParameterBase >> const ¶meters, unsigned const integration_order, BaseLib::ConfigTree const &config, std::vector< std::unique_ptr< MeshLib::Mesh >> const &meshes, std::map< int, std::shared_ptr< MaterialPropertyLib::Medium >> const &media)
template std::unique_ptr< Process > createPhaseFieldProcess< 2 >(std::string name, MeshLib::Mesh &mesh, std::unique_ptr< ProcessLib::AbstractJacobianAssembler > &&jacobian_assembler, std::vector< ProcessVariable > const &variables, std::vector< std::unique_ptr< ParameterLib::ParameterBase >> const ¶meters, std::optional< ParameterLib::CoordinateSystem > const &local_coordinate_system, unsigned const integration_order, BaseLib::ConfigTree const &config)
template std::unique_ptr< Process > createPhaseFieldProcess< 3 >(std::string name, MeshLib::Mesh &mesh, std::unique_ptr< ProcessLib::AbstractJacobianAssembler > &&jacobian_assembler, std::vector< ProcessVariable > const &variables, std::vector< std::unique_ptr< ParameterLib::ParameterBase >> const ¶meters, std::optional< ParameterLib::CoordinateSystem > const &local_coordinate_system, unsigned const integration_order, BaseLib::ConfigTree const &config)
std::unique_ptr< Process > createRichardsComponentTransportProcess(std::string name, MeshLib::Mesh &mesh, std::unique_ptr< ProcessLib::AbstractJacobianAssembler > &&jacobian_assembler, std::vector< ProcessVariable > const &variables, std::vector< std::unique_ptr< ParameterLib::ParameterBase >> const ¶meters, unsigned const integration_order, BaseLib::ConfigTree const &config)
std::unique_ptr< Process > createRichardsFlowProcess(std::string name, MeshLib::Mesh &mesh, std::unique_ptr< ProcessLib::AbstractJacobianAssembler > &&jacobian_assembler, std::vector< ProcessVariable > const &variables, std::vector< std::unique_ptr< ParameterLib::ParameterBase >> const ¶meters, unsigned const integration_order, BaseLib::ConfigTree const &config, std::map< std::string, std::unique_ptr< MathLib::PiecewiseLinearInterpolation >> const &, std::map< int, std::shared_ptr< MaterialPropertyLib::Medium >> const &media)
template std::unique_ptr< Process > createRichardsMechanicsProcess< 2 >(std::string name, MeshLib::Mesh &mesh, std::unique_ptr< ProcessLib::AbstractJacobianAssembler > &&jacobian_assembler, std::vector< ProcessVariable > const &variables, std::vector< std::unique_ptr< ParameterLib::ParameterBase >> const ¶meters, std::optional< ParameterLib::CoordinateSystem > const &local_coordinate_system, unsigned const integration_order, BaseLib::ConfigTree const &config, std::map< int, std::shared_ptr< MaterialPropertyLib::Medium >> const &media)
template std::unique_ptr< Process > createRichardsMechanicsProcess< 3 >(std::string name, MeshLib::Mesh &mesh, std::unique_ptr< ProcessLib::AbstractJacobianAssembler > &&jacobian_assembler, std::vector< ProcessVariable > const &variables, std::vector< std::unique_ptr< ParameterLib::ParameterBase >> const ¶meters, std::optional< ParameterLib::CoordinateSystem > const &local_coordinate_system, unsigned const integration_order, BaseLib::ConfigTree const &config, std::map< int, std::shared_ptr< MaterialPropertyLib::Medium >> const &media)
std::unique_ptr< Process > createSteadyStateDiffusion(std::string name, MeshLib::Mesh &mesh, std::unique_ptr< ProcessLib::AbstractJacobianAssembler > &&jacobian_assembler, std::vector< ProcessVariable > const &variables, std::vector< std::unique_ptr< ParameterLib::ParameterBase >> const ¶meters, unsigned const integration_order, BaseLib::ConfigTree const &config, std::vector< std::unique_ptr< MeshLib::Mesh >> const &meshes, std::map< int, std::shared_ptr< MaterialPropertyLib::Medium >> const &media)
std::unique_ptr< Process > createTESProcess(std::string name, MeshLib::Mesh &mesh, std::unique_ptr< ProcessLib::AbstractJacobianAssembler > &&jacobian_assembler, std::vector< ProcessVariable > const &variables, std::vector< std::unique_ptr< ParameterLib::ParameterBase >> const ¶meters, unsigned const integration_order, BaseLib::ConfigTree const &config)
std::unique_ptr< Process > createThermalTwoPhaseFlowWithPPProcess(std::string name, MeshLib::Mesh &mesh, std::unique_ptr< ProcessLib::AbstractJacobianAssembler > &&jacobian_assembler, std::vector< ProcessVariable > const &variables, std::vector< std::unique_ptr< ParameterLib::ParameterBase >> const ¶meters, unsigned const integration_order, BaseLib::ConfigTree const &config, std::map< std::string, std::unique_ptr< MathLib::PiecewiseLinearInterpolation >> const &curves)
template std::unique_ptr< Process > createThermoHydroMechanicsProcess< 2 >(std::string name, MeshLib::Mesh &mesh, std::unique_ptr< ProcessLib::AbstractJacobianAssembler > &&jacobian_assembler, std::vector< ProcessVariable > const &variables, std::vector< std::unique_ptr< ParameterLib::ParameterBase >> const ¶meters, std::optional< ParameterLib::CoordinateSystem > const &local_coordinate_system, unsigned const integration_order, BaseLib::ConfigTree const &config, std::map< int, std::shared_ptr< MaterialPropertyLib::Medium >> const &media)
template std::unique_ptr< Process > createThermoHydroMechanicsProcess< 3 >(std::string name, MeshLib::Mesh &mesh, std::unique_ptr< ProcessLib::AbstractJacobianAssembler > &&jacobian_assembler, std::vector< ProcessVariable > const &variables, std::vector< std::unique_ptr< ParameterLib::ParameterBase >> const ¶meters, std::optional< ParameterLib::CoordinateSystem > const &local_coordinate_system, unsigned const integration_order, BaseLib::ConfigTree const &config, std::map< int, std::shared_ptr< MaterialPropertyLib::Medium >> const &media)
template std::unique_ptr< Process > createThermoMechanicalPhaseFieldProcess< 2 >(std::string name, MeshLib::Mesh &mesh, std::unique_ptr< ProcessLib::AbstractJacobianAssembler > &&jacobian_assembler, std::vector< ProcessVariable > const &variables, std::vector< std::unique_ptr< ParameterLib::ParameterBase >> const ¶meters, std::optional< ParameterLib::CoordinateSystem > const &local_coordinate_system, unsigned const integration_order, BaseLib::ConfigTree const &config)
template std::unique_ptr< Process > createThermoMechanicalPhaseFieldProcess< 3 >(std::string name, MeshLib::Mesh &mesh, std::unique_ptr< ProcessLib::AbstractJacobianAssembler > &&jacobian_assembler, std::vector< ProcessVariable > const &variables, std::vector< std::unique_ptr< ParameterLib::ParameterBase >> const ¶meters, std::optional< ParameterLib::CoordinateSystem > const &local_coordinate_system, unsigned const integration_order, BaseLib::ConfigTree const &config)
template std::unique_ptr< Process > createThermoMechanicsProcess< 3 >(std::string name, MeshLib::Mesh &mesh, std::unique_ptr< ProcessLib::AbstractJacobianAssembler > &&jacobian_assembler, std::vector< ProcessVariable > const &variables, std::vector< std::unique_ptr< ParameterLib::ParameterBase >> const ¶meters, std::optional< ParameterLib::CoordinateSystem > const &local_coordinate_system, unsigned const integration_order, BaseLib::ConfigTree const &config, std::map< int, std::shared_ptr< MaterialPropertyLib::Medium >> const &media)
template std::unique_ptr< Process > createThermoMechanicsProcess< 2 >(std::string name, MeshLib::Mesh &mesh, std::unique_ptr< ProcessLib::AbstractJacobianAssembler > &&jacobian_assembler, std::vector< ProcessVariable > const &variables, std::vector< std::unique_ptr< ParameterLib::ParameterBase >> const ¶meters, std::optional< ParameterLib::CoordinateSystem > const &local_coordinate_system, unsigned const integration_order, BaseLib::ConfigTree const &config, std::map< int, std::shared_ptr< MaterialPropertyLib::Medium >> const &media)
template std::unique_ptr< Process > createThermoRichardsMechanicsProcess< 3 >(std::string name, MeshLib::Mesh &mesh, std::unique_ptr< ProcessLib::AbstractJacobianAssembler > &&jacobian_assembler, std::vector< ProcessVariable > const &variables, std::vector< std::unique_ptr< ParameterLib::ParameterBase >> const ¶meters, std::optional< ParameterLib::CoordinateSystem > const &local_coordinate_system, unsigned const integration_order, BaseLib::ConfigTree const &config, std::map< int, std::shared_ptr< MaterialPropertyLib::Medium >> const &media)
template std::unique_ptr< Process > createThermoRichardsMechanicsProcess< 2 >(std::string name, MeshLib::Mesh &mesh, std::unique_ptr< ProcessLib::AbstractJacobianAssembler > &&jacobian_assembler, std::vector< ProcessVariable > const &variables, std::vector< std::unique_ptr< ParameterLib::ParameterBase >> const ¶meters, std::optional< ParameterLib::CoordinateSystem > const &local_coordinate_system, unsigned const integration_order, BaseLib::ConfigTree const &config, std::map< int, std::shared_ptr< MaterialPropertyLib::Medium >> const &media)
std::unique_ptr< Process > createTwoPhaseFlowWithPPProcess(std::string name, MeshLib::Mesh &mesh, std::unique_ptr< ProcessLib::AbstractJacobianAssembler > &&jacobian_assembler, std::vector< ProcessVariable > const &variables, std::vector< std::unique_ptr< ParameterLib::ParameterBase >> const ¶meters, unsigned const integration_order, BaseLib::ConfigTree const &config, std::map< std::string, std::unique_ptr< MathLib::PiecewiseLinearInterpolation >> const &curves, std::map< int, std::shared_ptr< MaterialPropertyLib::Medium >> const &media)
std::unique_ptr< Process > createTwoPhaseFlowWithPrhoProcess(std::string name, MeshLib::Mesh &mesh, std::unique_ptr< ProcessLib::AbstractJacobianAssembler > &&jacobian_assembler, std::vector< ProcessVariable > const &variables, std::vector< std::unique_ptr< ParameterLib::ParameterBase >> const ¶meters, unsigned const integration_order, BaseLib::ConfigTree const &config, std::map< std::string, std::unique_ptr< MathLib::PiecewiseLinearInterpolation >> const &curves)
std::unique_ptr< TimeLoop > createTimeLoop(BaseLib::ConfigTree const &config, std::string const &output_directory, const std::vector< std::unique_ptr< Process >> &processes, const std::map< std::string, std::unique_ptr< NumLib::NonlinearSolverBase >> &nonlinear_solvers, std::vector< std::unique_ptr< MeshLib::Mesh >> const &meshes)
Builds a TimeLoop from the given configuration.
std::unique_ptr< AbstractJacobianAssembler > createJacobianAssembler(std::optional< BaseLib::ConfigTree > const &config)
std::unique_ptr< MeshLib::Mesh > readSingleMesh(BaseLib::ConfigTree const &mesh_config_parameter, std::string const &project_directory)
std::optional< ParameterLib::CoordinateSystem > parseLocalCoordinateSystem(std::optional< BaseLib::ConfigTree > const &config, std::vector< std::unique_ptr< ParameterLib::ParameterBase >> const ¶meters)
unsigned getDimension(MeshLib::MeshElemType eleType)
Definition of readMeshFromFile function.
Single, constant value parameter.
static const std::string zero_parameter_name