sync P1 model with vanilla
This commit is contained in:
parent
0679838281
commit
9e064e038e
2 changed files with 23 additions and 0 deletions
|
@ -68,6 +68,19 @@ Foam::radiation::P1::P1(const volScalarField& T)
|
||||||
),
|
),
|
||||||
mesh_
|
mesh_
|
||||||
),
|
),
|
||||||
|
Qr_
|
||||||
|
(
|
||||||
|
IOobject
|
||||||
|
(
|
||||||
|
"Qr",
|
||||||
|
mesh_.time().timeName(),
|
||||||
|
mesh_,
|
||||||
|
IOobject::NO_READ,
|
||||||
|
IOobject::AUTO_WRITE
|
||||||
|
),
|
||||||
|
mesh_,
|
||||||
|
dimensionedScalar("Qr", dimMass/pow3(dimTime), 0.0)
|
||||||
|
),
|
||||||
a_
|
a_
|
||||||
(
|
(
|
||||||
IOobject
|
IOobject
|
||||||
|
@ -162,6 +175,13 @@ void Foam::radiation::P1::calculate()
|
||||||
==
|
==
|
||||||
- 4.0*(e_*radiation::sigmaSB*pow4(T_) + E_)
|
- 4.0*(e_*radiation::sigmaSB*pow4(T_) + E_)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// Calculate radiative heat flux on boundaries.
|
||||||
|
forAll(mesh_.boundaryMesh(), patchI)
|
||||||
|
{
|
||||||
|
Qr_.boundaryField()[patchI] =
|
||||||
|
-gamma.boundaryField()[patchI]*G_.boundaryField()[patchI].snGrad();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -64,6 +64,9 @@ class P1
|
||||||
//- Incident radiation / [W/m2]
|
//- Incident radiation / [W/m2]
|
||||||
volScalarField G_;
|
volScalarField G_;
|
||||||
|
|
||||||
|
//- Total radiative heat flux [W/m2]
|
||||||
|
volScalarField Qr_;
|
||||||
|
|
||||||
//- Absorption coefficient
|
//- Absorption coefficient
|
||||||
volScalarField a_;
|
volScalarField a_;
|
||||||
|
|
||||||
|
|
Reference in a new issue