67 std::string
const& name,
69 std::unique_ptr<ProcessLib::AbstractJacobianAssembler>&& jacobian_assembler,
70 std::vector<ProcessVariable>
const& variables,
71 std::vector<std::unique_ptr<ParameterLib::ParameterBase>>
const& parameters,
72 unsigned const integration_order,
74 std::map<
int, std::shared_ptr<MaterialPropertyLib::Medium>>
const& media)
78 DBUG(
"Create ThermoRichardsFlowProcess.");
80 auto const coupling_scheme =
83 const bool use_monolithic_scheme =
84 !(coupling_scheme && (*coupling_scheme ==
"staggered"));
93 std::vector<std::vector<std::reference_wrapper<ProcessVariable>>>
95 if (use_monolithic_scheme)
100 variables, pv_config,
105 variable_T = &per_process_variables[0].get();
106 variable_p = &per_process_variables[1].get();
107 process_variables.push_back(std::move(per_process_variables));
112 "So far, only the monolithic scheme is implemented for "
113 "THERMO_RICHARDS_FLOW");
121 Eigen::VectorXd specific_body_force;
123 std::vector<double>
const b =
126 "specific_body_force");
130 "specific body force (gravity vector) has {:d} components, "
131 "but mesh dimension is {:d}",
134 specific_body_force.resize(b.size());
135 std::copy_n(b.data(), b.size(), specific_body_force.data());
138 auto const is_linear =
145 "Check the media properties of ThermoRichardsFlow process "
148 DBUG(
"Media properties verified.");
150 bool const mass_lumping =
154 std::unique_ptr<SimplifiedElasticityModel> simplified_elasticity =
158 std::move(media_map), std::move(specific_body_force), mass_lumping,
159 std::move(simplified_elasticity)};
165 return std::make_unique<ThermoRichardsFlowProcess>(
166 std::move(name), mesh, std::move(jacobian_assembler), parameters,
167 integration_order, std::move(process_variables),
168 std::move(process_data), std::move(secondary_variables),
169 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)