BUG: turbulenceFields function object - removed execute from read

ENH: turbulenceFields function object - Updated usage documentation
This commit is contained in:
andy
2014-08-06 10:47:59 +01:00
committed by Andrew Heather
parent 5b215dce4c
commit 06f1b49d25
4 changed files with 6 additions and 8 deletions

View File

@ -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;

View File

@ -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();
} }
} }

View File

@ -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
( (

View File

@ -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))
{ {