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
|
turbulenceFields1
|
||||||
{
|
{
|
||||||
type turbulenceFields;
|
type turbulenceFields;
|
||||||
functionObjectLibs ("libfieldFunctionObjects.so");
|
functionObjectLibs ("libutilityFunctionObjects.so");
|
||||||
enabled true;
|
enabled true;
|
||||||
outputControl timeStep;
|
outputControl timeStep;
|
||||||
outputInterval 1;
|
outputInterval 1;
|
||||||
|
|||||||
@ -143,7 +143,7 @@ void Foam::turbulenceFields::read(const dictionary& dict)
|
|||||||
Info<< "storing fields:" << nl;
|
Info<< "storing fields:" << nl;
|
||||||
forAllConstIter(wordHashSet, fieldSet_, iter)
|
forAllConstIter(wordHashSet, fieldSet_, iter)
|
||||||
{
|
{
|
||||||
Info<< " " << modelName << '.' << iter.key() << nl;
|
Info<< " " << modelName << ':' << iter.key() << nl;
|
||||||
}
|
}
|
||||||
Info<< endl;
|
Info<< endl;
|
||||||
}
|
}
|
||||||
@ -151,8 +151,6 @@ void Foam::turbulenceFields::read(const dictionary& dict)
|
|||||||
{
|
{
|
||||||
Info<< "no fields requested to be stored" << nl << endl;
|
Info<< "no fields requested to be stored" << nl << endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
execute();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -32,16 +32,16 @@ Description
|
|||||||
further manipulation.
|
further manipulation.
|
||||||
|
|
||||||
Fields are stored as copies of the original, with the prefix
|
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:
|
Example of function object specification:
|
||||||
\verbatim
|
\verbatim
|
||||||
turbulenceFields1
|
turbulenceFields1
|
||||||
{
|
{
|
||||||
type turbulenceFields;
|
type turbulenceFields;
|
||||||
functionObjectLibs ("libfieldFunctionObjects.so");
|
functionObjectLibs ("libutilityFunctionObjects.so");
|
||||||
...
|
...
|
||||||
fields
|
fields
|
||||||
(
|
(
|
||||||
|
|||||||
@ -36,7 +36,7 @@ void Foam::turbulenceFields::processField
|
|||||||
{
|
{
|
||||||
typedef GeometricField<Type, fvPatchField, volMesh> FieldType;
|
typedef GeometricField<Type, fvPatchField, volMesh> FieldType;
|
||||||
|
|
||||||
const word scopedName = modelName + '.' + fieldName;
|
const word scopedName = modelName + ':' + fieldName;
|
||||||
|
|
||||||
if (obr_.foundObject<FieldType>(scopedName))
|
if (obr_.foundObject<FieldType>(scopedName))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user