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
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -270,7 +270,7 @@ void Foam::radiation::radiativeIntensityRay::addIntensity()
|
|||||||
|
|
||||||
forAll(ILambda_, lambdaI)
|
forAll(ILambda_, lambdaI)
|
||||||
{
|
{
|
||||||
I_ += absorptionEmission_.addIntensity(lambdaI, ILambda_[lambdaI]);
|
I_ += ILambda_[lambdaI];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -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-2013 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
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
|
void Foam::radiation::absorptionEmissionModel::correct
|
||||||
(
|
(
|
||||||
volScalarField& a,
|
volScalarField& a,
|
||||||
|
|||||||
@ -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 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -170,13 +170,6 @@ public:
|
|||||||
//- Flag for whether the absorption/emission is for a grey gas
|
//- Flag for whether the absorption/emission is for a grey gas
|
||||||
virtual bool isGrey() const;
|
virtual bool isGrey() const;
|
||||||
|
|
||||||
//- Add radiative intensity for ray i
|
|
||||||
virtual tmp<volScalarField> addIntensity
|
|
||||||
(
|
|
||||||
const label rayI,
|
|
||||||
const volScalarField& ILambda
|
|
||||||
) const;
|
|
||||||
|
|
||||||
//- Correct absorption coefficients
|
//- Correct absorption coefficients
|
||||||
virtual void correct
|
virtual void correct
|
||||||
(
|
(
|
||||||
|
|||||||
@ -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-2013 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -293,16 +293,6 @@ Foam::radiation::wideBandAbsorptionEmission::ECont(const label bandI) const
|
|||||||
return E;
|
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
|
void Foam::radiation::wideBandAbsorptionEmission::correct
|
||||||
(
|
(
|
||||||
|
|||||||
@ -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-2014 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -227,14 +227,7 @@ public:
|
|||||||
return iBands_[i];
|
return iBands_[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
//- Add contribution of ILambda to the total radiative intensity in
|
//- Correct rays
|
||||||
// direction i
|
|
||||||
tmp<volScalarField> addIntensity
|
|
||||||
(
|
|
||||||
const label i,
|
|
||||||
const volScalarField& ILambda
|
|
||||||
) const;
|
|
||||||
|
|
||||||
void correct
|
void correct
|
||||||
(
|
(
|
||||||
volScalarField& a_,
|
volScalarField& a_,
|
||||||
|
|||||||
Reference in New Issue
Block a user