Commit 29a16388 authored by Beatrix Becker's avatar Beatrix Becker
Browse files

[thermalconductivitysomerton] make sure that one phase is liquid and the other gas.

parent d95ed189
......@@ -85,7 +85,8 @@ public:
{
using FluidSystem = typename VolumeVariables::FluidSystem;
static_assert(FluidSystem::numPhases == 2, "ThermalConductivitySomerton only works for two-phase fluid systems!");
static_assert(FluidSystem::isGas(0) || FluidSystem::isGas(1), "ThermalConductivitySomerton only works if one phase is gaseous and one is liquid!");
static_assert((FluidSystem::isGas(0) && !FluidSystem::isGas(1)) || (!FluidSystem::isGas(0) && FluidSystem::isGas(1)),
"ThermalConductivitySomerton only works if one phase is gaseous and one is liquid!");
constexpr int liquidPhaseIdx = FluidSystem::isGas(0) ? 1 : 0;
constexpr int gasPhaseIdx = FluidSystem::isGas(0) ? 0 : 1;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment