R: utility replaced by functionObject used with the '-postProcess' option

This commit is contained in:
Henry Weller
2016-06-09 16:28:30 +01:00
parent 4c07e6226d
commit f200a99262
9 changed files with 28 additions and 471 deletions

View File

@ -130,17 +130,6 @@ Foam::functionObjects::turbulenceFields::turbulenceFields
fvMeshFunctionObject(name, runTime, dict),
fieldSet_()
{
if
(
!obr_.foundObject<compressible::turbulenceModel>(modelName)
&& !obr_.foundObject<incompressible::turbulenceModel>(modelName)
)
{
FatalErrorInFunction
<< "Cannot find turbulenceModel in objectRegistry"
<< exit(FatalError);
}
read(dict);
}
@ -293,6 +282,12 @@ bool Foam::functionObjects::turbulenceFields::execute(const bool postProcess)
bool Foam::functionObjects::turbulenceFields::write(const bool postProcess)
{
forAllConstIter(wordHashSet, fieldSet_, iter)
{
const word fieldName = modelName + ':' + iter.key();
writeObject(fieldName);
}
return true;
}

View File

@ -43,7 +43,7 @@ Description
turbulenceFields1
{
type turbulenceFields;
libs ("libutilityFunctionObjects.so");
libs ("libfieldFunctionObjects.so");
...
fields
(