73 std::string
const& name,
75 std::unique_ptr<ProcessLib::AbstractJacobianAssembler>&& jacobian_assembler,
76 std::vector<ProcessVariable>
const& variables,
77 std::vector<std::unique_ptr<ParameterLib::ParameterBase>>
const& parameters,
78 unsigned const integration_order,
80 std::map<
int, std::shared_ptr<MaterialPropertyLib::Medium>>
const& media)
85 DBUG(
"Create RichardsComponentTransportProcess.");
87 auto const coupling_scheme =
90 const bool use_monolithic_scheme =
91 !(coupling_scheme && (*coupling_scheme ==
"staggered"));
98 std::vector<std::vector<std::reference_wrapper<ProcessVariable>>>
100 if (use_monolithic_scheme)
105 variables, pv_config,
110 if (per_process_variables.size() > 2)
113 "By now RichardsComponentTransport process only supports "
114 "single component transport simulation.");
116 process_variables.push_back(std::move(per_process_variables));
120 OGS_FATAL(
"The staggered coupling scheme is not implemented.");
125 Eigen::VectorXd specific_body_force;
126 std::vector<double>
const b =
129 assert(!b.empty() && b.size() < 4);
133 "specific body force (gravity vector) has {:d} components, mesh "
140 specific_body_force.resize(b.size());
141 std::copy_n(b.data(), b.size(), specific_body_force.data());
148 "Check the media properties of RichardsComponentTransport process ...");
149 checkMPLProperties(mesh, media_map);
150 DBUG(
"Media properties verified.");
153 std::move(media_map), specific_body_force, has_gravity};
159 return std::make_unique<RichardsComponentTransportProcess>(
160 std::move(name), mesh, std::move(jacobian_assembler), parameters,
161 integration_order, std::move(process_variables),
162 std::move(process_data), std::move(secondary_variables),
163 use_monolithic_scheme);