ENH: Updated function object reading and output messages

This commit is contained in:
Andrew Heather
2019-06-18 13:55:16 +01:00
parent 146948ceaf
commit e184e1e72c
3 changed files with 11 additions and 9 deletions

View File

@ -264,9 +264,6 @@ bool Foam::functionObjects::wallBoundedStreamLine::read(const dictionary& dict)
{ {
if (streamLineBase::read(dict)) if (streamLineBase::read(dict))
{ {
Info<< type() << " " << name() << ":" << nl;
// Make sure that the mesh is trackable // Make sure that the mesh is trackable
if (debug) if (debug)
{ {

View File

@ -232,10 +232,11 @@ Foam::functionObjects::forceCoeffs::forceCoeffs
( (
const word& name, const word& name,
const Time& runTime, const Time& runTime,
const dictionary& dict const dictionary& dict,
const bool readFields
) )
: :
forces(name, runTime, dict), forces(name, runTime, dict, false),
magUInf_(Zero), magUInf_(Zero),
lRef_(Zero), lRef_(Zero),
Aref_(Zero), Aref_(Zero),
@ -246,11 +247,14 @@ Foam::functionObjects::forceCoeffs::forceCoeffs
CmRollBinFilePtr_(), CmRollBinFilePtr_(),
CmPitchBinFilePtr_(), CmPitchBinFilePtr_(),
CmYawBinFilePtr_() CmYawBinFilePtr_()
{
if (readFields)
{ {
read(dict); read(dict);
setCoordinateSystem(dict, "liftDir", "dragDir"); setCoordinateSystem(dict, "liftDir", "dragDir");
Info<< endl; Info<< endl;
} }
}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //

View File

@ -268,7 +268,8 @@ public:
( (
const word& name, const word& name,
const Time& runTime, const Time& runTime,
const dictionary& const dictionary&,
const bool readFields = true
); );