UEqn.H
Go to the documentation of this file.
2  (
4  - fvm::Sp(contErr, U)
5  + MRF.DDt(rho, U)
6  + turbulence.divDevTau(U)
7  ==
8  fvModels.source(rho, U)
9  );
10 
11  UEqn.relax();
12 
14 
15  if (pimple.momentumPredictor())
16  {
17  solve
18  (
19  UEqn
20  ==
22  (
23  (
24  mixture.surfaceTensionForce()
27  ) * mesh.magSf()
28  )
29  );
30 
32 
33  K = 0.5*magSqr(U);
34  }
volScalarField & p_rgh
pimpleNoLoopControl & pimple
IOMRFZoneList & MRF
solve(UEqn==-fvc::grad(p))
volScalarField::Internal contErr((fvc::ddt(rho)+fvc::div(rhoPhi) -(fvModels.source(alpha1, mixture.thermo1().rho())&rho1) -(fvModels.source(alpha2, mixture.thermo2().rho())&rho2))())
tmp< GeometricField< Type, fvPatchField, volMesh > > div(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
Definition: fvcDiv.C:47
CGAL::Exact_predicates_exact_constructions_kernel K
tmp< GeometricField< Type, fvPatchField, volMesh > > ddt(const dimensioned< Type > dt, const fvMesh &mesh)
Definition: fvcDdt.C:45
dynamicFvMesh & mesh
Foam::fvConstraints & fvConstraints
dimensioned< scalar > magSqr(const dimensioned< Type > &)
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
const surfaceScalarField & ghf
const tmp< volScalarField::Internal > & Sp
Definition: alphaSuSp.H:7
bool constrain(fvMatrix< Type > &eqn) const
Apply constraints to an equation.
Foam::fvModels & fvModels
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> reconstruct(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
U
Definition: pEqn.H:72
rhoPhi
Definition: rhoEqn.H:10
fvMatrix< vector > fvVectorMatrix
Definition: fvMatricesFwd.H:45
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > snGrad(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
Definition: fvcSnGrad.C:45
fvVectorMatrix & UEqn
Definition: UEqn.H:13