STYLE: greyDiffusiveRadiationMixedFvPatchScalarField: Simplified the lookup of the fvDOM model

This commit is contained in:
Henry Weller
2018-02-11 21:02:27 +00:00
committed by Andrew Heather
parent 7f42f90901
commit c5125c3299

View File

@ -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_
); );
} }