From c5125c32993feeac24f1dae032c3650aef4dba2e Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Sun, 11 Feb 2018 21:02:27 +0000 Subject: [PATCH] STYLE: greyDiffusiveRadiationMixedFvPatchScalarField: Simplified the lookup of the fvDOM model --- .../greyDiffusiveRadiationMixedFvPatchScalarField.C | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/thermophysicalModels/radiation/derivedFvPatchFields/greyDiffusiveRadiation/greyDiffusiveRadiationMixedFvPatchScalarField.C b/src/thermophysicalModels/radiation/derivedFvPatchFields/greyDiffusiveRadiation/greyDiffusiveRadiationMixedFvPatchScalarField.C index d475f96c6b..98906aac4b 100644 --- a/src/thermophysicalModels/radiation/derivedFvPatchFields/greyDiffusiveRadiation/greyDiffusiveRadiationMixedFvPatchScalarField.C +++ b/src/thermophysicalModels/radiation/derivedFvPatchFields/greyDiffusiveRadiation/greyDiffusiveRadiationMixedFvPatchScalarField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / 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. ------------------------------------------------------------------------------- License @@ -145,10 +145,7 @@ updateCoeffs() const scalarField& Tp = patch().lookupPatchField(TName_); - const radiationModel& radiation = - db().lookupObject("radiationProperties"); - - const fvDOM& dom(refCast(radiation)); + const fvDOM& dom = db().lookupObject("radiationProperties"); label rayId = -1; label lambdaId = -1; @@ -202,7 +199,7 @@ updateCoeffs() { Ir += patch().lookupPatchField ( - radiation.externalRadHeatFieldName_ + dom.externalRadHeatFieldName_ ); }