26 std::string
const& name,
28 std::unique_ptr<ProcessLib::AbstractJacobianAssembler>&& jacobian_assembler,
29 std::vector<ProcessVariable>
const& variables,
30 std::vector<std::unique_ptr<ParameterLib::ParameterBase>>
const& parameters,
31 unsigned const integration_order,
33 std::map<
int, std::shared_ptr<MaterialPropertyLib::Medium>>
const& media)
40 DBUG(
"Create TwoPhaseFlowProcess with PP model.");
50 "capillary_pressure"});
51 std::vector<std::vector<std::reference_wrapper<ProcessVariable>>>
53 process_variables.push_back(std::move(per_process_variables));
61 std::vector<double>
const b =
64 assert(!b.empty() && b.size() < 4);
65 Eigen::VectorXd specific_body_force(b.size());
69 std::copy_n(b.data(), b.size(), specific_body_force.data());
75 auto const& temperature = ParameterLib::findParameter<double>(
78 "temperature", parameters, 1, &mesh);
80 auto const material_ids = materialIDs(mesh);
83 INFO(
"The twophase flow is in heterogeneous porous media.");
87 INFO(
"The twophase flow is in homogeneous porous media.");
94 mass_lumping, temperature,
95 std::move(media_map)};
97 return std::make_unique<TwoPhaseFlowWithPPProcess>(
98 std::move(name), mesh, std::move(jacobian_assembler), parameters,
99 integration_order, std::move(process_variables),
100 std::move(process_data), std::move(secondary_variables));