79 std::string
const& name,
81 std::unique_ptr<ProcessLib::AbstractJacobianAssembler>&& jacobian_assembler,
82 std::vector<ProcessVariable>
const& variables,
83 std::vector<std::unique_ptr<ParameterLib::ParameterBase>>
const& parameters,
84 unsigned const integration_order,
86 std::map<
int, std::shared_ptr<MaterialPropertyLib::Medium>>
const& media)
91 DBUG(
"Create RichardsComponentTransportProcess.");
93 auto const coupling_scheme =
96 const bool use_monolithic_scheme =
97 !(coupling_scheme && (*coupling_scheme ==
"staggered"));
104 std::vector<std::vector<std::reference_wrapper<ProcessVariable>>>
106 if (use_monolithic_scheme)
111 variables, pv_config,
116 if (per_process_variables.size() > 2)
119 "By now RichardsComponentTransport process only supports "
120 "single component transport simulation.");
122 process_variables.push_back(std::move(per_process_variables));
126 OGS_FATAL(
"The staggered coupling scheme is not implemented.");
131 Eigen::VectorXd specific_body_force;
132 std::vector<double>
const b =
135 assert(!b.empty() && b.size() < 4);
139 "specific body force (gravity vector) has {:d} components, mesh "
146 specific_body_force.resize(b.size());
147 std::copy_n(b.data(), b.size(), specific_body_force.data());
154 "Check the media properties of RichardsComponentTransport process ...");
155 checkMPLProperties(mesh, media_map);
156 DBUG(
"Media properties verified.");
159 std::move(media_map), specific_body_force, has_gravity};
165 return std::make_unique<RichardsComponentTransportProcess>(
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);