From e332c4a3358dcaeafd96a2c2567f917b137186e7 Mon Sep 17 00:00:00 2001 From: Henry Weller <http://cfd.direct> Date: Tue, 23 Jun 2015 10:52:45 +0100 Subject: [PATCH] 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. --- .../solvers/incompressible/simpleFoam/createFields.H | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/applications/solvers/incompressible/simpleFoam/createFields.H b/applications/solvers/incompressible/simpleFoam/createFields.H index 909b20a258a..18ef4d704a5 100644 --- a/applications/solvers/incompressible/simpleFoam/createFields.H +++ b/applications/solvers/incompressible/simpleFoam/createFields.H @@ -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) ); -- GitLab