mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: forces function object - made user selection clearer when running
This commit is contained in:
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2015-2018 OpenCFD Ltd.
|
\\ / A nd | Copyright (C) 2015-2019 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
| Copyright (C) 2011-2016 OpenFOAM Foundation
|
| Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||||
@ -802,12 +802,6 @@ Foam::functionObjects::forces::forces
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
Foam::functionObjects::forces::~forces()
|
|
||||||
{}
|
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||||
|
|
||||||
bool Foam::functionObjects::forces::read(const dictionary& dict)
|
bool Foam::functionObjects::forces::read(const dictionary& dict)
|
||||||
@ -840,11 +834,13 @@ bool Foam::functionObjects::forces::read(const dictionary& dict)
|
|||||||
// Reference density needed for incompressible calculations
|
// Reference density needed for incompressible calculations
|
||||||
if (rhoName_ == "rhoInf")
|
if (rhoName_ == "rhoInf")
|
||||||
{
|
{
|
||||||
dict.readEntry("rhoInf", rhoRef_);
|
rhoRef_ = dict.get<scalar>("rhoInf");
|
||||||
|
Info<< " Freestream density (rhoInf) set to " << rhoRef_ << endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reference pressure, 0 by default
|
// Reference pressure, 0 by default
|
||||||
pRef_ = dict.lookupOrDefault<scalar>("pRef", 0);
|
pRef_ = dict.lookupOrDefault<scalar>("pRef", 0);
|
||||||
|
Info<< " Reference pressure (pRef) set to " << pRef_ << endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
coordSys_.clear();
|
coordSys_.clear();
|
||||||
@ -902,6 +898,7 @@ bool Foam::functionObjects::forces::read(const dictionary& dict)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Info<< " Employing " << nBin_ << " bins" << endl;
|
||||||
binDict.readEntry("cumulative", binCumulative_);
|
binDict.readEntry("cumulative", binCumulative_);
|
||||||
binDict.readEntry("direction", binDir_);
|
binDict.readEntry("direction", binDir_);
|
||||||
binDir_.normalise();
|
binDir_.normalise();
|
||||||
|
|||||||
@ -393,7 +393,7 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
//- Destructor
|
//- Destructor
|
||||||
virtual ~forces();
|
virtual ~forces() = default;
|
||||||
|
|
||||||
|
|
||||||
// Member Functions
|
// Member Functions
|
||||||
|
|||||||
Reference in New Issue
Block a user