Skip to content
Snippets Groups Projects
Commit bda4f0d6 authored by Timo Koch's avatar Timo Koch
Browse files

[material] Add static assert that ThCondJohansen only works for 2 phases

parent e9a83517
No related branches found
No related tags found
1 merge request!1605Feature/simplify effective laws
...@@ -99,6 +99,10 @@ public: ...@@ -99,6 +99,10 @@ public:
template<class VolumeVariables> template<class VolumeVariables>
static Scalar effectiveThermalConductivity(const VolumeVariables& volVars) static Scalar effectiveThermalConductivity(const VolumeVariables& volVars)
{ {
using FluidSystem = typename VolumeVariables::FluidSystem;
static_assert(FluidSystem::numPhases == 2, "ThermalConductivitySomerton only works for two-phase fluid systems!");
// TODO: there should be an assertion that the indices are correct and 0 is actually the wetting phase!
const Scalar sw = volVars.saturation(Indices::wPhaseIdx); const Scalar sw = volVars.saturation(Indices::wPhaseIdx);
const Scalar lambdaW = volVars.fluidThermalConductivity(Indices::wPhaseIdx); const Scalar lambdaW = volVars.fluidThermalConductivity(Indices::wPhaseIdx);
const Scalar lambdaN = volVars.fluidThermalConductivity(Indices::nPhaseIdx); const Scalar lambdaN = volVars.fluidThermalConductivity(Indices::nPhaseIdx);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment