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
76 #ifdef OGS_BUILD_PROCESS_PHASEFIELD
79 #ifdef OGS_BUILD_PROCESS_RICHARDSCOMPONENTTRANSPORT
82 #ifdef OGS_BUILD_PROCESS_RICHARDSFLOW
85 #ifdef OGS_BUILD_PROCESS_RICHARDSMECHANICS
88 #ifdef OGS_BUILD_PROCESS_SMALLDEFORMATION
91 #ifdef OGS_BUILD_PROCESS_SMALLDEFORMATIONNONLOCAL
94 #ifdef OGS_BUILD_PROCESS_TES
97 #ifdef OGS_BUILD_PROCESS_THERMALTWOPHASEFLOWWITHPP
100 #ifdef OGS_BUILD_PROCESS_THERMOHYDROMECHANICS
103 #ifdef OGS_BUILD_PROCESS_THERMOMECHANICALPHASEFIELD
106 #ifdef OGS_BUILD_PROCESS_THERMOMECHANICS
109 #ifdef OGS_BUILD_PROCESS_TWOPHASEFLOWWITHPP
112 #ifdef OGS_BUILD_PROCESS_TWOPHASEFLOWWITHPRHO
120 DBUG(
"Reading geometry file '{:s}'.", fname);
131 DBUG(
"Reading mesh file '{:s}'.", mesh_file);
133 auto mesh = std::unique_ptr<MeshLib::Mesh>(
137 OGS_FATAL(
"Could not read mesh from '{:s}' file. No mesh added.",
141 #ifdef DOXYGEN_DOCU_ONLY
146 if (
auto const axially_symmetric =
149 "axially_symmetric"))
151 mesh->setAxiallySymmetric(*axially_symmetric);
160 std::vector<std::unique_ptr<MeshLib::Mesh>> meshes;
166 DBUG(
"Reading multiple meshes.");
168 auto const configs = optional_meshes->getConfigParameterList(
"mesh");
170 configs.begin(), configs.end(), std::back_inserter(meshes),
172 return readSingleMesh(mesh_config, project_directory);
178 "Consider switching from mesh and geometry input to multiple "
180 "https://www.opengeosys.org/docs/tools/model-preparation/"
181 "constructmeshesfromgeometry/ tool for conversion.");
193 std::unique_ptr<MeshGeoToolsLib::SearchLength> search_length_algorithm =
195 bool const multiple_nodes_allowed =
false;
196 auto additional_meshes =
198 geoObjects, *meshes[0], std::move(search_length_algorithm),
199 multiple_nodes_allowed);
201 std::move(begin(additional_meshes), end(additional_meshes),
202 std::back_inserter(meshes));
208 boost::optional<BaseLib::ConfigTree>
const& config,
209 std::vector<std::unique_ptr<ParameterLib::ParameterBase>>
const& parameters)
216 DBUG(
"Reading coordinate system configuration.");
221 auto const& basis_vector_0 = ParameterLib::findParameter<double>(
224 "basis_vector_0", parameters, 0 );
225 int const dimension = basis_vector_0.getNumberOfGlobalComponents();
228 if (dimension != 2 && dimension != 3)
231 "Basis vector parameter '{:s}' must have two or three components, "
233 basis_vector_0.name, dimension);
240 auto const& basis_vector_1 = ParameterLib::findParameter<double>(
243 "basis_vector_1", parameters, dimension);
256 auto const& basis_vector_2 = ParameterLib::findParameter<double>(
259 "basis_vector_2", parameters, dimension);
269 std::string
const& output_directory)
272 if (
auto const python_script =
276 #ifdef OGS_USE_PYTHON
277 namespace py = pybind11;
280 auto py_path = py::module::import(
"sys").attr(
"path");
283 py_path.attr(
"append")(
284 CMakeInfoLib::CMakeInfo::python_virtualenv_sitepackages);
286 auto const script_path =
290 py::object scope = py::module::import(
"__main__").attr(
"__dict__");
292 auto globals = py::dict(scope);
294 py::eval_file(script_path, scope);
296 OGS_FATAL(
"OpenGeoSys has not been built with Python support.");
303 auto parameter_names_for_transformation =
314 if (std::find(begin(parameter_names_for_transformation),
315 end(parameter_names_for_transformation),
317 end(parameter_names_for_transformation))
322 "The parameter '{:s}' is using the local coordinate system "
323 "but no local coordinate system was provided.",
346 chemical_solver_interface.get());
356 output_directory, std::move(chemical_solver_interface));
362 DBUG(
"Parse process variables:");
364 std::set<std::string> names;
372 auto const mesh_name =
374 var_config.getConfigParameter<std::string>(
"mesh",
379 [&mesh_name](
auto const& m) {
return m->getName() == mesh_name; },
380 "Expected to find a mesh named " + mesh_name +
".");
384 if (!names.insert(pv.getName()).second)
386 OGS_FATAL(
"A process variable with name `{:s}' already exists.",
399 std::set<std::string> names;
400 std::vector<std::string> parameter_names_for_transformation;
402 DBUG(
"Reading parameters:");
403 for (
auto parameter_config :
409 if (!names.insert(
p->name).second)
411 OGS_FATAL(
"A parameter with name `{:s}' already exists.",
p->name);
414 auto const use_local_coordinate_system =
416 parameter_config.getConfigParameterOptional<
bool>(
417 "use_local_coordinate_system");
418 if (!!use_local_coordinate_system && *use_local_coordinate_system)
420 parameter_names_for_transformation.push_back(
p->name);
430 return parameter_names_for_transformation;
434 boost::optional<BaseLib::ConfigTree>
const& media_config)
441 DBUG(
"Reading media:");
445 ERR(
"A mesh is required to define medium materials.");
449 for (
auto const& medium_config :
451 media_config->getConfigSubtreeList(
"medium"))
453 auto material_id_string =
455 medium_config.getConfigAttribute<std::string>(
"id",
"0");
456 material_id_string.erase(
457 remove_if(begin(material_id_string), end(material_id_string),
458 [](
unsigned char const c) {
return std::isspace(c); }),
459 end(material_id_string));
460 auto const material_ids_strings =
464 std::vector<int> material_ids;
466 begin(material_ids_strings), end(material_ids_strings),
467 std::back_inserter(material_ids), [](std::string
const& m_id) {
468 if (
auto const it = std::find_if_not(
469 begin(m_id), end(m_id),
470 [](
unsigned char const c) {
return std::isdigit(c); });
474 "Could not parse material ID's from '{:s}'. Please "
475 "separate multiple material ID's by comma only. "
476 "Invalid character: '%c'",
479 return std::stoi(m_id);
482 for (
auto const&
id : material_ids)
487 "Multiple media were specified for the same material id "
489 "Keep in mind, that if no material id is specified, it is "
490 "assumed to be 0 by default.",
495 (
id == material_ids[0])
502 :
_media[material_ids[0]];
508 OGS_FATAL(
"No entity is found inside <media>.");
512 std::unique_ptr<ChemistryLib::ChemicalSolverInterface>
514 boost::optional<BaseLib::ConfigTree>
const& config,
515 std::string
const& output_directory)
522 std::unique_ptr<ChemistryLib::ChemicalSolverInterface>
523 chemical_solver_interface;
524 #ifdef OGS_BUILD_PROCESS_COMPONENTTRANSPORT
526 "Ready for initializing interface to a chemical solver for water "
527 "chemistry calculation.");
529 auto const chemical_solver =
531 config->getConfigAttribute<std::string>(
"chemical_solver");
533 if (boost::iequals(chemical_solver,
"Phreeqc"))
536 "Configuring phreeqc interface for water chemistry "
537 "calculation using file-based approach.");
543 else if (boost::iequals(chemical_solver,
"PhreeqcKernel"))
546 "The chemical solver option of PhreeqcKernel is not accessible "
547 "for the time being. Please set 'Phreeqc'' as the chemical "
548 "solver for reactive transport modeling.");
553 "Unknown chemical solver. Please specify either Phreeqc or "
554 "PhreeqcKernel as the solver for water chemistry calculation "
558 (void)output_directory;
561 "Found the type of the process to be solved is not component transport "
562 "process. Please specify the process type to ComponentTransport. At "
563 "the present, water chemistry calculation is only available for "
564 "component transport process.");
566 return chemical_solver_interface;
572 std::string
const& output_directory,
574 chemical_solver_interface)
577 (void)output_directory;
579 DBUG(
"Reading processes:");
585 process_config.peekConfigParameter<std::string>(
"type");
589 process_config.getConfigParameter<std::string>(
"name");
591 auto const integration_order =
593 process_config.getConfigParameter<
int>(
"integration_order");
595 std::unique_ptr<ProcessLib::Process> process;
599 process_config.getConfigSubtreeOptional(
"jacobian_assembler"));
601 #ifdef OGS_BUILD_PROCESS_STEADYSTATEDIFFUSION
602 if (type ==
"STEADY_STATE_DIFFUSION")
617 #ifdef OGS_BUILD_PROCESS_LIQUIDFLOW
618 if (type ==
"LIQUID_FLOW")
627 #ifdef OGS_BUILD_PROCESS_TES
637 #ifdef OGS_BUILD_PROCESS_HEATCONDUCTION
638 if (type ==
"HEAT_CONDUCTION")
647 #ifdef OGS_BUILD_PROCESS_HEATTRANSPORTBHE
648 if (type ==
"HEAT_TRANSPORT_BHE")
653 "HEAT_TRANSPORT_BHE can only work with a 3-dimensional "
665 #ifdef OGS_BUILD_PROCESS_HYDROMECHANICS
666 if (type ==
"HYDRO_MECHANICS")
669 switch (process_config.getConfigParameter<
int>(
"dimension"))
675 std::move(jacobian_assembler),
684 std::move(jacobian_assembler),
691 "HYDRO_MECHANICS process does not support given "
697 #ifdef OGS_BUILD_PROCESS_LIE
698 if (type ==
"HYDRO_MECHANICS_WITH_LIE")
701 switch (process_config.getConfigParameter<
int>(
"dimension"))
721 "HYDRO_MECHANICS_WITH_LIE process does not support "
727 #ifdef OGS_BUILD_PROCESS_HT
737 #ifdef OGS_BUILD_PROCESS_COMPONENTTRANSPORT
738 if (type ==
"ComponentTransport")
745 chemical_solver_interface);
749 #ifdef OGS_BUILD_PROCESS_PHASEFIELD
750 if (type ==
"PHASE_FIELD")
774 #ifdef OGS_BUILD_PROCESS_RICHARDSCOMPONENTTRANSPORT
775 if (type ==
"RichardsComponentTransport")
785 #ifdef OGS_BUILD_PROCESS_SMALLDEFORMATION
786 if (type ==
"SMALL_DEFORMATION")
808 "SMALL_DEFORMATION process does not support "
814 #ifdef OGS_BUILD_PROCESS_SMALLDEFORMATIONNONLOCAL
815 if (type ==
"SMALL_DEFORMATION_NONLOCAL")
837 "SMALL_DEFORMATION_NONLOCAL process does not support "
838 "given dimension {:d}",
844 #ifdef OGS_BUILD_PROCESS_LIE
845 if (type ==
"SMALL_DEFORMATION_WITH_LIE")
848 switch (process_config.getConfigParameter<
int>(
"dimension"))
868 "SMALL_DEFORMATION_WITH_LIE process does not support "
874 #ifdef OGS_BUILD_PROCESS_THERMOHYDROMECHANICS
875 if (type ==
"THERMO_HYDRO_MECHANICS")
878 switch (process_config.getConfigParameter<
int>(
"dimension"))
898 "THERMO_HYDRO_MECHANICS process does not support given "
904 #ifdef OGS_BUILD_PROCESS_THERMOMECHANICALPHASEFIELD
905 if (type ==
"THERMO_MECHANICAL_PHASE_FIELD")
929 #ifdef OGS_BUILD_PROCESS_THERMOMECHANICS
930 if (type ==
"THERMO_MECHANICS")
954 #ifdef OGS_BUILD_PROCESS_RICHARDSFLOW
955 if (type ==
"RICHARDS_FLOW")
964 #ifdef OGS_BUILD_PROCESS_RICHARDSMECHANICS
965 if (type ==
"RICHARDS_MECHANICS")
968 switch (process_config.getConfigParameter<
int>(
"dimension"))
990 #ifdef OGS_BUILD_PROCESS_TWOPHASEFLOWWITHPP
991 if (type ==
"TWOPHASE_FLOW_PP")
1001 #ifdef OGS_BUILD_PROCESS_TWOPHASEFLOWWITHPRHO
1002 if (type ==
"TWOPHASE_FLOW_PRHO")
1012 #ifdef OGS_BUILD_PROCESS_THERMALTWOPHASEFLOWWITHPP
1013 if (type ==
"THERMAL_TWOPHASE_WITH_PP")
1024 OGS_FATAL(
"Unknown process type: {:s}", type);
1029 [&
name](std::unique_ptr<ProcessLib::Process>
const&
p) {
1030 return p->name ==
name;
1041 std::string
const& output_directory,
1042 std::unique_ptr<ChemistryLib::ChemicalSolverInterface>&&
1043 chemical_solver_interface)
1045 DBUG(
"Reading time loop configuration.");
1049 std::move(chemical_solver_interface));
1053 OGS_FATAL(
"Initialization of time loop failed.");
1059 DBUG(
"Reading linear solver configuration.");
1065 auto const name = conf.getConfigParameter<std::string>(
"name");
1069 std::make_unique<GlobalLinearSolver>(
"", &conf),
1070 "The linear solver name is not unique");
1076 DBUG(
"Reading linear solver configuration.");
1081 auto const ls_name =
1083 conf.getConfigParameter<std::string>(
"linear_solver");
1086 "A linear solver with the given name does not exist.");
1089 auto const name = conf.getConfigParameter<std::string>(
"name");
1094 "The nonlinear solver name is not unique");
1099 boost::optional<BaseLib::ConfigTree>
const& config)
1106 DBUG(
"Reading curves configuration.");
1109 for (
auto conf : config->getConfigSubtreeList(
"curve"))
1112 auto const name = conf.getConfigParameter<std::string>(
"name");
1118 "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.
boost::optional< T > getConfigParameterOptional(std::string const ¶m) const
boost::optional< T > getConfigAttributeOptional(std::string const &attr) const
T getConfigParameter(std::string const ¶m) const
Range< SubtreeIterator > getConfigSubtreeList(std::string const &root) const
ConfigTree getConfigSubtree(std::string const &root) const
boost::optional< ConfigTree > getConfigSubtreeOptional(std::string const &root) 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
boost::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, ChemistryLib::ChemicalSolverInterface *chemical_solver_interface)
void parseTimeLoop(BaseLib::ConfigTree const &config, const std::string &output_directory, std::unique_ptr< ChemistryLib::ChemicalSolverInterface > &&chemical_solver_interface)
Parses the time loop configuration.
void parseMedia(boost::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::unique_ptr< ChemistryLib::ChemicalSolverInterface > parseChemicalSolverInterface(boost::optional< BaseLib::ConfigTree > const &config, const std::string &output_directory)
void parseCurves(boost::optional< BaseLib::ConfigTree > const &config)
std::map< std::string, std::unique_ptr< MathLib::PiecewiseLinearInterpolation > > _curves
std::vector< std::unique_ptr< MeshLib::Mesh > > _mesh_vec
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, ChemistryLib::ChemicalSolverInterface *const 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, boost::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, boost::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, boost::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, boost::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, boost::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< 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, boost::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< 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, boost::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, boost::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, boost::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, boost::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, boost::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, boost::optional< ParameterLib::CoordinateSystem > const &local_coordinate_system, unsigned const integration_order, BaseLib::ConfigTree const &config)
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, boost::optional< ParameterLib::CoordinateSystem > const &local_coordinate_system, unsigned const integration_order, BaseLib::ConfigTree const &config)
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< AbstractJacobianAssembler > createJacobianAssembler(boost::optional< BaseLib::ConfigTree > const &config)
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, std::unique_ptr< ChemistryLib::ChemicalSolverInterface > &&chemical_solver_interface)
Builds a TimeLoop from the given configuration.
boost::optional< ParameterLib::CoordinateSystem > parseLocalCoordinateSystem(boost::optional< BaseLib::ConfigTree > const &config, std::vector< std::unique_ptr< ParameterLib::ParameterBase >> const ¶meters)
std::unique_ptr< MeshLib::Mesh > readSingleMesh(BaseLib::ConfigTree const &mesh_config_parameter, std::string const &project_directory)
unsigned getDimension(MeshLib::MeshElemType eleType)
Definition of readMeshFromFile function.
Single, constant value parameter.
static const std::string zero_parameter_name