56 std::unique_ptr<ProcessLib::AbstractJacobianAssembler>&& jacobian_assembler,
57 std::vector<ProcessVariable>
const& variables,
58 std::vector<std::unique_ptr<ParameterLib::ParameterBase>>
const& parameters,
59 unsigned const integration_order,
61 std::map<
int, std::shared_ptr<MaterialPropertyLib::Medium>>
const& media)
66 DBUG(
"Create WellboreSimulatorProcess.");
73 std::vector<std::vector<std::reference_wrapper<ProcessVariable>>>
83 "specific_enthalpy"});
85 process_variables.push_back(std::move(collected_process_variables));
88 Eigen::VectorXd specific_body_force;
89 std::vector<double>
const b =
92 assert(!b.empty() && b.size() < 4);
96 "specific body force (gravity vector) has %d components, mesh "
103 specific_body_force.resize(b.size());
104 std::copy_n(b.data(), b.size(), specific_body_force.data());
114 "wellbore_ref_pressure", parameters, 1, &mesh);
115 DBUG(
"Use '{:s}' as wellbore_ref_pressure parameter.",
116 well_ref_pressure.name);
121 "wellbore_ref_enthalpy", parameters, 1, &mesh);
122 DBUG(
"Use '{:s}' as wellbore_ref_enthalpy parameter.",
123 well_ref_enthalpy.name);
125 auto const heat_exchange_with_formation =
136 "productivity_index", parameters, 1, &mesh);
137 DBUG(
"Use '{:s}' as productivity_index parameter.",
138 productivity_index.name);
143 DBUG(
"Check the media properties of WellboreSimulator process ...");
145 DBUG(
"Media properties verified.");
149 std::move(wellbore_geometry),
152 std::move(reservoir_properties),
154 heat_exchange_with_formation,
161 return std::make_unique<WellboreSimulatorProcess>(
162 std::move(name), mesh, std::move(jacobian_assembler), parameters,
163 integration_order, std::move(process_variables),
164 std::move(process_data), std::move(secondary_variables));