mirror of
https://github.com/ParticulateFlow/CFDEMcoupling-PFM.git
synced 2025-12-08 06:37:44 +00:00
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.
13 lines
362 B
C
13 lines
362 B
C
/* ----------------------------------------------
|
|
Write averaged particle volume fraction
|
|
---------------------------------------------- */
|
|
|
|
// essential information
|
|
Info << "Total mass :";
|
|
Info << tab << sum(C*rhoCarrier*alphaCarrier*mesh.V());
|
|
Info << endl;
|
|
|
|
Info << "Total Carrier mass :";
|
|
Info << tab << sum(rhoCarrier*alphaCarrier*mesh.V());
|
|
Info << endl;
|