Skip to content
Snippets Groups Projects
Commit 9712c327 authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[App] Add HydroMechanics to ProjectData.

parent b3b7d823
No related branches found
No related tags found
No related merge requests found
......@@ -34,6 +34,7 @@
#include "ProcessLib/GroundwaterFlow/CreateGroundwaterFlowProcess.h"
#include "ProcessLib/HeatConduction/CreateHeatConductionProcess.h"
#include "ProcessLib/HydroMechanics/CreateHydroMechanicsProcess.h"
#include "ProcessLib/RichardsFlow/CreateRichardsFlowProcess.h"
#include "ProcessLib/LiquidFlow/CreateLiquidFlowProcess.h"
#include "ProcessLib/SmallDeformation/CreateSmallDeformationProcess.h"
......@@ -313,6 +314,30 @@ void ProjectData::parseProcesses(BaseLib::ConfigTree const& processes_config,
_process_variables, _parameters, integration_order,
process_config);
}
else if (type == "HYDRO_MECHANICS")
{
switch (process_config.getConfigParameter<int>("dimension"))
{
case 2:
process =
ProcessLib::HydroMechanics::createHydroMechanicsProcess<
2>(*_mesh_vec[0], std::move(jacobian_assembler),
_process_variables, _parameters,
integration_order, process_config);
break;
case 3:
process =
ProcessLib::HydroMechanics::createHydroMechanicsProcess<
3>(*_mesh_vec[0], std::move(jacobian_assembler),
_process_variables, _parameters,
integration_order, process_config);
break;
default:
OGS_FATAL(
"HYDRO_MECHANICS process does not support given "
"dimension");
}
}
else if (type == "SMALL_DEFORMATION")
{
//! \ogs_file_param{process__SMALL_DEFORMATION__dimension}
......
......@@ -15,6 +15,7 @@ add_subdirectory(GroundwaterFlow)
APPEND_SOURCE_FILES(SOURCES GroundwaterFlow)
APPEND_SOURCE_FILES(SOURCES LiquidFlow)
APPEND_SOURCE_FILES(SOURCES HydroMechanics)
APPEND_SOURCE_FILES(SOURCES SmallDeformation)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment