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)
84 DBUG(
"Create RichardsComponentTransportProcess.");
86 auto const coupling_scheme =
89 const bool use_monolithic_scheme =
90 !(coupling_scheme && (*coupling_scheme ==
"staggered"));
97 std::vector<std::vector<std::reference_wrapper<ProcessVariable>>>
99 if (use_monolithic_scheme)
104 variables, pv_config,
109 if (per_process_variables.size() > 2)
112 "By now RichardsComponentTransport process only supports "
113 "single component transport simulation.");
115 process_variables.push_back(std::move(per_process_variables));
119 OGS_FATAL(
"The staggered coupling scheme is not implemented.");
124 Eigen::VectorXd specific_body_force;
125 std::vector<double>
const b =
128 assert(!b.empty() && b.size() < 4);
132 "specific body force (gravity vector) has {:d} components, mesh "
139 specific_body_force.resize(b.size());
140 std::copy_n(b.data(), b.size(), specific_body_force.data());
147 "Check the media properties of RichardsComponentTransport process ...");
148 checkMPLProperties(mesh, media_map);
149 DBUG(
"Media properties verified.");
152 std::move(media_map), specific_body_force, has_gravity};
158 return std::make_unique<RichardsComponentTransportProcess>(
159 std::move(name), mesh, std::move(jacobian_assembler), parameters,
160 integration_order, std::move(process_variables),
161 std::move(process_data), std::move(secondary_variables),
162 use_monolithic_scheme);