simpleFoam: Construct a turbulenceModel rather than RASModel

to support laminar simulations in the new framework.

Unfortunately this allows LES models to be instantiated although they
are not compatible with steady-state simulations.
This commit is contained in:
Henry Weller
2015-06-23 10:52:45 +01:00
parent fd457786ef
commit 9ecf5abd53

View File

@ -33,9 +33,10 @@
scalar pRefValue = 0.0;
setRefCell(p, simple.dict(), pRefCell, pRefValue);
singlePhaseTransportModel laminarTransport(U, phi);
autoPtr<incompressible::RASModel> turbulence
autoPtr<incompressible::turbulenceModel> turbulence
(
incompressible::RASModel::New(U, phi, laminarTransport)
incompressible::turbulenceModel::New(U, phi, laminarTransport)
);