From 9ecf5abd53d77a2f1f7b357440b894a6aaa173de Mon Sep 17 00:00:00 2001 From: Henry Weller 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 909b20a258..18ef4d704a 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 turbulence + autoPtr turbulence ( - incompressible::RASModel::New(U, phi, laminarTransport) + incompressible::turbulenceModel::New(U, phi, laminarTransport) );