ENH: Updated dQ handling - TEMPORARY MEASURE - NEEDS REVISITING
This commit is contained in:
parent
94704b466e
commit
939a617414
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -312,7 +312,30 @@ Foam::radiation::greyMeanAbsorptionEmission::ECont(const label bandI) const
|
||||
{
|
||||
const volScalarField& dQ =
|
||||
mesh_.lookupObject<volScalarField>("dQ");
|
||||
E().internalField() = EhrrCoeff_*dQ;
|
||||
|
||||
if (dQ.dimensions() == dimEnergy/dimTime)
|
||||
{
|
||||
E().internalField() = EhrrCoeff_*dQ/mesh_.V();
|
||||
}
|
||||
else if (dQ.dimensions() == dimEnergy/dimTime/dimVolume)
|
||||
{
|
||||
E().internalField() = EhrrCoeff_*dQ;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (debug)
|
||||
{
|
||||
WarningIn
|
||||
(
|
||||
"tmp<volScalarField>"
|
||||
"radiation::greyMeanAbsorptionEmission::ECont"
|
||||
"("
|
||||
"const label"
|
||||
") const"
|
||||
)
|
||||
<< "Incompatible dimensions for dQ field" << endl;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return E;
|
||||
|
Loading…
Reference in New Issue
Block a user