TEqn.H
Go to the documentation of this file.
1 {
2  fvScalarMatrix TEqn
3  (
5  - fvm::Sp(contErr, T)
6  - fvm::laplacian(turbulence.alphaEff(), T)
7  + (
8  (
10  + fvc::ddt(rho, K) + fvc::div(rhoPhi, K)
11  )()() - contErr*K
12  )
13  *(
14  alpha1/mixture.thermo1().Cv()
15  + alpha2/mixture.thermo2().Cv()
16  )()()
17  ==
18  fvOptions(rho, T)
19  + pos(Srho)
20  *(
21  surfaceFilm.Sh()()/mixture.thermo1().Cp()()
22  + surfaceFilm.Tref*Srho
23  )
24  );
25 
26  TEqn.relax();
27 
28  fvOptions.constrain(TEqn);
29 
30  TEqn.solve();
31 
32  fvOptions.correct(T);
33 
34  mixture.correctThermo();
35  mixture.correct();
36 }
fvMatrix< scalar > fvScalarMatrix
Definition: fvMatricesFwd.H:42
fv::options & fvOptions
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
CGAL::Exact_predicates_exact_constructions_kernel K
alpha2
Definition: alphaEqn.H:115
phi
Definition: pEqn.H:104
tmp< GeometricField< Type, fvPatchField, volMesh > > ddt(const dimensioned< Type > dt, const fvMesh &mesh)
Definition: fvcDdt.C:45
volScalarField::Internal contErr((fvc::ddt(rho)+fvc::div(rhoPhi) -(fvOptions(alpha1, mixture.thermo1().rho())&rho1) -(fvOptions(alpha2, mixture.thermo2().rho())&rho2))())
dimensionedScalar pos(const dimensionedScalar &ds)
volScalarField & alpha1(mixture.alpha1())
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(dimless, 1.0));surfaceScalarField neg(IOobject("neg", runTime.timeName(), mesh), mesh, dimensionedScalar(dimless, -1.0));surfaceScalarField phi("phi", fvc::flux(rhoU));Info<< "Creating turbulence model\"<< endl;autoPtr< compressible::momentumTransportModel > turbulence(compressible::momentumTransportModel::New(rho, U, phi, thermo))
Definition: createFields.H:94
regionModels::surfaceFilmModel & surfaceFilm
const volScalarField & T
tmp< surfaceScalarField > absolute(const tmp< surfaceScalarField > &tphi, const volVectorField &U)
Return the given relative flux in absolute form.
Definition: fvcMeshPhi.C:188
U
Definition: pEqn.H:72
rhoPhi
Definition: rhoEqn.H:10
volScalarField & p
phaseChangeTwoPhaseMixture & mixture
Definition: createFields.H:38
zeroField Sp
Definition: alphaSuSp.H:2