functionObjects::fieldExpression: Rationalised setting the field and result names

This commit is contained in:
Henry Weller
2019-11-29 11:22:01 +00:00
parent ffb65bcee5
commit 8a6800abfe
22 changed files with 58 additions and 141 deletions

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2016-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2016-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -75,10 +75,8 @@ Foam::functionObjects::enstrophy::enstrophy
const dictionary& dict
)
:
fieldExpression(name, runTime, dict, "U")
{
setResultName(typeName, "U");
}
fieldExpression(name, runTime, dict, typeName, "U")
{}
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //