mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
greyDiffusiveRadiationMixedFvPatchScalarField: Simplified the lookup of the fvDOM model
This commit is contained in:
@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user