Skip to content
Snippets Groups Projects
Commit 89a07cbf authored by Kilian Weishaupt's avatar Kilian Weishaupt
Browse files

Merge branch 'fixup/adapttest_vtkstaggered' into 'master'

fixup /Adapt vtk_staggered test to RANS changes

See merge request !1498
parents 7b3c60a0 7e6099ce
No related branches found
No related tags found
1 merge request!1498fixup /Adapt vtk_staggered test to RANS changes
...@@ -113,31 +113,13 @@ template<class TypeTag> ...@@ -113,31 +113,13 @@ template<class TypeTag>
struct Problem<TypeTag, TTag::StaggeredPVNamesTestTypeTag> struct Problem<TypeTag, TTag::StaggeredPVNamesTestTypeTag>
{ {
private: private:
// use the ZeroEqProblem as base class for non-RANS models and for the ZeroEq model
// use the the KEpsilonProblem as base class for all RANS models except the ZeroEq model
// NOTE: this rather unpleasant hack will be removed once the RANS models have been unified
using MTraits = GetPropType<TypeTag, Properties::ModelTraits>; using MTraits = GetPropType<TypeTag, Properties::ModelTraits>;
static constexpr auto dim = MTraits::dim(); static constexpr auto dim = MTraits::dim();
static constexpr auto nComp = MTraits::numFluidComponents(); static constexpr auto nComp = MTraits::numFluidComponents();
static constexpr auto numEq = MTraits::numEq(); static constexpr auto numEq = MTraits::numEq();
using BaseTurbulentProblem = std::conditional_t<(std::is_same<typename MTraits::Indices, KOmegaIndices<dim, nComp>>::value || using BaseProblem = std::conditional_t<MTraits::usesTurbulenceModel(), RANSProblemImpl<TypeTag, MTraits::turbulenceModel()>, NavierStokesProblem<TypeTag>>;
std::is_same<typename MTraits::Indices, FreeflowNonIsothermalIndices<KOmegaIndices<dim, nComp>, numEq>>::value),
KOmegaProblem<TypeTag>,
std::conditional_t<(std::is_same<typename MTraits::Indices, KEpsilonIndices<dim, nComp>>::value ||
std::is_same<typename MTraits::Indices, FreeflowNonIsothermalIndices<KEpsilonIndices<dim, nComp>, numEq>>::value),
KEpsilonProblem<TypeTag>,
std::conditional_t<(std::is_same<typename MTraits::Indices, LowReKEpsilonIndices<dim, nComp>>::value ||
std::is_same<typename MTraits::Indices, FreeflowNonIsothermalIndices<LowReKEpsilonIndices<dim, nComp>, numEq>>::value),
LowReKEpsilonProblem<TypeTag>, OneEqProblem<TypeTag>>>>;
using BaseProblem = std::conditional_t<MTraits::usesTurbulenceModel() &&
!std::is_same<MTraits, RANSModelTraits<dim>>::value &&
!std::is_same<MTraits, FreeflowNIModelTraits<RANSModelTraits<dim>>>::value &&
!std::is_same<MTraits, ZeroEqNCModelTraits<dim, nComp, false, 0>>::value &&
!std::is_same<MTraits, FreeflowNIModelTraits<ZeroEqNCModelTraits<dim, nComp, false, 0>>>::value,
BaseTurbulentProblem, ZeroEqProblem<TypeTag>>;
template<class TTag> template<class TTag>
class MockProblem : public BaseProblem class MockProblem : public BaseProblem
......
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