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::div(phi, T)
11  ==
12  radiation->ST(rhoCpRef, T)
13  + fvOptions(T)
14  );
15 
16  TEqn.relax();
17 
18  fvOptions.constrain(TEqn);
19 
20  TEqn.solve();
21 
22  radiation->correct();
23 
24  fvOptions.correct(T);
25 
26  rhok = 1.0 - beta*(T - TRef);
27 }
dimensionedScalar Pr("Pr", dimless, laminarTransport)
fvMatrix< scalar > fvScalarMatrix
Definition: fvMatricesFwd.H:42
fv::options & fvOptions
surfaceScalarField & phi
tmp< GeometricField< Type, fvPatchField, volMesh > > div(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
Definition: fvcDiv.C:47
tmp< GeometricField< Type, fvPatchField, volMesh > > laplacian(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
Definition: fvcLaplacian.C:45
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Definition: volFieldsFwd.H:52
Info<< "Reading field U\"<< 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\"<< endl;autoPtr< compressible::turbulenceModel > turbulence(compressible::turbulenceModel::New(rho, U, phi, thermo))
Definition: createFields.H:94
const volScalarField & T
dimensionedScalar Prt("Prt", dimless, laminarTransport)
dimensionedScalar rhoCpRef("rhoCpRef", dimDensity *dimEnergy/dimMass/dimTemperature, 1.0)
dimensionedScalar beta("beta", dimless/dimTemperature, laminarTransport)
dimensionedScalar TRef("TRef", dimTemperature, laminarTransport)
fvScalarMatrix TEqn(fvm::ddt(T)+fvm::div(phi, T) - fvm::laplacian(alphaEff, T)==radiation->ST(rhoCpRef, T)+fvOptions(T))
volScalarField alphaEff("alphaEff", turbulence->nu()/Pr+alphat)
rhok
Definition: TEqn.H:27
autoPtr< radiation::radiationModel > radiation(radiation::radiationModel::New(T))