diff --git a/dumux/freeflow/staggered/properties.hh b/dumux/freeflow/staggered/properties.hh index df88601308d6a5ece4e2b3e51a0ad74da00a7f21..26b696637dc1c303cafb9c985ff6bf8e05dc5a74 100644 --- a/dumux/freeflow/staggered/properties.hh +++ b/dumux/freeflow/staggered/properties.hh @@ -30,11 +30,12 @@ #include <dumux/common/basicproperties.hh> #include <dumux/freeflow/properties.hh> -#include <dumux/freeflow/staggeredni/properties.hh> #include <dumux/freeflow/staggeredni/localresidual.hh> #include <dumux/freeflow/staggeredni/fluxvariables.hh> #include <dumux/implicit/staggered/localresidual.hh> +#include <dumux/freeflow/staggeredni/properties.hh> +#include <dumux/freeflow/staggeredni/propertydefaults.hh> #include "localresidual.hh" #include "volumevariables.hh" diff --git a/dumux/freeflow/staggered/vtkoutputfields.hh b/dumux/freeflow/staggered/vtkoutputfields.hh index e990f49a23a1f8bad2aeb801b2506616b8466bdc..e4273b45348d1fe2dd518cc37adb95daea289410 100644 --- a/dumux/freeflow/staggered/vtkoutputfields.hh +++ b/dumux/freeflow/staggered/vtkoutputfields.hh @@ -41,19 +41,10 @@ public: template <class VtkOutputModule> static void init(VtkOutputModule& vtk) { - // vtk.addSecondaryVariable("Sw", [](const VolumeVariables& v){ return v.saturation(Indices::wPhaseIdx); }); - // vtk.addSecondaryVariable("Sn", [](const VolumeVariables& v){ return v.saturation(Indices::nPhaseIdx); }); - // vtk.addSecondaryVariable("pw", [](const VolumeVariables& v){ return v.pressure(Indices::wPhaseIdx); }); - // vtk.addSecondaryVariable("pn", [](const VolumeVariables& v){ return v.pressure(Indices::nPhaseIdx); }); - // vtk.addSecondaryVariable("p", [](const VolumeVariables& v){ return v.pressure(); }); vtk.addVolumeVariable([](const VolumeVariables& v){ return v.pressure(); }, "p"); - // vtk.addSecondaryVariable("pc", [](const VolumeVariables& v){ return v.capillaryPressure(); }); - // vtk.addSecondaryVariable("rhoW", [](const VolumeVariables& v){ return v.density(Indices::wPhaseIdx); }); - // vtk.addSecondaryVariable("rhoN", [](const VolumeVariables& v){ return v.density(Indices::nPhaseIdx); }); - // vtk.addSecondaryVariable("mobW", [](const VolumeVariables& v){ return v.mobility(Indices::wPhaseIdx); }); - // vtk.addSecondaryVariable("mobN", [](const VolumeVariables& v){ return v.mobility(Indices::nPhaseIdx); }); - // vtk.addSecondaryVariable("temperature", [](const VolumeVariables& v){ return v.temperature(); }); - // vtk.addSecondaryVariable("porosity", [](const VolumeVariables& v){ return v.porosity(); }); + + if(GET_PROP_VALUE(TypeTag, EnableEnergyBalance)) + vtk.addVolumeVariable( [](const VolumeVariables& v){ return v.temperature(); },"temperature"); } }; diff --git a/dumux/freeflow/staggeredni/propertydefaults.hh b/dumux/freeflow/staggeredni/propertydefaults.hh index e9cc5cbc1dbcf79fac9cff907d26e2c7da5f435e..3a32e82eaa62022fb5646e617f22a1ac3038d26c 100644 --- a/dumux/freeflow/staggeredni/propertydefaults.hh +++ b/dumux/freeflow/staggeredni/propertydefaults.hh @@ -28,6 +28,7 @@ #define DUMUX_NAVIER_STOKES_NI_PROPERTY_DEFAULTS_HH #include "indices.hh" +#include <dumux/discretization/fourierslaw.hh> namespace Dumux { @@ -51,7 +52,7 @@ SET_TYPE_PROP(NavierStokesNonIsothermal, Indices, NavierStokesNonIsothermalIndic SET_BOOL_PROP(NavierStokesNonIsothermal, EnableEnergyBalance, true); -// SET_TYPE_PROP(NavierStokesNonIsothermal, HeatConductionType, FouriersLaw<TypeTag>); TODO +SET_TYPE_PROP(NavierStokesNonIsothermal, HeatConductionType, FouriersLaw<TypeTag>); } // end namespace Properties