TEqn.H
Go to the documentation of this file.
1 {
2  alphat = turbulence->nut()/Prt;
3  alphat.correctBoundaryConditions();
4 
5  volScalarField alphaEff("alphaEff", turbulence->nu()/Pr + alphat);
6 
8  (
9  fvm::ddt(T)
10  + fvm::div(phi, T)
12  ==
13  radiation->ST(rhoCpRef, T)
14  + fvOptions(T)
15  );
16 
17  TEqn.relax();
18 
19  fvOptions.constrain(TEqn);
20 
21  TEqn.solve();
22 
23  radiation->correct();
24 
25  fvOptions.correct(T);
26 
27  rhok = 1.0 - beta*(T - TRef);
28 }
turbulence
Info<< "Reading field U\n"<< endl;volVectorField U(IOobject("U", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);volScalarField rho(IOobject("rho", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), thermo.rho());volVectorField rhoU(IOobject("rhoU", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE), rho *U);volScalarField rhoE(IOobject("rhoE", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE), rho *(e+0.5 *magSqr(U)));surfaceScalarField pos(IOobject("pos", runTime.timeName(), mesh), mesh, dimensionedScalar("pos", dimless, 1.0));surfaceScalarField neg(IOobject("neg", runTime.timeName(), mesh), mesh, dimensionedScalar("neg", dimless, -1.0));surfaceScalarField phi("phi", fvc::flux(rhoU));Info<< "Creating turbulence model\n"<< endl;autoPtr< compressible::turbulenceModel > turbulence(compressible::turbulenceModel::New(rho, U, phi, thermo))
Definition: createFields.H:94
TRef
dimensionedScalar TRef("TRef", dimTemperature, laminarTransport)
Foam::fac::div
tmp< GeometricField< Type, faPatchField, areaMesh > > div(const GeometricField< Type, faePatchField, edgeMesh > &ssf)
Definition: facDiv.C:50
TEqn
fvScalarMatrix TEqn(fvm::ddt(T)+fvm::div(phi, T) - fvm::laplacian(alphaEff, T)==radiation->ST(rhoCpRef, T)+fvOptions(T))
Foam::fvScalarMatrix
fvMatrix< scalar > fvScalarMatrix
Definition: fvMatricesFwd.H:44
fvOptions
fv::options & fvOptions
Definition: setRegionFluidFields.H:23
rhoCpRef
dimensionedScalar rhoCpRef("rhoCpRef", dimDensity *dimEnergy/dimMass/dimTemperature, 1.0)
Pr
dimensionedScalar Pr("Pr", dimless, laminarTransport)
Prt
dimensionedScalar Prt("Prt", dimless, laminarTransport)
beta
dimensionedScalar beta("beta", dimless/dimTemperature, laminarTransport)
phi
surfaceScalarField & phi
Definition: setRegionFluidFields.H:8
Foam::volScalarField
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Definition: volFieldsFwd.H:57
radiation
autoPtr< radiation::radiationModel > radiation(radiation::radiationModel::New(T))
T
const volScalarField & T
Definition: createFieldRefs.H:2
Foam::fac::ddt
tmp< GeometricField< Type, faPatchField, areaMesh > > ddt(const dimensioned< Type > dt, const faMesh &mesh)
Definition: facDdt.C:47
alphaEff
volScalarField alphaEff("alphaEff", turbulence->nu()/Pr+alphat)
rhok
rhok
Definition: TEqn.H:27
Foam::fac::laplacian
tmp< GeometricField< Type, faPatchField, areaMesh > > laplacian(const GeometricField< Type, faPatchField, areaMesh > &vf, const word &name)
Definition: facLaplacian.C:47