mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: Correct addIntensity function for radiativeIntensityRay for grey and wide band absorption model
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -270,7 +270,7 @@ void Foam::radiation::radiativeIntensityRay::addIntensity()
|
||||
|
||||
forAll(ILambda_, lambdaI)
|
||||
{
|
||||
I_ += absorptionEmission_.addIntensity(lambdaI, ILambda_[lambdaI]);
|
||||
I_ += ILambda_[lambdaI];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -235,17 +235,6 @@ bool Foam::radiation::absorptionEmissionModel::isGrey() const
|
||||
}
|
||||
|
||||
|
||||
Foam::tmp<Foam::volScalarField>
|
||||
Foam::radiation::absorptionEmissionModel::addIntensity
|
||||
(
|
||||
const label rayI,
|
||||
const volScalarField& ILambda
|
||||
) const
|
||||
{
|
||||
return ILambda;
|
||||
}
|
||||
|
||||
|
||||
void Foam::radiation::absorptionEmissionModel::correct
|
||||
(
|
||||
volScalarField& a,
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -170,13 +170,6 @@ public:
|
||||
//- Flag for whether the absorption/emission is for a grey gas
|
||||
virtual bool isGrey() const;
|
||||
|
||||
//- Add radiative intensity for ray i
|
||||
virtual tmp<volScalarField> addIntensity
|
||||
(
|
||||
const label rayI,
|
||||
const volScalarField& ILambda
|
||||
) const;
|
||||
|
||||
//- Correct absorption coefficients
|
||||
virtual void correct
|
||||
(
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -293,16 +293,6 @@ Foam::radiation::wideBandAbsorptionEmission::ECont(const label bandI) const
|
||||
return E;
|
||||
}
|
||||
|
||||
Foam::tmp<Foam::volScalarField>
|
||||
Foam::radiation::wideBandAbsorptionEmission::addIntensity
|
||||
(
|
||||
const label i,
|
||||
const volScalarField& ILambda
|
||||
) const
|
||||
{
|
||||
return ILambda*(iBands_[i][1] - iBands_[i][0])/totalWaveLength_;
|
||||
}
|
||||
|
||||
|
||||
void Foam::radiation::wideBandAbsorptionEmission::correct
|
||||
(
|
||||
|
||||
@ -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-2014 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -227,14 +227,7 @@ public:
|
||||
return iBands_[i];
|
||||
}
|
||||
|
||||
//- Add contribution of ILambda to the total radiative intensity in
|
||||
// direction i
|
||||
tmp<volScalarField> addIntensity
|
||||
(
|
||||
const label i,
|
||||
const volScalarField& ILambda
|
||||
) const;
|
||||
|
||||
//- Correct rays
|
||||
void correct
|
||||
(
|
||||
volScalarField& a_,
|
||||
|
||||
Reference in New Issue
Block a user