mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: wallHeatFlux FO - removed hard-coding of qr name
This commit is contained in:
@ -75,9 +75,9 @@ void Foam::functionObjects::wallHeatFlux::calcHeatFlux
|
||||
wallHeatFluxBf[patchi] = heatFluxBf[patchi];
|
||||
}
|
||||
|
||||
if (foundObject<volScalarField>("qr"))
|
||||
if (foundObject<volScalarField>(qrName_))
|
||||
{
|
||||
const volScalarField& qr = lookupObject<volScalarField>("qr");
|
||||
const volScalarField& qr = lookupObject<volScalarField>(qrName_);
|
||||
|
||||
const volScalarField::Boundary& radHeatFluxBf = qr.boundaryField();
|
||||
|
||||
@ -100,7 +100,8 @@ Foam::functionObjects::wallHeatFlux::wallHeatFlux
|
||||
:
|
||||
fvMeshFunctionObject(name, runTime, dict),
|
||||
writeFile(obr_, name, typeName, dict),
|
||||
patchSet_()
|
||||
patchSet_(),
|
||||
qrName_("qr")
|
||||
{
|
||||
volScalarField* wallHeatFluxPtr
|
||||
(
|
||||
@ -148,6 +149,8 @@ bool Foam::functionObjects::wallHeatFlux::read(const dictionary& dict)
|
||||
wordReList(dict.lookupOrDefault("patches", wordReList()))
|
||||
);
|
||||
|
||||
dict.readIfPresent("qr", qrName_);
|
||||
|
||||
Info<< type() << " " << name() << ":" << nl;
|
||||
|
||||
if (patchSet_.empty())
|
||||
|
||||
@ -51,6 +51,7 @@ Usage
|
||||
Property | Description | Required | Default value
|
||||
type | type name: wallHeatFlux | yes |
|
||||
patches | list of patches to process | no | all wall patches
|
||||
qr | name of radiative heat flux field | no | qr
|
||||
\endtable
|
||||
|
||||
See also
|
||||
@ -96,6 +97,9 @@ protected:
|
||||
//- Optional list of patches to process
|
||||
labelHashSet patchSet_;
|
||||
|
||||
//- Name of radiative heat flux name, default = qr
|
||||
word qrName_;
|
||||
|
||||
|
||||
// Protected Member Functions
|
||||
|
||||
|
||||
Reference in New Issue
Block a user