greyDiffusiveRadiationMixedFvPatchScalarField: Simplified the lookup of the fvDOM model

This commit is contained in:
Henry Weller
2018-02-11 21:02:27 +00:00
parent b01118c806
commit eba00df061

View File

@ -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 |
-------------------------------------------------------------------------------
License
@ -159,10 +159,7 @@ updateCoeffs()
const scalarField& Tp =
patch().lookupPatchField<volScalarField, scalar>(TName_);
const radiationModel& radiation =
db().lookupObject<radiationModel>("radiationProperties");
const fvDOM& dom(refCast<const fvDOM>(radiation));
const fvDOM& dom = db().lookupObject<fvDOM>("radiationProperties");
label rayId = -1;
label lambdaId = -1;