mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: simpler mass-flow/volume-flow dimension check
* (dimMass/dimTime) instead of (dimDensity*dimVelocity*dimArea) * (dimVolume/dimTime) instead of (dimVelocity*dimArea)
This commit is contained in:
@ -37,7 +37,7 @@ surfaceScalarField phi
|
||||
IOobject::AUTO_WRITE
|
||||
),
|
||||
mesh,
|
||||
dimensionedScalar(dimArea*dimVelocity, Zero)
|
||||
dimensionedScalar(dimVelocity*dimArea, Zero)
|
||||
);
|
||||
|
||||
multiphaseSystem fluid(U, phi);
|
||||
|
||||
@ -53,7 +53,7 @@
|
||||
IOobject::AUTO_WRITE
|
||||
),
|
||||
mesh,
|
||||
dimensionedScalar(dimArea*dimVelocity, Zero)
|
||||
dimensionedScalar(dimVelocity*dimArea, Zero)
|
||||
);
|
||||
|
||||
volScalarField rho("rho", fluid.rho());
|
||||
|
||||
@ -180,7 +180,7 @@ while (pimple.correct())
|
||||
IOobject::AUTO_WRITE
|
||||
),
|
||||
mesh,
|
||||
dimensionedScalar("phiHbyA", dimArea*dimVelocity, 0)
|
||||
dimensionedScalar(dimVelocity*dimArea, Zero)
|
||||
);
|
||||
|
||||
forAll(phases, phasei)
|
||||
|
||||
@ -165,7 +165,7 @@ while (pimple.correct())
|
||||
IOobject::AUTO_WRITE
|
||||
),
|
||||
mesh,
|
||||
dimensionedScalar("phiHbyA", dimArea*dimVelocity, 0)
|
||||
dimensionedScalar(dimVelocity*dimArea, Zero)
|
||||
);
|
||||
|
||||
forAll(phases, phasei)
|
||||
|
||||
Reference in New Issue
Block a user