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 \\ / 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 | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -159,10 +159,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;