UEqn.H
Go to the documentation of this file.
2  (
3  betav*fvm::ddt(rho, U) + fvm::div(phi, U)
4  + MRF.DDt(rho, U)
5  + turbulence->divDevTau(U)
6  ==
7  betav*rho*g
8  + betav*fvModels.source(rho, U)
9  );
10 
12 
14 
15  if (pimple.momentumPredictor())
16  {
17  U = invA & (UEqn.H() - betav*fvc::grad(p));
18  U.correctBoundaryConditions();
20  K = 0.5*magSqr(U);
21  }
Base class for Lagrangian drag models.
bool constrain(fvMatrix< Type > &eqn) const
Apply constraints to an equation.
tmp< fvMatrix< Type > > source(const VolField< Type > &field) const
Return source for an equation.
volSymmTensorField invA(inv(I *UEqn.A()+drag->Dcu()))
fvVectorMatrix & UEqn
Definition: UEqn.H:11
Foam::fvConstraints & fvConstraints(Foam::fvConstraints::New(mesh))
Foam::fvModels & fvModels(Foam::fvModels::New(mesh))
IOMRFZoneList MRF(mesh)
pimpleControl pimple(mesh)
K
Definition: pEqn.H:75
U
Definition: pEqn.H:72
tmp< VolField< Type > > ddt(const dimensioned< Type > dt, const fvMesh &mesh)
Definition: fvcDdt.C:45
tmp< VolField< typename outerProduct< vector, Type >::type > > grad(const SurfaceField< Type > &ssf)
Definition: fvcGrad.C:46
tmp< VolField< Type > > div(const SurfaceField< Type > &ssf)
Definition: fvcDiv.C:47
static const Identity< scalar > I
Definition: Identity.H:93
fvMatrix< vector > fvVectorMatrix
Definition: fvMatricesFwd.H:45
void inv(LagrangianPatchField< tensor > &f, const LagrangianPatchField< tensor > &f1)
void magSqr(LagrangianPatchField< scalar > &f, const LagrangianPatchField< Type > &f1)
VolField< symmTensor > volSymmTensorField
Definition: volFieldsFwd.H:65
autoPtr< incompressible::momentumTransportModel > turbulence(incompressible::momentumTransportModel::New(U, phi, viscosity))
volScalarField & p