This repository has been archived on 2023-11-20. You can view files and clone it, but cannot push or open issues or pull requests.
foam-extend4.1-coherent-io/applications/utilities/postProcessing/wall/buoyantWallHeatFlux/createFields.H
Vuko Vukcevic b4a7a0e33f buoyantWallHeatFlux utility
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.
2018-06-14 08:42:23 +02:00

44 lines
766 B
C++

// Read velocity field for turbulence
volVectorField U
(
IOobject
(
"U",
runTime.timeName(),
mesh,
IOobject::MUST_READ,
IOobject::AUTO_WRITE
),
mesh
);
// Read temperature field
volScalarField T
(
IOobject
(
"T",
runTime.timeName(),
mesh,
IOobject::MUST_READ,
IOobject::AUTO_WRITE
),
mesh
);
// Create the flux for turbulence
#include "createPhi.H"
// Read transport properties and all necessary coefficients
#include "readTransportProperties.H"
// Create generic turbulence model (RAS/LES)
autoPtr<incompressible::turbulenceModel> turbulence
(
incompressible::turbulenceModel::New
(
U,
phi,
laminarTransport
)
);