From 42b4269c4e590c2924c63cd49b4894a82f9fc8d0 Mon Sep 17 00:00:00 2001 From: andy Date: Wed, 7 Apr 2010 11:37:45 +0100 Subject: [PATCH] BUG: execFlowFunctionObjects utility - moved creation of singlePhaseTransportModel to within RAS/LES model construction for incompressible cases --- .../execFlowFunctionObjects/execFlowFunctionObjects.C | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/applications/utilities/postProcessing/miscellaneous/execFlowFunctionObjects/execFlowFunctionObjects.C b/applications/utilities/postProcessing/miscellaneous/execFlowFunctionObjects/execFlowFunctionObjects.C index 3fede4ab66..8985861582 100644 --- a/applications/utilities/postProcessing/miscellaneous/execFlowFunctionObjects/execFlowFunctionObjects.C +++ b/applications/utilities/postProcessing/miscellaneous/execFlowFunctionObjects/execFlowFunctionObjects.C @@ -27,6 +27,7 @@ Global Description Execute the set of functionObjects specified in the selected dictionary (which defaults to system/controlDict) for the selected set of times. + Alternative dictionaries should be placed in the system/ folder. The flow (p-U) and optionally turbulence fields are available for the function objects to operate on allowing forces and other related properties @@ -144,12 +145,12 @@ void Foam::calc(const argList& args, const Time& runTime, const fvMesh& mesh) false ); - singlePhaseTransportModel laminarTransport(U, phi); - if (RASPropertiesHeader.headerOk()) { IOdictionary RASProperties(RASPropertiesHeader); + singlePhaseTransportModel laminarTransport(U, phi); + autoPtr RASModel ( incompressible::RASModel::New @@ -165,6 +166,8 @@ void Foam::calc(const argList& args, const Time& runTime, const fvMesh& mesh) { IOdictionary LESProperties(LESPropertiesHeader); + singlePhaseTransportModel laminarTransport(U, phi); + autoPtr sgsModel ( incompressible::LESModel::New(U, phi, laminarTransport)