mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Updated dQ handling - TEMPORARY MEASURE - NEEDS REVISITING
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-2012 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -312,8 +312,31 @@ Foam::radiation::greyMeanAbsorptionEmission::ECont(const label bandI) const
|
|||||||
{
|
{
|
||||||
const volScalarField& dQ =
|
const volScalarField& dQ =
|
||||||
mesh_.lookupObject<volScalarField>("dQ");
|
mesh_.lookupObject<volScalarField>("dQ");
|
||||||
|
|
||||||
|
if (dQ.dimensions() == dimEnergy/dimTime)
|
||||||
|
{
|
||||||
|
E().internalField() = EhrrCoeff_*dQ/mesh_.V();
|
||||||
|
}
|
||||||
|
else if (dQ.dimensions() == dimEnergy/dimTime/dimVolume)
|
||||||
|
{
|
||||||
E().internalField() = EhrrCoeff_*dQ;
|
E().internalField() = EhrrCoeff_*dQ;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (debug)
|
||||||
|
{
|
||||||
|
WarningIn
|
||||||
|
(
|
||||||
|
"tmp<volScalarField>"
|
||||||
|
"radiation::greyMeanAbsorptionEmission::ECont"
|
||||||
|
"("
|
||||||
|
"const label"
|
||||||
|
") const"
|
||||||
|
)
|
||||||
|
<< "Incompatible dimensions for dQ field" << endl;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return E;
|
return E;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user