TEqn.H
Go to the documentation of this file.
1 {
2  tmp<volScalarField> tcp(thermo->Cp());
3  const volScalarField& cp = tcp();
4 
5  const dimensionedScalar Cp1 = thermo->Cp1();
6  const dimensionedScalar Cp2 = thermo->Cp2();
7 
8  rhoCp = rho*cp;
9 
10  kappaEff = thermo->kappa() + rho*cp*turbulence->nut()/Prt;
11 
13  (
14  "rhoCpPhi",
15  rhoPhi*(Cp1 - Cp2) + phi*rho2*Cp2
16  );
17 
19  (
20  fvm::ddt(rhoCp, T)
21  + fvm::div(rhoCpPhi, T)
24  + mixture->TSource()
25  );
26 
27 
28  TEqn.relax();
29  TEqn.solve();
30 
31  Info<< "min/max(T) = " << min(T).value() << ", "
32  << max(T).value() <<endl;
33 }
fvMatrix< scalar > fvScalarMatrix
Definition: fvMatricesFwd.H:37
const volScalarField & cp
Definition: TEqn.H:3
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
Definition: hashSets.C:40
tmp< GeometricField< Type, faPatchField, areaMesh > > div(const GeometricField< Type, faePatchField, edgeMesh > &ssf)
Definition: facDiv.C:43
Info<< "Creating temperaturePhaseChangeTwoPhaseMixture\"<< endl;autoPtr< temperaturePhaseChangeTwoPhaseMixture > mixture
Definition: createFields.H:39
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:531
tmp< GeometricField< Type, faPatchField, areaMesh > > ddt(const dimensioned< Type > dt, const faMesh &mesh)
Definition: facDdt.C:40
kappaEff
Definition: TEqn.H:10
const surfaceScalarField rhoCpPhi(fvc::interpolate(fluid.Cp()) *rhoPhi)
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Definition: volFieldsFwd.H:81
psiReactionThermo & thermo
Definition: createFields.H:28
tmp< GeometricField< Type, faPatchField, areaMesh > > laplacian(const GeometricField< Type, faPatchField, areaMesh > &vf, const word &name)
Definition: facLaplacian.C:40
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
Definition: hashSets.C:26
rhoCp
Definition: TEqn.H:3
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
volScalarField & rho2
const volScalarField & T
dimensionedScalar Prt("Prt", dimless, laminarTransport)
const dimensionedScalar Cp1
Definition: TEqn.H:5
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
tmp< volScalarField > tcp
rhoPhi
Definition: rhoEqn.H:10
messageStream Info
Information stream (stdout output on master, null elsewhere)
fvScalarMatrix TEqn(fvm::ddt(T)+fvm::div(phi, T) - fvm::laplacian(alphaEff, T)==radiation->ST(rhoCpRef, T)+fvOptions(T))
const dimensionedScalar Cp2
Definition: TEqn.H:6
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
zeroField Sp
Definition: alphaSuSp.H:2