mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: greyDiffusiveRadiationMixedFvPatchScalarField: Simplified the lookup of the fvDOM model
This commit is contained in:
committed by
Andrew Heather
parent
7f42f90901
commit
c5125c3299
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
||||||
\\/ M anipulation | Copyright (C) 2016 OpenCFD Ltd.
|
\\/ M anipulation | Copyright (C) 2016 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -145,10 +145,7 @@ updateCoeffs()
|
|||||||
const scalarField& Tp =
|
const scalarField& Tp =
|
||||||
patch().lookupPatchField<volScalarField, scalar>(TName_);
|
patch().lookupPatchField<volScalarField, scalar>(TName_);
|
||||||
|
|
||||||
const radiationModel& radiation =
|
const fvDOM& dom = db().lookupObject<fvDOM>("radiationProperties");
|
||||||
db().lookupObject<radiationModel>("radiationProperties");
|
|
||||||
|
|
||||||
const fvDOM& dom(refCast<const fvDOM>(radiation));
|
|
||||||
|
|
||||||
label rayId = -1;
|
label rayId = -1;
|
||||||
label lambdaId = -1;
|
label lambdaId = -1;
|
||||||
@ -202,7 +199,7 @@ updateCoeffs()
|
|||||||
{
|
{
|
||||||
Ir += patch().lookupPatchField<volScalarField,scalar>
|
Ir += patch().lookupPatchField<volScalarField,scalar>
|
||||||
(
|
(
|
||||||
radiation.externalRadHeatFieldName_
|
dom.externalRadHeatFieldName_
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user