mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
DOC: elaborate the usage of function objects
ENH: update libs of etc/caseDicts/postProcess items
ENH: ensure destructor=default
ENH: ensure constness
ENH: ensure no 'copy construct' and 'no copy assignment' exist
TUT: add examples of function objects with full set
of settings into a TUT if unavailable
TUT: update pisoFoam/RAS/cavity tutorial in terms of usage
This commit is contained in:
committed by
Andrew Heather
parent
b549116588
commit
a5c6516e23
@ -52,28 +52,23 @@ Foam::functionObjects::FUNCTIONOBJECT::FUNCTIONOBJECT
|
||||
)
|
||||
:
|
||||
fvMeshFunctionObject(name, runTime, dict),
|
||||
boolData_(dict.getOrDefault<bool>("boolData"), true),
|
||||
labelData_(dict.get<label>("labelData")),
|
||||
wordData_(dict.getOrDefault<word>("wordData", "defaultWord")),
|
||||
scalarData_(dict.get<scalar>("scalarData")),
|
||||
labelData_(dict.get<label>("labelData"))
|
||||
scalarData_(dict.getOrDefault<scalar>("scalarData", 1.0))
|
||||
{
|
||||
read(dict);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
||||
|
||||
Foam::functionObjects::FUNCTIONOBJECT::~FUNCTIONOBJECT()
|
||||
{}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
bool Foam::functionObjects::FUNCTIONOBJECT::read(const dictionary& dict)
|
||||
{
|
||||
dict.readIfPresent("wordData", wordData_);
|
||||
|
||||
dict.readEntry("scalarData", scalarData_);
|
||||
dict.readEntry("boolData", boolData_);
|
||||
dict.readEntry("labelData", labelData_);
|
||||
dict.readIfPresent("wordData", wordData_);
|
||||
dict.readEntry("scalarData", scalarData_);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user