b4a7a0e33f
Variant of wallHeatFlux utility for incompressible flow with Boussinesq's buoyancy assumption (e.g. buoyantBoussinesqSimpleFoam). Reports total wall heat flux on each wall and also writes buoyantWallHeatFlux as volScalarField for easy visualisation.
13 lines
437 B
C++
13 lines
437 B
C++
singlePhaseTransportModel laminarTransport(U, phi);
|
|
|
|
// Laminar Prandtl number
|
|
const dimensionedScalar Pr(laminarTransport.lookup("Pr"));
|
|
|
|
// Turbulent Prandtl number
|
|
const dimensionedScalar Prt(laminarTransport.lookup("Prt"));
|
|
|
|
// Reference density
|
|
const dimensionedScalar rhoRef(laminarTransport.lookup("rhoRef"));
|
|
|
|
// Specific heat capacity
|
|
const dimensionedScalar c(laminarTransport.lookup("c"));
|