28 std::map<
int, std::shared_ptr<MaterialPropertyLib::Medium>>
const& media)
30 std::array
const required_property_medium = {
40 std::array
const required_property_solid_phase = {
44 std::array
const required_property_liquid_phase = {
49 std::array
const required_property_gas_phase = {
52 std::array
const required_property_vapour_component = {
58 std::array
const required_property_dry_air_component = {
62 std::array
const required_property_contaminant_vapour_component = {
68 std::array
const required_property_dissolved_contaminant_component = {
71 for (
auto const& m : media)
73 auto const& gas_phase = m.second->phase(
"Gas");
74 auto const& liquid_phase = m.second->phase(
"AqueousLiquid");
75 checkRequiredProperties(*m.second, required_property_medium);
76 checkRequiredProperties(gas_phase, required_property_gas_phase);
77 checkRequiredProperties(liquid_phase, required_property_liquid_phase);
78 checkRequiredProperties(m.second->phase(
"Solid"),
79 required_property_solid_phase);
82 checkRequiredProperties(gas_phase.component(
"w"),
83 required_property_vapour_component);
84 checkRequiredProperties(gas_phase.component(
"a"),
85 required_property_dry_air_component);
86 checkRequiredProperties(gas_phase.component(
"c"),
87 required_property_contaminant_vapour_component);
88 checkRequiredProperties(
89 liquid_phase.component(
"c"),
90 required_property_dissolved_contaminant_component);
95 std::string
const& name,
97 std::unique_ptr<ProcessLib::AbstractJacobianAssembler>&& jacobian_assembler,
98 std::vector<ProcessVariable>
const& variables,
99 std::vector<std::unique_ptr<ParameterLib::ParameterBase>>
const& parameters,
100 unsigned const integration_order,
102 std::map<
int, std::shared_ptr<MaterialPropertyLib::Medium>>
const& media)
108 DBUG(
"Create nonisothermal two-phase flow model.");
114 variables, pv_config,
118 "capillary_pressure",
120 "total_molar_fraction_contaminant",
123 std::vector<std::vector<std::reference_wrapper<ProcessVariable>>>
125 process_variables.push_back(std::move(per_process_variables));
132 std::vector<double>
const b =
135 assert(!b.empty() && b.size() < 4);
136 Eigen::VectorXd specific_body_force(b.size());
140 std::copy_n(b.data(), b.size(), specific_body_force.data());
149 DBUG(
"Check the media properties of ThermalTwoPhaseFlowWithPP process ...");
151 DBUG(
"Media properties verified.");
154 std::move(media_map), specific_body_force, has_gravity, mass_lumping};
156 return std::make_unique<ThermalTwoPhaseFlowWithPPProcess>(
157 std::move(name), mesh, std::move(jacobian_assembler), parameters,
158 integration_order, std::move(process_variables),
159 std::move(process_data), std::move(secondary_variables));