34 std::map<
int, std::shared_ptr<MaterialPropertyLib::Medium>>
const& media)
36 std::array
const required_medium_properties = {
41 std::array
const required_liquid_properties = {
49 for (
auto const& m : media)
51 checkRequiredProperties(*m.second, required_medium_properties);
52 checkRequiredProperties(m.second->phase(
"AqueousLiquid"),
53 required_liquid_properties);
54 checkRequiredProperties(m.second->phase(
"Solid"),
55 required_solid_properties);
72 std::string
const& name,
74 std::unique_ptr<ProcessLib::AbstractJacobianAssembler>&& jacobian_assembler,
75 std::vector<ProcessVariable>
const& variables,
76 std::vector<std::unique_ptr<ParameterLib::ParameterBase>>
const& parameters,
77 unsigned const integration_order,
79 std::map<
int, std::shared_ptr<MaterialPropertyLib::Medium>>
const& media)
83 DBUG(
"Create ThermoRichardsFlowProcess.");
85 auto const coupling_scheme =
88 const bool use_monolithic_scheme =
89 !(coupling_scheme && (*coupling_scheme ==
"staggered"));
98 std::vector<std::vector<std::reference_wrapper<ProcessVariable>>>
100 if (use_monolithic_scheme)
105 variables, pv_config,
110 variable_T = &per_process_variables[0].get();
111 variable_p = &per_process_variables[1].get();
112 process_variables.push_back(std::move(per_process_variables));
117 "So far, only the monolithic scheme is implemented for "
118 "THERMO_RICHARDS_FLOW");
126 Eigen::VectorXd specific_body_force;
128 std::vector<double>
const b =
131 "specific_body_force");
135 "specific body force (gravity vector) has {:d} components, "
136 "but mesh dimension is {:d}",
139 specific_body_force.resize(b.size());
140 std::copy_n(b.data(), b.size(), specific_body_force.data());
146 "Check the media properties of ThermoRichardsFlow process "
149 DBUG(
"Media properties verified.");
151 bool const mass_lumping =
155 std::unique_ptr<SimplifiedElasticityModel> simplified_elasticity =
159 std::move(media_map), std::move(specific_body_force), mass_lumping,
160 std::move(simplified_elasticity)};
166 return std::make_unique<ThermoRichardsFlowProcess>(
167 std::move(name), mesh, std::move(jacobian_assembler), parameters,
168 integration_order, std::move(process_variables),
169 std::move(process_data), std::move(secondary_variables),
170 use_monolithic_scheme);
std::unique_ptr< Process > createThermoRichardsFlowProcess(std::string const &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)