mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: turbulenceFields function object - removed execute from read
ENH: turbulenceFields function object - Updated usage documentation
This commit is contained in:
@ -19,7 +19,7 @@ functions
|
||||
turbulenceFields1
|
||||
{
|
||||
type turbulenceFields;
|
||||
functionObjectLibs ("libfieldFunctionObjects.so");
|
||||
functionObjectLibs ("libutilityFunctionObjects.so");
|
||||
enabled true;
|
||||
outputControl timeStep;
|
||||
outputInterval 1;
|
||||
|
||||
@ -143,7 +143,7 @@ void Foam::turbulenceFields::read(const dictionary& dict)
|
||||
Info<< "storing fields:" << nl;
|
||||
forAllConstIter(wordHashSet, fieldSet_, iter)
|
||||
{
|
||||
Info<< " " << modelName << '.' << iter.key() << nl;
|
||||
Info<< " " << modelName << ':' << iter.key() << nl;
|
||||
}
|
||||
Info<< endl;
|
||||
}
|
||||
@ -151,8 +151,6 @@ void Foam::turbulenceFields::read(const dictionary& dict)
|
||||
{
|
||||
Info<< "no fields requested to be stored" << nl << endl;
|
||||
}
|
||||
|
||||
execute();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -32,16 +32,16 @@ Description
|
||||
further manipulation.
|
||||
|
||||
Fields are stored as copies of the original, with the prefix
|
||||
"tubulenceModel::", e.g.
|
||||
"tubulenceModel:", e.g.
|
||||
|
||||
turbulenceModel::R
|
||||
turbulenceModel:R
|
||||
|
||||
Example of function object specification:
|
||||
\verbatim
|
||||
turbulenceFields1
|
||||
{
|
||||
type turbulenceFields;
|
||||
functionObjectLibs ("libfieldFunctionObjects.so");
|
||||
functionObjectLibs ("libutilityFunctionObjects.so");
|
||||
...
|
||||
fields
|
||||
(
|
||||
|
||||
@ -36,7 +36,7 @@ void Foam::turbulenceFields::processField
|
||||
{
|
||||
typedef GeometricField<Type, fvPatchField, volMesh> FieldType;
|
||||
|
||||
const word scopedName = modelName + '.' + fieldName;
|
||||
const word scopedName = modelName + ':' + fieldName;
|
||||
|
||||
if (obr_.foundObject<FieldType>(scopedName))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user