70 std::string
const& name,
72 std::unique_ptr<ProcessLib::AbstractJacobianAssembler>&& jacobian_assembler,
73 std::vector<ProcessVariable>
const& variables,
74 std::vector<std::unique_ptr<ParameterLib::ParameterBase>>
const& parameters,
75 unsigned const integration_order,
77 std::map<
int, std::shared_ptr<MaterialPropertyLib::Medium>>
const& media)
81 DBUG(
"Create ThermoRichardsFlowProcess.");
83 auto const coupling_scheme =
86 const bool use_monolithic_scheme =
87 !(coupling_scheme && (*coupling_scheme ==
"staggered"));
96 std::vector<std::vector<std::reference_wrapper<ProcessVariable>>>
98 if (use_monolithic_scheme)
103 variables, pv_config,
108 variable_T = &per_process_variables[0].get();
109 variable_p = &per_process_variables[1].get();
110 process_variables.push_back(std::move(per_process_variables));
115 "So far, only the monolithic scheme is implemented for "
116 "THERMO_RICHARDS_FLOW");
124 Eigen::VectorXd specific_body_force;
126 std::vector<double>
const b =
129 "specific_body_force");
133 "specific body force (gravity vector) has {:d} components, "
134 "but mesh dimension is {:d}",
137 specific_body_force.resize(b.size());
138 std::copy_n(b.data(), b.size(), specific_body_force.data());
141 auto const is_linear =
148 "Check the media properties of ThermoRichardsFlow process "
151 DBUG(
"Media properties verified.");
153 bool const mass_lumping =
157 std::unique_ptr<SimplifiedElasticityModel> simplified_elasticity =
161 std::move(media_map), std::move(specific_body_force), mass_lumping,
162 std::move(simplified_elasticity)};
168 return std::make_unique<ThermoRichardsFlowProcess>(
169 std::move(name), mesh, std::move(jacobian_assembler), parameters,
170 integration_order, std::move(process_variables),
171 std::move(process_data), std::move(secondary_variables),
172 use_monolithic_scheme, is_linear);
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)