functionObjects::fieldExpression: Rationalised setting the field and result names
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2013-2018 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2013-2019 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -60,7 +60,7 @@ Foam::functionObjects::blendingFactor::blendingFactor
|
||||
const dictionary& dict
|
||||
)
|
||||
:
|
||||
fieldExpression(name, runTime, dict)
|
||||
fieldExpression(name, runTime, dict, typeName)
|
||||
{
|
||||
read(dict);
|
||||
}
|
||||
@ -76,8 +76,6 @@ Foam::functionObjects::blendingFactor::~blendingFactor()
|
||||
|
||||
bool Foam::functionObjects::blendingFactor::read(const dictionary& dict)
|
||||
{
|
||||
fieldExpression::read(dict);
|
||||
|
||||
phiName_ = dict.lookupOrDefault<word>("phi", "phi");
|
||||
|
||||
resultName_ = "blendingFactor:" + fieldName_;
|
||||
|
||||
Reference in New Issue
Block a user