Commit fa097713 authored by Katharina Heck's avatar Katharina Heck Committed by Ned Coltman
Browse files

[fix][pm-ff] fix inheritence from ransproblem

parent e3a2cb3c
......@@ -318,12 +318,12 @@ The file `ex_turbulence_ffproblem.hh` is your free flow problem file within this
For using the compositional zero equation turbulence model, the following header files need to be included:
```
#include <dumux/freeflow/compositional/zeroeqncmodel.hh>
#include <dumux/freeflow/rans/zeroeq/problem.hh>
#include <dumux/freeflow/rans/problem.hh>
```
The includes for the NavierStokesNC model and the NavierStokesProblem are no longer needed and can be removed.
Make sure your free flow problem inherits from the correct parent type:
* Change the entry in the `StokesZeroEq` definition accordingly (non-isothermal zero equation model)
* Change the entry in the `StokesZeroEq` definition accordingly (non-isothermal zero equation model, ZeroEqNCNI)
* Adapt the inheritance of the problem class (hint: two occurrences)
Take a look into the two headers included above to see how the correct TypeTag and the Problem class the inherit from are called.
......@@ -344,7 +344,7 @@ In addition, especially for the zero-equation models, any element in the free-fl
e.g. this defines the wall distance which is needed to calculate the eddy viscosity.
To get all these interactions, you have to call
```cpp
stokesProblem->updateStaticWallProperties()
stokesProblem->updateStaticWallProperties();
```
in `ex_turbulence_coupling_ff-pm.cc`.
However, there is also a solution-dependent component of these interactions, e.g. for a correct
......@@ -352,7 +352,7 @@ damping of the eddy viscosity toward the wall, the velocity gradient at the wall
cells is needed.
These dynamic interactions are to be updated by calling
```cpp
stokesProblem->updateDynamicWallProperties(stokesSol)
stokesProblem->updateDynamicWallProperties(stokesSol);
```
in the time loop (after `// update dynamic wall properties`).
......
......@@ -31,7 +31,7 @@
#if EXNUMBER >= 1
#include <dumux/freeflow/compositional/zeroeqncmodel.hh>
#include <dumux/freeflow/rans/zeroeq/problem.hh>
#include <dumux/freeflow/rans/problem.hh>
#else
#include <dumux/freeflow/compositional/navierstokesncmodel.hh>
#include <dumux/freeflow/navierstokes/problem.hh>
......@@ -90,9 +90,9 @@ struct EnableGridVolumeVariablesCache<TypeTag, TTag::StokesZeroEq> { static cons
*/
template <class TypeTag>
#if EXNUMBER >= 1
class FreeFlowSubProblem : public ZeroEqProblem<TypeTag>
class FreeFlowSubProblem : public RANSProblem<TypeTag>
{
using ParentType = ZeroEqProblem<TypeTag>;
using ParentType = RANSProblem<TypeTag>;
#else
class FreeFlowSubProblem : public NavierStokesProblem<TypeTag>
{
......
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