mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: Changinf scalarList for scalarField
This commit is contained in:
@ -175,7 +175,9 @@ void Foam::MarshakRadiationFvPatchScalarField::updateCoeffs()
|
|||||||
const scalarField& gamma =
|
const scalarField& gamma =
|
||||||
patch().lookupPatchField<volScalarField, scalar>("gammaRad");
|
patch().lookupPatchField<volScalarField, scalar>("gammaRad");
|
||||||
|
|
||||||
const scalarField Ep(emissivity()/(2.0*(2.0 - emissivity())));
|
const scalarField temissivity = emissivity();
|
||||||
|
|
||||||
|
const scalarField Ep(temissivity/(2.0*(2.0 - temissivity)));
|
||||||
|
|
||||||
// Set value fraction
|
// Set value fraction
|
||||||
valueFraction() = 1.0/(1.0 + gamma*patch().deltaCoeffs()/Ep);
|
valueFraction() = 1.0/(1.0 + gamma*patch().deltaCoeffs()/Ep);
|
||||||
|
|||||||
@ -176,7 +176,9 @@ void Foam::MarshakRadiationFixedTMixedFvPatchScalarField::updateCoeffs()
|
|||||||
const scalarField& gamma =
|
const scalarField& gamma =
|
||||||
patch().lookupPatchField<volScalarField, scalar>("gammaRad");
|
patch().lookupPatchField<volScalarField, scalar>("gammaRad");
|
||||||
|
|
||||||
const scalarField Ep(emissivity()/(2.0*(scalar(2.0) - emissivity())));
|
const scalarField temissivity = emissivity();
|
||||||
|
|
||||||
|
const scalarField Ep(temissivity/(2.0*(scalar(2.0) - temissivity)));
|
||||||
|
|
||||||
// Set value fraction
|
// Set value fraction
|
||||||
valueFraction() = 1.0/(1.0 + gamma*patch().deltaCoeffs()/Ep);
|
valueFraction() = 1.0/(1.0 + gamma*patch().deltaCoeffs()/Ep);
|
||||||
|
|||||||
@ -194,7 +194,7 @@ updateCoeffs()
|
|||||||
|
|
||||||
ray.Qr().boundaryField()[patchI] += Iw*(n & ray.dAve());
|
ray.Qr().boundaryField()[patchI] += Iw*(n & ray.dAve());
|
||||||
|
|
||||||
scalarList temissivity = emissivity();
|
scalarField temissivity = emissivity();
|
||||||
|
|
||||||
forAll(Iw, faceI)
|
forAll(Iw, faceI)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -194,7 +194,7 @@ updateCoeffs()
|
|||||||
dom.blackBody().bLambda(lambdaId).boundaryField()[patchI]
|
dom.blackBody().bLambda(lambdaId).boundaryField()[patchI]
|
||||||
);
|
);
|
||||||
|
|
||||||
scalarList temissivity = emissivity();
|
scalarField temissivity = emissivity();
|
||||||
|
|
||||||
forAll(Iw, faceI)
|
forAll(Iw, faceI)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user