From 6d35aeb2e88248e571060ab0870b5fd1b1f3f846 Mon Sep 17 00:00:00 2001 From: Andrew Heather <> Date: Tue, 18 Jun 2019 13:55:16 +0100 Subject: [PATCH] ENH: Updated function object reading and output messages --- .../wallBoundedStreamLine/wallBoundedStreamLine.C | 3 --- .../forces/forceCoeffs/forceCoeffs.C | 14 +++++++++----- .../forces/forceCoeffs/forceCoeffs.H | 3 ++- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/src/functionObjects/field/wallBoundedStreamLine/wallBoundedStreamLine.C b/src/functionObjects/field/wallBoundedStreamLine/wallBoundedStreamLine.C index 53429780e5f..f4e61cbdb4f 100644 --- a/src/functionObjects/field/wallBoundedStreamLine/wallBoundedStreamLine.C +++ b/src/functionObjects/field/wallBoundedStreamLine/wallBoundedStreamLine.C @@ -264,9 +264,6 @@ bool Foam::functionObjects::wallBoundedStreamLine::read(const dictionary& dict) { if (streamLineBase::read(dict)) { - Info<< type() << " " << name() << ":" << nl; - - // Make sure that the mesh is trackable if (debug) { diff --git a/src/functionObjects/forces/forceCoeffs/forceCoeffs.C b/src/functionObjects/forces/forceCoeffs/forceCoeffs.C index 962a9c233ec..17f47f766ce 100644 --- a/src/functionObjects/forces/forceCoeffs/forceCoeffs.C +++ b/src/functionObjects/forces/forceCoeffs/forceCoeffs.C @@ -232,10 +232,11 @@ Foam::functionObjects::forceCoeffs::forceCoeffs ( const word& name, const Time& runTime, - const dictionary& dict + const dictionary& dict, + const bool readFields ) : - forces(name, runTime, dict), + forces(name, runTime, dict, false), magUInf_(Zero), lRef_(Zero), Aref_(Zero), @@ -247,9 +248,12 @@ Foam::functionObjects::forceCoeffs::forceCoeffs CmPitchBinFilePtr_(), CmYawBinFilePtr_() { - read(dict); - setCoordinateSystem(dict, "liftDir", "dragDir"); - Info<< endl; + if (readFields) + { + read(dict); + setCoordinateSystem(dict, "liftDir", "dragDir"); + Info<< endl; + } } diff --git a/src/functionObjects/forces/forceCoeffs/forceCoeffs.H b/src/functionObjects/forces/forceCoeffs/forceCoeffs.H index aaa183bf797..34cc95c35e9 100644 --- a/src/functionObjects/forces/forceCoeffs/forceCoeffs.H +++ b/src/functionObjects/forces/forceCoeffs/forceCoeffs.H @@ -268,7 +268,8 @@ public: ( const word& name, const Time& runTime, - const dictionary& + const dictionary&, + const bool readFields = true ); -- GitLab