A base class for recurrence-based turbulence models was created. This class holds a reference to the recurrenceModel in use. Thus, turbulent fields can be updated from the data base. The recurrence-based turbulence models are essentially re-implementations of the respective standard turbulence models. In addition to being derived from their respective base class, as mandated by OpenFOAM, each recurrence-based turbulence model is derived from the class recurrenceTurbulenceModel. This allows for making use of polymorphism on the recurrence-part of the turbulence model, as after construction, the solver needs to pass the reference to the recurrenceModel to the recurrence-based turbulence model.
10 lines
335 B
C
10 lines
335 B
C
// update flow fields
|
|
recurrenceBase.recM().exportVolScalarField("alpha."+carrierPhaseName,alpha2);
|
|
recurrenceBase.recM().exportVolScalarField("alpha."+dispersePhaseName,alpha1);
|
|
|
|
recurrenceBase.recM().exportVolVectorField("U."+carrierPhaseName,U2);
|
|
|
|
// update turbulence models
|
|
phase1.correctTurbulence();
|
|
phase2.correctTurbulence();
|