mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: more consistent use of dimensioned Zero
- when constructing dimensioned fields that are to be zero-initialized,
it is preferrable to use a form such as
dimensionedScalar(dims, Zero)
dimensionedVector(dims, Zero)
rather than
dimensionedScalar("0", dims, 0)
dimensionedVector("zero", dims, vector::zero)
This reduces clutter and also avoids any suggestion that the name of
the dimensioned quantity has any influence on the field's name.
An even shorter version is possible. Eg,
dimensionedScalar(dims)
but reduces the clarity of meaning.
- NB: UniformDimensionedField is an exception to these style changes
since it does use the name of the dimensioned type (instead of the
regIOobject).
This commit is contained in:
@ -13,7 +13,7 @@ volVectorField U
|
||||
);
|
||||
|
||||
// Initialise the velocity internal field to zero
|
||||
U = dimensionedVector("0", U.dimensions(), Zero);
|
||||
U = dimensionedVector(U.dimensions(), Zero);
|
||||
|
||||
surfaceScalarField phi
|
||||
(
|
||||
@ -74,7 +74,7 @@ volScalarField p
|
||||
false
|
||||
),
|
||||
mesh,
|
||||
dimensionedScalar(pName, sqr(dimVelocity), 0),
|
||||
dimensionedScalar(sqr(dimVelocity), Zero),
|
||||
pBCTypes
|
||||
);
|
||||
|
||||
@ -105,7 +105,7 @@ volScalarField Phi
|
||||
IOobject::NO_WRITE
|
||||
),
|
||||
mesh,
|
||||
dimensionedScalar("Phi", dimLength*dimVelocity, 0),
|
||||
dimensionedScalar(dimLength*dimVelocity, Zero),
|
||||
PhiBCTypes
|
||||
);
|
||||
|
||||
|
||||
@ -13,7 +13,7 @@ volVectorField U
|
||||
);
|
||||
|
||||
// Initialise the velocity internal field to zero
|
||||
U = dimensionedVector("0", U.dimensions(), Zero);
|
||||
U = dimensionedVector(U.dimensions(), Zero);
|
||||
|
||||
surfaceScalarField phi
|
||||
(
|
||||
@ -74,7 +74,7 @@ volScalarField p
|
||||
false
|
||||
),
|
||||
mesh,
|
||||
dimensionedScalar(pName, sqr(dimVelocity), 0),
|
||||
dimensionedScalar(sqr(dimVelocity), Zero),
|
||||
pBCTypes
|
||||
);
|
||||
|
||||
@ -105,7 +105,7 @@ volScalarField Phi
|
||||
IOobject::NO_WRITE
|
||||
),
|
||||
mesh,
|
||||
dimensionedScalar("Phi", dimLength*dimVelocity, 0),
|
||||
dimensionedScalar(dimLength*dimVelocity, Zero),
|
||||
PhiBCTypes
|
||||
);
|
||||
|
||||
|
||||
@ -103,7 +103,7 @@ Foam::tmp<Foam::volScalarField> Foam::XiEqModels::basicSubGrid::XiEq() const
|
||||
IOobject::NO_WRITE
|
||||
),
|
||||
mesh,
|
||||
dimensionedScalar("zero", Nv.dimensions(), 0.0)
|
||||
dimensionedScalar(Nv.dimensions(), Zero)
|
||||
);
|
||||
N.primitiveFieldRef() = Nv.primitiveField()*Cw;
|
||||
|
||||
@ -118,12 +118,7 @@ Foam::tmp<Foam::volScalarField> Foam::XiEqModels::basicSubGrid::XiEq() const
|
||||
IOobject::NO_WRITE
|
||||
),
|
||||
U.mesh(),
|
||||
dimensionedSymmTensor
|
||||
(
|
||||
"zero",
|
||||
nsv.dimensions(),
|
||||
Zero
|
||||
)
|
||||
dimensionedSymmTensor(nsv.dimensions(), Zero)
|
||||
);
|
||||
ns.primitiveFieldRef() = nsv.primitiveField()*Cw;
|
||||
|
||||
|
||||
@ -104,12 +104,7 @@ Foam::tmp<Foam::volSymmTensorField> Foam::PDRDragModels::basic::Dcu() const
|
||||
IOobject::NO_WRITE
|
||||
),
|
||||
U_.mesh(),
|
||||
dimensionedSymmTensor
|
||||
(
|
||||
"zero",
|
||||
dimMass/dimTime/pow(dimLength, 3),
|
||||
Zero
|
||||
)
|
||||
dimensionedSymmTensor(dimMass/dimTime/dimVolume, Zero)
|
||||
)
|
||||
);
|
||||
|
||||
@ -143,7 +138,7 @@ Foam::tmp<Foam::volScalarField> Foam::PDRDragModels::basic::Gk() const
|
||||
IOobject::NO_WRITE
|
||||
),
|
||||
U_.mesh(),
|
||||
dimensionedScalar("zero", dimMass/dimLength/pow(dimTime, 3), 0.0)
|
||||
dimensionedScalar(dimMass/dimLength/pow3(dimTime), Zero)
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
@ -105,7 +105,7 @@ Foam::tmp<Foam::volScalarField> Foam::XiEqModels::SCOPEXiEq::XiEq() const
|
||||
IOobject::NO_WRITE
|
||||
),
|
||||
epsilon.mesh(),
|
||||
dimensionedScalar("XiEq", dimless, 0.0)
|
||||
dimensionedScalar(dimless, Zero)
|
||||
)
|
||||
);
|
||||
volScalarField& xieq = tXiEq.ref();
|
||||
|
||||
@ -110,7 +110,7 @@ Foam::XiEqModel::calculateSchelkinEffect(const scalar uPrimeCoef) const
|
||||
false
|
||||
),
|
||||
mesh,
|
||||
dimensionedScalar("zero", Nv.dimensions(), 0.0)
|
||||
dimensionedScalar(Nv.dimensions(), Zero)
|
||||
)
|
||||
);
|
||||
volScalarField& N = tN.ref();
|
||||
@ -127,12 +127,7 @@ Foam::XiEqModel::calculateSchelkinEffect(const scalar uPrimeCoef) const
|
||||
IOobject::NO_WRITE
|
||||
),
|
||||
mesh,
|
||||
dimensionedSymmTensor
|
||||
(
|
||||
"zero",
|
||||
nsv.dimensions(),
|
||||
Zero
|
||||
)
|
||||
dimensionedSymmTensor(nsv.dimensions(), Zero)
|
||||
);
|
||||
ns.primitiveFieldRef() = nsv.primitiveField()*pow(mesh.V(), 2.0/3.0);
|
||||
|
||||
|
||||
@ -255,7 +255,7 @@ Foam::tmp<Foam::volScalarField> Foam::laminarFlameSpeedModels::SCOPE::Su0pTphi
|
||||
IOobject::NO_WRITE
|
||||
),
|
||||
p.mesh(),
|
||||
dimensionedScalar("Su0", dimVelocity, 0.0)
|
||||
dimensionedScalar(dimVelocity, Zero)
|
||||
)
|
||||
);
|
||||
|
||||
@ -304,7 +304,7 @@ Foam::tmp<Foam::volScalarField> Foam::laminarFlameSpeedModels::SCOPE::Su0pTphi
|
||||
IOobject::NO_WRITE
|
||||
),
|
||||
p.mesh(),
|
||||
dimensionedScalar("Su0", dimVelocity, 0.0)
|
||||
dimensionedScalar(dimVelocity, Zero)
|
||||
)
|
||||
);
|
||||
|
||||
@ -358,7 +358,7 @@ Foam::tmp<Foam::volScalarField> Foam::laminarFlameSpeedModels::SCOPE::Ma
|
||||
IOobject::NO_WRITE
|
||||
),
|
||||
phi.mesh(),
|
||||
dimensionedScalar("Ma", dimless, 0.0)
|
||||
dimensionedScalar(dimless, Zero)
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
@ -243,7 +243,7 @@ if (ign.ignited())
|
||||
rho*max
|
||||
(
|
||||
sigmat - sigmas,
|
||||
dimensionedScalar("0", sigmat.dimensions(), 0)
|
||||
dimensionedScalar(sigmat.dimensions(), Zero)
|
||||
),
|
||||
Xi
|
||||
)
|
||||
|
||||
@ -55,12 +55,7 @@
|
||||
IOobject::AUTO_WRITE
|
||||
),
|
||||
mesh,
|
||||
dimensionedScalar
|
||||
(
|
||||
"zero",
|
||||
dimensionSet(dimEnergy/dimMass/dimTemperature),
|
||||
0.0
|
||||
)
|
||||
dimensionedScalar(dimEnergy/dimMass/dimTemperature, Zero)
|
||||
);
|
||||
|
||||
volVectorField U
|
||||
@ -74,7 +69,7 @@
|
||||
IOobject::NO_WRITE
|
||||
),
|
||||
mesh,
|
||||
dimensionedVector("zero", dimVelocity, Zero)
|
||||
dimensionedVector(dimVelocity, Zero)
|
||||
);
|
||||
|
||||
#include "createPhi.H"
|
||||
|
||||
@ -142,7 +142,7 @@ volScalarField Qdot
|
||||
IOobject::AUTO_WRITE
|
||||
),
|
||||
mesh,
|
||||
dimensionedScalar("Qdot", dimEnergy/dimVolume/dimTime, 0.0)
|
||||
dimensionedScalar(dimEnergy/dimVolume/dimTime, Zero)
|
||||
);
|
||||
|
||||
#include "createDpdt.H"
|
||||
|
||||
@ -90,7 +90,7 @@ volScalarField Qdot
|
||||
IOobject::AUTO_WRITE
|
||||
),
|
||||
mesh,
|
||||
dimensionedScalar("Qdot", dimEnergy/dimVolume/dimTime, 0.0)
|
||||
dimensionedScalar(dimEnergy/dimVolume/dimTime, Zero)
|
||||
);
|
||||
|
||||
#include "createDpdt.H"
|
||||
|
||||
@ -111,7 +111,7 @@ volScalarField Qdot
|
||||
IOobject::AUTO_WRITE
|
||||
),
|
||||
mesh,
|
||||
dimensionedScalar("Qdot", dimEnergy/dimVolume/dimTime, 0.0)
|
||||
dimensionedScalar(dimEnergy/dimVolume/dimTime, Zero)
|
||||
);
|
||||
|
||||
#include "createDpdt.H"
|
||||
|
||||
@ -91,7 +91,7 @@ volScalarField Qdot
|
||||
IOobject::AUTO_WRITE
|
||||
),
|
||||
mesh,
|
||||
dimensionedScalar("Qdot", dimEnergy/dimVolume/dimTime, 0.0)
|
||||
dimensionedScalar(dimEnergy/dimVolume/dimTime, Zero)
|
||||
);
|
||||
|
||||
#include "createDpdt.H"
|
||||
|
||||
@ -104,7 +104,7 @@ License
|
||||
mesh
|
||||
),
|
||||
mesh,
|
||||
dimensionedScalar("rDeltaTY", rDeltaT.dimensions(), 0)
|
||||
dimensionedScalar(rDeltaT.dimensions(), Zero)
|
||||
);
|
||||
|
||||
bool foundY = false;
|
||||
|
||||
@ -63,7 +63,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
#include "readFluxScheme.H"
|
||||
|
||||
dimensionedScalar v_zero("v_zero", dimVolume/dimTime, 0.0);
|
||||
const dimensionedScalar v_zero(dimVolume/dimTime, Zero);
|
||||
|
||||
// Courant numbers used to adjust the time-step
|
||||
scalar CoNum = 0.0;
|
||||
|
||||
@ -61,7 +61,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
#include "readFluxScheme.H"
|
||||
|
||||
dimensionedScalar v_zero("v_zero", dimVolume/dimTime, 0.0);
|
||||
const dimensionedScalar v_zero(dimVolume/dimTime, Zero);
|
||||
|
||||
// Courant numbers used to adjust the time-step
|
||||
scalar CoNum = 0.0;
|
||||
|
||||
@ -91,7 +91,7 @@ volScalarField dpdt
|
||||
mesh
|
||||
),
|
||||
mesh,
|
||||
dimensionedScalar("dpdt", p.dimensions()/dimTime, 0)
|
||||
dimensionedScalar(p.dimensions()/dimTime, Zero)
|
||||
);
|
||||
|
||||
#include "createMRF.H"
|
||||
|
||||
@ -73,7 +73,7 @@ volScalarField dpdt
|
||||
mesh
|
||||
),
|
||||
mesh,
|
||||
dimensionedScalar("dpdt", p.dimensions()/dimTime, 0)
|
||||
dimensionedScalar(p.dimensions()/dimTime, Zero)
|
||||
);
|
||||
|
||||
Info<< "Creating field kinetic energy K\n" << endl;
|
||||
|
||||
@ -49,7 +49,7 @@
|
||||
mesh
|
||||
),
|
||||
mesh,
|
||||
dimensionedScalar("Mr", dimensionSet(0, 1, 0, 0, 0, 1, 0), 0)
|
||||
dimensionedScalar(dimensionSet(0, 1, 0, 0, 0, 1, 0), Zero)
|
||||
);
|
||||
|
||||
forAll(magnets, i)
|
||||
|
||||
@ -82,7 +82,7 @@ volVectorField P
|
||||
V == max
|
||||
(
|
||||
P.component(Foam::vector::X) - strike,
|
||||
dimensionedScalar("0", V.dimensions(), 0.0)
|
||||
dimensionedScalar(V.dimensions(), Zero)
|
||||
);
|
||||
|
||||
volScalarField delta
|
||||
|
||||
@ -72,7 +72,7 @@
|
||||
IOobject::NO_WRITE
|
||||
),
|
||||
aMesh,
|
||||
dimensionedScalar("Sm", dimLength/dimTime, 0)
|
||||
dimensionedScalar(dimLength/dimTime, Zero)
|
||||
);
|
||||
|
||||
// Mass sink
|
||||
@ -87,7 +87,7 @@
|
||||
IOobject::NO_WRITE
|
||||
),
|
||||
aMesh,
|
||||
dimensionedScalar("Sd", dimLength/dimTime, 0)
|
||||
dimensionedScalar(dimLength/dimTime, Zero)
|
||||
);
|
||||
|
||||
areaVectorField Ug
|
||||
@ -101,7 +101,7 @@
|
||||
IOobject::NO_WRITE
|
||||
),
|
||||
aMesh,
|
||||
dimensionedVector("Ug", dimVelocity, vector::zero)
|
||||
dimensionedVector(dimVelocity, Zero)
|
||||
);
|
||||
|
||||
|
||||
|
||||
@ -9,7 +9,7 @@ volVectorField U
|
||||
IOobject::AUTO_WRITE
|
||||
),
|
||||
mesh,
|
||||
dimensionedVector("0", dimVelocity, vector::zero)
|
||||
dimensionedVector(dimVelocity, Zero)
|
||||
);
|
||||
|
||||
|
||||
@ -24,7 +24,7 @@ volScalarField H
|
||||
IOobject::AUTO_WRITE
|
||||
),
|
||||
mesh,
|
||||
dimensionedScalar("0", dimLength, 0)
|
||||
dimensionedScalar(dimLength, Zero)
|
||||
);
|
||||
|
||||
// Create volume-to surface mapping object
|
||||
|
||||
@ -43,7 +43,7 @@ areaVectorField Us
|
||||
IOobject::NO_WRITE
|
||||
),
|
||||
aMesh,
|
||||
dimensioned<vector>("Us", dimVelocity, vector::zero)
|
||||
dimensionedVector(dimVelocity, Zero)
|
||||
);
|
||||
|
||||
dimensioned<scalar> Uinf("Uinf", dimVelocity, 1.0);
|
||||
|
||||
@ -12,7 +12,7 @@
|
||||
IOobject::AUTO_WRITE
|
||||
),
|
||||
mesh,
|
||||
dimensionedScalar("0", dimless/dimLength, 0)
|
||||
dimensionedScalar(dimless/dimLength, Zero)
|
||||
);
|
||||
|
||||
vsm.mapToVolume(Cs, Cvf.boundaryFieldRef());
|
||||
@ -29,7 +29,7 @@
|
||||
IOobject::AUTO_WRITE
|
||||
),
|
||||
mesh,
|
||||
dimensionedVector("zero", dimVelocity, vector::zero)
|
||||
dimensionedVector(dimVelocity, Zero)
|
||||
);
|
||||
|
||||
vsm.mapToVolume(Us, U.boundaryFieldRef());
|
||||
|
||||
@ -12,7 +12,7 @@
|
||||
IOobject::AUTO_WRITE
|
||||
),
|
||||
mesh,
|
||||
dimensionedScalar("0", dimless/dimLength, 0)
|
||||
dimensionedScalar(dimless/dimLength, Zero)
|
||||
);
|
||||
|
||||
vsm.mapToVolume(Cs, Cvf.boundaryFieldRef());
|
||||
@ -29,7 +29,7 @@
|
||||
IOobject::AUTO_WRITE
|
||||
),
|
||||
mesh,
|
||||
dimensionedVector("zero", dimVelocity, vector::zero)
|
||||
dimensionedVector(dimVelocity, Zero)
|
||||
);
|
||||
|
||||
vsm.mapToVolume(Us, U.boundaryFieldRef());
|
||||
|
||||
@ -122,7 +122,7 @@ forAll(fluidRegions, i)
|
||||
IOobject::READ_IF_PRESENT,
|
||||
IOobject::NO_WRITE
|
||||
),
|
||||
dimensionedScalar("hRef", dimLength, 0)
|
||||
dimensionedScalar("hRef", dimLength, Zero) // uses name
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
@ -122,7 +122,7 @@ forAll(fluidRegions, i)
|
||||
IOobject::READ_IF_PRESENT,
|
||||
IOobject::NO_WRITE
|
||||
),
|
||||
dimensionedScalar("hRef", dimLength, 0)
|
||||
dimensionedScalar("hRef", dimLength, Zero) // uses name
|
||||
)
|
||||
);
|
||||
|
||||
@ -223,12 +223,7 @@ forAll(fluidRegions, i)
|
||||
fluidRegions[i]
|
||||
),
|
||||
fluidRegions[i],
|
||||
dimensionedScalar
|
||||
(
|
||||
"dpdt",
|
||||
thermoFluid[i].p().dimensions()/dimTime,
|
||||
0
|
||||
)
|
||||
dimensionedScalar(thermoFluid[i].p().dimensions()/dimTime, Zero)
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
@ -51,12 +51,7 @@
|
||||
IOobject::NO_WRITE
|
||||
),
|
||||
solidRegions[i],
|
||||
dimensionedSymmTensor
|
||||
(
|
||||
"zero",
|
||||
tkappaByCp().dimensions(),
|
||||
Zero
|
||||
),
|
||||
dimensionedSymmTensor(tkappaByCp().dimensions(), Zero),
|
||||
zeroGradientFvPatchSymmTensorField::typeName
|
||||
)
|
||||
);
|
||||
|
||||
@ -86,8 +86,8 @@ autoPtr<incompressible::turbulenceModel> turbulence
|
||||
);
|
||||
|
||||
|
||||
dimensionedScalar zeroSensitivity("0", dimVelocity*dimVelocity, 0.0);
|
||||
dimensionedScalar zeroAlpha("0", dimless/dimTime, 0.0);
|
||||
dimensionedScalar zeroSensitivity(dimVelocity*dimVelocity, Zero);
|
||||
dimensionedScalar zeroAlpha(dimless/dimTime, Zero);
|
||||
|
||||
dimensionedScalar lambda
|
||||
(
|
||||
|
||||
@ -25,7 +25,7 @@ surfaceScalarField phi
|
||||
IOobject::NO_WRITE
|
||||
),
|
||||
mesh,
|
||||
dimensionedScalar("zero", mesh.Sf().dimensions()*U.dimensions(), 0.0)
|
||||
dimensionedScalar(mesh.Sf().dimensions()*U.dimensions(), Zero)
|
||||
);
|
||||
|
||||
|
||||
|
||||
@ -47,7 +47,7 @@ if (mesh.changing())
|
||||
IOobject::NO_WRITE
|
||||
),
|
||||
mesh,
|
||||
dimensionedScalar("pcorr", p.dimensions(), 0.0),
|
||||
dimensionedScalar(p.dimensions(), Zero),
|
||||
pcorrTypes
|
||||
);
|
||||
|
||||
|
||||
@ -25,7 +25,7 @@ volScalarField h0
|
||||
IOobject::READ_IF_PRESENT
|
||||
),
|
||||
mesh,
|
||||
dimensionedScalar("h0", dimLength, 0.0)
|
||||
dimensionedScalar(dimLength, Zero)
|
||||
);
|
||||
|
||||
Info<< "Creating field hU\n" << endl;
|
||||
|
||||
@ -120,12 +120,7 @@ int main(int argc, char *argv[])
|
||||
mesh
|
||||
),
|
||||
mesh,
|
||||
dimensionedVector
|
||||
(
|
||||
"0",
|
||||
cloudSU.dimensions()/dimVolume,
|
||||
Zero
|
||||
),
|
||||
dimensionedVector(cloudSU.dimensions()/dimVolume, Zero),
|
||||
zeroGradientFvPatchVectorField::typeName
|
||||
);
|
||||
|
||||
|
||||
@ -100,12 +100,7 @@ int main(int argc, char *argv[])
|
||||
mesh
|
||||
),
|
||||
mesh,
|
||||
dimensionedVector
|
||||
(
|
||||
"0",
|
||||
cloudSU.dimensions()/dimVolume,
|
||||
Zero
|
||||
),
|
||||
dimensionedVector(cloudSU.dimensions()/dimVolume, Zero),
|
||||
zeroGradientFvPatchVectorField::typeName
|
||||
);
|
||||
|
||||
|
||||
@ -119,7 +119,7 @@ volScalarField alphac
|
||||
IOobject::AUTO_WRITE
|
||||
),
|
||||
mesh,
|
||||
dimensionedScalar("0", dimless, 0)
|
||||
dimensionedScalar(dimless, Zero)
|
||||
);
|
||||
|
||||
word kinematicCloudName("kinematicCloud");
|
||||
|
||||
@ -63,7 +63,7 @@ volScalarField rhoEffLagrangian
|
||||
IOobject::AUTO_WRITE
|
||||
),
|
||||
mesh,
|
||||
dimensionedScalar("zero", dimDensity, 0.0)
|
||||
dimensionedScalar(dimDensity, Zero)
|
||||
);
|
||||
|
||||
// dynamic pressure field - used externally (optional)
|
||||
@ -78,7 +78,7 @@ volScalarField pDyn
|
||||
IOobject::AUTO_WRITE
|
||||
),
|
||||
mesh,
|
||||
dimensionedScalar("zero", dimPressure, 0.0)
|
||||
dimensionedScalar(dimPressure, Zero)
|
||||
);
|
||||
|
||||
|
||||
@ -126,7 +126,7 @@ volScalarField Qdot
|
||||
IOobject::AUTO_WRITE
|
||||
),
|
||||
mesh,
|
||||
dimensionedScalar("Qdot", dimEnergy/dimVolume/dimTime, 0.0)
|
||||
dimensionedScalar(dimEnergy/dimVolume/dimTime, Zero)
|
||||
);
|
||||
|
||||
#include "createDpdt.H"
|
||||
|
||||
@ -121,7 +121,7 @@ volScalarField Qdot
|
||||
IOobject::AUTO_WRITE
|
||||
),
|
||||
mesh,
|
||||
dimensionedScalar("Qdot", dimEnergy/dimVolume/dimTime, 0.0)
|
||||
dimensionedScalar(dimEnergy/dimVolume/dimTime, Zero)
|
||||
);
|
||||
|
||||
#include "createDpdt.H"
|
||||
|
||||
@ -114,7 +114,7 @@ volScalarField Qdot
|
||||
IOobject::AUTO_WRITE
|
||||
),
|
||||
mesh,
|
||||
dimensionedScalar("Qdot", dimEnergy/dimVolume/dimTime, 0.0)
|
||||
dimensionedScalar(dimEnergy/dimVolume/dimTime, Zero)
|
||||
);
|
||||
|
||||
#include "createMRF.H"
|
||||
|
||||
@ -114,7 +114,7 @@ volScalarField Qdot
|
||||
IOobject::AUTO_WRITE
|
||||
),
|
||||
mesh,
|
||||
dimensionedScalar("Qdot", dimEnergy/dimVolume/dimTime, 0.0)
|
||||
dimensionedScalar(dimEnergy/dimVolume/dimTime, Zero)
|
||||
);
|
||||
|
||||
#include "createMRF.H"
|
||||
|
||||
@ -113,7 +113,7 @@ volScalarField Qdot
|
||||
IOobject::AUTO_WRITE
|
||||
),
|
||||
mesh,
|
||||
dimensionedScalar("Qdot", dimEnergy/dimVolume/dimTime, 0.0)
|
||||
dimensionedScalar(dimEnergy/dimVolume/dimTime, Zero)
|
||||
);
|
||||
|
||||
#include "createDpdt.H"
|
||||
|
||||
@ -130,12 +130,7 @@ int main(int argc, char *argv[])
|
||||
mesh
|
||||
),
|
||||
mesh,
|
||||
dimensionedVector
|
||||
(
|
||||
"0",
|
||||
cloudSU.dimensions()/dimVolume,
|
||||
vector::zero
|
||||
),
|
||||
dimensionedVector(cloudSU.dimensions()/dimVolume, Zero),
|
||||
zeroGradientFvPatchVectorField::typeName
|
||||
);
|
||||
|
||||
|
||||
@ -10,7 +10,7 @@ if (nAlphaSubCycles > 1)
|
||||
mesh
|
||||
),
|
||||
mesh,
|
||||
dimensionedScalar("0", rhoPhi.dimensions(), 0)
|
||||
dimensionedScalar(rhoPhi.dimensions(), Zero)
|
||||
);
|
||||
|
||||
tmp<volScalarField> trSubDeltaT;
|
||||
|
||||
@ -138,7 +138,7 @@ volScalarField alphac
|
||||
IOobject::AUTO_WRITE
|
||||
),
|
||||
mesh,
|
||||
dimensionedScalar("0", dimless, 0),
|
||||
dimensionedScalar(dimless, Zero),
|
||||
zeroGradientFvPatchScalarField::typeName
|
||||
);
|
||||
alphac.oldTime();
|
||||
|
||||
@ -10,7 +10,7 @@ if (nAlphaSubCycles > 1)
|
||||
mesh
|
||||
),
|
||||
mesh,
|
||||
dimensionedScalar("0", rhoPhi.dimensions(), 0)
|
||||
dimensionedScalar(rhoPhi.dimensions(), Zero)
|
||||
);
|
||||
|
||||
tmp<volScalarField> trSubDeltaT;
|
||||
|
||||
@ -12,7 +12,7 @@ correctUphiBCs(U, phi);
|
||||
IOobject::NO_WRITE
|
||||
),
|
||||
mesh,
|
||||
dimensionedScalar("pcorr", p.dimensions(), 0.0),
|
||||
dimensionedScalar(p.dimensions(), Zero),
|
||||
pcorrTypes
|
||||
);
|
||||
|
||||
|
||||
@ -7,7 +7,7 @@ volScalarField::Internal Sp
|
||||
mesh
|
||||
),
|
||||
mesh,
|
||||
dimensionedScalar("Sp", dgdt.dimensions(), 0)
|
||||
dimensionedScalar(dgdt.dimensions(), Zero)
|
||||
);
|
||||
|
||||
volScalarField::Internal Su
|
||||
@ -19,7 +19,7 @@ volScalarField::Internal Su
|
||||
mesh
|
||||
),
|
||||
mesh,
|
||||
dimensionedScalar("Su", dgdt.dimensions(), 0)
|
||||
dimensionedScalar(dgdt.dimensions(), Zero)
|
||||
);
|
||||
|
||||
forAll(dgdt, celli)
|
||||
|
||||
@ -13,7 +13,7 @@ if (nAlphaSubCycles > 1)
|
||||
mesh
|
||||
),
|
||||
mesh,
|
||||
dimensionedScalar("0", alphaPhi10.dimensions(), 0)
|
||||
dimensionedScalar(alphaPhi10.dimensions(), Zero)
|
||||
);
|
||||
|
||||
surfaceScalarField rhoPhiSum
|
||||
@ -25,7 +25,7 @@ if (nAlphaSubCycles > 1)
|
||||
mesh
|
||||
),
|
||||
mesh,
|
||||
dimensionedScalar("0", rhoPhi.dimensions(), 0)
|
||||
dimensionedScalar(rhoPhi.dimensions(), Zero)
|
||||
);
|
||||
|
||||
tmp<volScalarField> trSubDeltaT;
|
||||
|
||||
@ -7,7 +7,7 @@ volScalarField::Internal Sp
|
||||
mesh
|
||||
),
|
||||
mesh,
|
||||
dimensionedScalar("Sp", dgdt.dimensions(), 0)
|
||||
dimensionedScalar(dgdt.dimensions(), Zero)
|
||||
);
|
||||
|
||||
volScalarField::Internal Su
|
||||
@ -19,7 +19,7 @@ volScalarField::Internal Su
|
||||
mesh
|
||||
),
|
||||
mesh,
|
||||
dimensionedScalar("Su", dgdt.dimensions(), 0)
|
||||
dimensionedScalar(dgdt.dimensions(), Zero)
|
||||
);
|
||||
|
||||
forAll(dgdt, celli)
|
||||
|
||||
@ -136,7 +136,7 @@ Foam::fv::VoFSolidificationMeltingSource::VoFSolidificationMeltingSource
|
||||
IOobject::AUTO_WRITE
|
||||
),
|
||||
mesh,
|
||||
dimensionedScalar("alpha1", dimless, 0.0),
|
||||
dimensionedScalar(dimless, Zero),
|
||||
zeroGradientFvPatchScalarField::typeName
|
||||
),
|
||||
curTimeIndex_(-1)
|
||||
|
||||
@ -85,7 +85,7 @@ Foam::multiphaseMixtureThermo::multiphaseMixtureThermo
|
||||
IOobject::NO_WRITE
|
||||
),
|
||||
mesh_,
|
||||
dimensionedScalar("rhoPhi", dimMass/dimTime, 0.0)
|
||||
dimensionedScalar(dimMass/dimTime, Zero)
|
||||
),
|
||||
|
||||
alphas_
|
||||
@ -99,7 +99,7 @@ Foam::multiphaseMixtureThermo::multiphaseMixtureThermo
|
||||
IOobject::AUTO_WRITE
|
||||
),
|
||||
mesh_,
|
||||
dimensionedScalar("alphas", dimless, 0.0)
|
||||
dimensionedScalar(dimless, Zero)
|
||||
),
|
||||
|
||||
sigmas_(lookup("sigmas")),
|
||||
@ -686,12 +686,7 @@ Foam::multiphaseMixtureThermo::surfaceTensionForce() const
|
||||
mesh_
|
||||
),
|
||||
mesh_,
|
||||
dimensionedScalar
|
||||
(
|
||||
"surfaceTensionForce",
|
||||
dimensionSet(1, -2, -2, 0, 0),
|
||||
0.0
|
||||
)
|
||||
dimensionedScalar(dimensionSet(1, -2, -2, 0, 0), Zero)
|
||||
)
|
||||
);
|
||||
|
||||
@ -943,7 +938,7 @@ Foam::multiphaseMixtureThermo::nearInterface() const
|
||||
mesh_
|
||||
),
|
||||
mesh_,
|
||||
dimensionedScalar("nearInterface", dimless, 0.0)
|
||||
dimensionedScalar(dimless, Zero)
|
||||
)
|
||||
);
|
||||
|
||||
@ -1030,7 +1025,7 @@ void Foam::multiphaseMixtureThermo::solveAlphas
|
||||
|
||||
MULES::limitSum(alphaPhiCorrs);
|
||||
|
||||
rhoPhi_ = dimensionedScalar("0", dimensionSet(1, 0, -1, 0, 0), 0);
|
||||
rhoPhi_ = dimensionedScalar(dimensionSet(1, 0, -1, 0, 0), Zero);
|
||||
|
||||
volScalarField sumAlpha
|
||||
(
|
||||
@ -1041,7 +1036,7 @@ void Foam::multiphaseMixtureThermo::solveAlphas
|
||||
mesh_
|
||||
),
|
||||
mesh_,
|
||||
dimensionedScalar("sumAlpha", dimless, 0)
|
||||
dimensionedScalar(dimless, Zero)
|
||||
);
|
||||
|
||||
|
||||
@ -1066,7 +1061,7 @@ void Foam::multiphaseMixtureThermo::solveAlphas
|
||||
mesh_
|
||||
),
|
||||
mesh_,
|
||||
dimensionedScalar("Sp", alpha.dgdt().dimensions(), 0.0)
|
||||
dimensionedScalar(alpha.dgdt().dimensions(), Zero)
|
||||
);
|
||||
|
||||
volScalarField::Internal Su
|
||||
|
||||
@ -61,7 +61,7 @@ Foam::phaseModel::phaseModel
|
||||
IOobject::AUTO_WRITE
|
||||
),
|
||||
p.mesh(),
|
||||
dimensionedScalar("0", dimless/dimTime, 0)
|
||||
dimensionedScalar(dimless/dimTime, Zero)
|
||||
)
|
||||
{
|
||||
{
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
mesh
|
||||
),
|
||||
mesh,
|
||||
dimensionedScalar("0", phi.dimensions(), 0)
|
||||
dimensionedScalar(phi.dimensions(), Zero)
|
||||
);
|
||||
|
||||
surfaceScalarField phir(fvc::flux(UdmModel.Udm()));
|
||||
@ -25,7 +25,7 @@
|
||||
mesh
|
||||
),
|
||||
mesh,
|
||||
dimensionedScalar("0", phi.dimensions(), 0)
|
||||
dimensionedScalar(phi.dimensions(), Zero)
|
||||
);
|
||||
|
||||
for
|
||||
|
||||
@ -102,7 +102,7 @@ incompressibleTwoPhaseInteractingMixture
|
||||
U_.db()
|
||||
),
|
||||
U_.mesh(),
|
||||
dimensionedScalar("mu", dimensionSet(1, -1, -1, 0, 0), 0),
|
||||
dimensionedScalar(dimensionSet(1, -1, -1, 0, 0), Zero),
|
||||
calculatedFvPatchScalarField::typeName
|
||||
)
|
||||
{
|
||||
|
||||
@ -90,7 +90,7 @@ Foam::relativeVelocityModel::relativeVelocityModel
|
||||
IOobject::AUTO_WRITE
|
||||
),
|
||||
alphac_.mesh(),
|
||||
dimensionedVector("Udm", dimVelocity, Zero),
|
||||
dimensionedVector(dimVelocity, Zero),
|
||||
UdmPatchFieldTypes()
|
||||
)
|
||||
{}
|
||||
|
||||
@ -136,6 +136,6 @@ volScalarField pDivU
|
||||
mesh
|
||||
),
|
||||
mesh,
|
||||
dimensionedScalar("pDivU", p.dimensions()/dimTime, 0)
|
||||
dimensionedScalar(p.dimensions()/dimTime, Zero)
|
||||
);
|
||||
|
||||
|
||||
@ -102,7 +102,7 @@ int main(int argc, char *argv[])
|
||||
mesh
|
||||
),
|
||||
mesh,
|
||||
dimensionedScalar("0", dimMass/dimTime, 0)
|
||||
dimensionedScalar(dimMass/dimTime, Zero)
|
||||
);
|
||||
|
||||
mixture->correct();
|
||||
|
||||
@ -74,7 +74,7 @@ Foam::temperaturePhaseChangeTwoPhaseMixtures::constant::mDotAlphal() const
|
||||
|
||||
const dimensionedScalar& TSat = thermo.TSat();
|
||||
|
||||
dimensionedScalar T0("0", dimTemperature, 0.0);
|
||||
const dimensionedScalar T0(dimTemperature, Zero);
|
||||
|
||||
return Pair<tmp<volScalarField>>
|
||||
(
|
||||
@ -108,7 +108,7 @@ Foam::temperaturePhaseChangeTwoPhaseMixtures::constant::mDot() const
|
||||
|
||||
const dimensionedScalar& TSat = thermo.TSat();
|
||||
|
||||
dimensionedScalar T0("0", dimTemperature, 0.0);
|
||||
const dimensionedScalar T0(dimTemperature, Zero);
|
||||
|
||||
return Pair<tmp<volScalarField>>
|
||||
(
|
||||
@ -141,7 +141,6 @@ Foam::temperaturePhaseChangeTwoPhaseMixtures::constant::mDotDeltaT() const
|
||||
|
||||
const dimensionedScalar& TSat = thermo.TSat();
|
||||
|
||||
|
||||
return Pair<tmp<volScalarField>>
|
||||
(
|
||||
coeffC_*mixture_.rho2()*limitedAlpha2*pos(TSat - T.oldTime()),
|
||||
|
||||
@ -100,7 +100,7 @@ Foam::twoPhaseMixtureEThermo::twoPhaseMixtureEThermo
|
||||
IOobject::NO_WRITE
|
||||
),
|
||||
U.mesh(),
|
||||
dimensionedScalar("zero", dimEnergy/dimMass, 0.0),
|
||||
dimensionedScalar(dimEnergy/dimMass, Zero),
|
||||
heBoundaryTypes()
|
||||
)
|
||||
),
|
||||
@ -234,9 +234,7 @@ Foam::tmp<Foam::volScalarField> Foam::twoPhaseMixtureEThermo::hc() const
|
||||
{
|
||||
const fvMesh& mesh = this->T_.mesh();
|
||||
|
||||
return tmp<volScalarField>
|
||||
(
|
||||
new volScalarField
|
||||
return tmp<volScalarField>::New
|
||||
(
|
||||
IOobject
|
||||
(
|
||||
@ -247,8 +245,7 @@ Foam::tmp<Foam::volScalarField> Foam::twoPhaseMixtureEThermo::hc() const
|
||||
IOobject::AUTO_WRITE
|
||||
),
|
||||
mesh,
|
||||
dimensionedScalar("hc",Hf2() - Hf1())
|
||||
)
|
||||
dimensionedScalar("hc", Hf2() - Hf1())
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@ -133,7 +133,7 @@ surfaceScalarField alphaPhiUn
|
||||
IOobject::NO_WRITE
|
||||
),
|
||||
mesh,
|
||||
dimensionedScalar("zero", phi.dimensions(), 0.0)
|
||||
dimensionedScalar(phi.dimensions(), Zero)
|
||||
);
|
||||
|
||||
#include "createMRF.H"
|
||||
|
||||
@ -10,7 +10,7 @@ if (nAlphaSubCycles > 1)
|
||||
mesh
|
||||
),
|
||||
mesh,
|
||||
dimensionedScalar("0", rhoPhi.dimensions(), 0)
|
||||
dimensionedScalar(rhoPhi.dimensions(), Zero)
|
||||
);
|
||||
|
||||
for
|
||||
|
||||
@ -116,7 +116,7 @@ Foam::incompressibleThreePhaseMixture::incompressibleThreePhaseMixture
|
||||
U.db()
|
||||
),
|
||||
U.mesh(),
|
||||
dimensionedScalar("nu", dimensionSet(0, 2, -1, 0, 0), 0),
|
||||
dimensionedScalar(dimensionSet(0, 2, -1, 0, 0), Zero),
|
||||
calculatedFvPatchScalarField::typeName
|
||||
),
|
||||
|
||||
|
||||
@ -181,7 +181,7 @@ Foam::threePhaseInterfaceProperties::threePhaseInterfaceProperties
|
||||
mixture.alpha1().mesh()
|
||||
),
|
||||
mixture.alpha1().mesh(),
|
||||
dimensionedScalar("nHatf", dimArea, 0.0)
|
||||
dimensionedScalar(dimArea, Zero)
|
||||
),
|
||||
|
||||
K_
|
||||
@ -193,7 +193,7 @@ Foam::threePhaseInterfaceProperties::threePhaseInterfaceProperties
|
||||
mixture.alpha1().mesh()
|
||||
),
|
||||
mixture.alpha1().mesh(),
|
||||
dimensionedScalar("K", dimless/dimLength, 0.0)
|
||||
dimensionedScalar(dimless/dimLength, Zero)
|
||||
)
|
||||
{
|
||||
calculateK();
|
||||
|
||||
@ -49,7 +49,7 @@
|
||||
IOobject::NO_WRITE
|
||||
),
|
||||
mesh,
|
||||
dimensionedScalar("pcorr", p_rgh.dimensions(), 0.0),
|
||||
dimensionedScalar(p_rgh.dimensions(), Zero),
|
||||
pcorrTypes
|
||||
);
|
||||
|
||||
|
||||
@ -165,7 +165,7 @@ surfaceScalarField alphaPhiUn
|
||||
IOobject::NO_WRITE
|
||||
),
|
||||
mesh,
|
||||
dimensionedScalar("zero", phi.dimensions(), 0.0)
|
||||
dimensionedScalar(phi.dimensions(), Zero)
|
||||
);
|
||||
|
||||
#include "createMRF.H"
|
||||
|
||||
@ -10,7 +10,7 @@ if (nAlphaSubCycles > 1)
|
||||
mesh
|
||||
),
|
||||
mesh,
|
||||
dimensionedScalar("0", rhoPhi.dimensions(), 0)
|
||||
dimensionedScalar(rhoPhi.dimensions(), Zero)
|
||||
);
|
||||
|
||||
tmp<volScalarField> trSubDeltaT;
|
||||
|
||||
@ -158,7 +158,7 @@ int main(int argc, char *argv[])
|
||||
mesh
|
||||
),
|
||||
mesh,
|
||||
dimensionedScalar("0", dimMass/dimTime, 0)
|
||||
dimensionedScalar(dimMass/dimTime, Zero)
|
||||
);
|
||||
|
||||
mixture->correct();
|
||||
|
||||
@ -98,7 +98,7 @@ int main(int argc, char *argv[])
|
||||
mesh
|
||||
),
|
||||
mesh,
|
||||
dimensionedScalar("0", dimMass/dimTime, 0)
|
||||
dimensionedScalar(dimMass/dimTime, Zero)
|
||||
);
|
||||
|
||||
mixture->correct();
|
||||
|
||||
@ -52,7 +52,7 @@ Foam::phaseChangeTwoPhaseMixtures::Kunz::Kunz
|
||||
Cc_("Cc", dimless, phaseChangeTwoPhaseMixtureCoeffs_),
|
||||
Cv_("Cv", dimless, phaseChangeTwoPhaseMixtureCoeffs_),
|
||||
|
||||
p0_("0", pSat().dimensions(), 0.0),
|
||||
p0_(pSat().dimensions(), Zero),
|
||||
|
||||
mcCoeff_(Cc_*rho2()/tInf_),
|
||||
mvCoeff_(Cv_*rho2()/(0.5*rho1()*sqr(UInf_)*tInf_))
|
||||
|
||||
@ -52,7 +52,7 @@ Foam::phaseChangeTwoPhaseMixtures::Merkle::Merkle
|
||||
Cc_("Cc", dimless, phaseChangeTwoPhaseMixtureCoeffs_),
|
||||
Cv_("Cv", dimless, phaseChangeTwoPhaseMixtureCoeffs_),
|
||||
|
||||
p0_("0", pSat().dimensions(), 0.0),
|
||||
p0_(pSat().dimensions(), Zero),
|
||||
|
||||
mcCoeff_(Cc_/(0.5*sqr(UInf_)*tInf_)),
|
||||
mvCoeff_(Cv_*rho1()/(0.5*sqr(UInf_)*tInf_*rho2()))
|
||||
|
||||
@ -59,7 +59,7 @@ Foam::phaseChangeTwoPhaseMixtures::SchnerrSauer::SchnerrSauer
|
||||
Cc_("Cc", dimless, phaseChangeTwoPhaseMixtureCoeffs_),
|
||||
Cv_("Cv", dimless, phaseChangeTwoPhaseMixtureCoeffs_),
|
||||
|
||||
p0_("0", pSat().dimensions(), 0.0)
|
||||
p0_(pSat().dimensions(), Zero)
|
||||
{
|
||||
correct();
|
||||
}
|
||||
|
||||
@ -23,7 +23,7 @@ volVectorField U
|
||||
IOobject::AUTO_WRITE
|
||||
),
|
||||
mesh,
|
||||
dimensionedVector("U", dimVelocity, Zero)
|
||||
dimensionedVector(dimVelocity, Zero)
|
||||
);
|
||||
|
||||
surfaceScalarField phi
|
||||
@ -37,7 +37,7 @@ surfaceScalarField phi
|
||||
IOobject::AUTO_WRITE
|
||||
),
|
||||
mesh,
|
||||
dimensionedScalar("phi", dimArea*dimVelocity, 0)
|
||||
dimensionedScalar(dimArea*dimVelocity, Zero)
|
||||
);
|
||||
|
||||
multiphaseSystem fluid(U, phi);
|
||||
|
||||
@ -70,9 +70,7 @@ Foam::tmp<Foam::volScalarField> Foam::dragModels::interface::K
|
||||
const volScalarField& Ur
|
||||
) const
|
||||
{
|
||||
return tmp<volScalarField>
|
||||
(
|
||||
new volScalarField
|
||||
return tmp<volScalarField>::New
|
||||
(
|
||||
IOobject
|
||||
(
|
||||
@ -84,8 +82,7 @@ Foam::tmp<Foam::volScalarField> Foam::dragModels::interface::K
|
||||
false
|
||||
),
|
||||
Ur.mesh(),
|
||||
dimensionedScalar("K", dimDensity/dimTime, 0)
|
||||
)
|
||||
dimensionedScalar(dimDensity/dimTime, Zero)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@ -146,7 +146,7 @@ void Foam::multiphaseSystem::solveAlphas()
|
||||
mesh_
|
||||
),
|
||||
mesh_,
|
||||
dimensionedScalar("sumAlpha", dimless, 0)
|
||||
dimensionedScalar(dimless, Zero)
|
||||
);
|
||||
|
||||
phasei = 0;
|
||||
@ -398,7 +398,7 @@ Foam::multiphaseSystem::multiphaseSystem
|
||||
IOobject::AUTO_WRITE
|
||||
),
|
||||
mesh_,
|
||||
dimensionedScalar("alphas", dimless, 0.0)
|
||||
dimensionedScalar(dimless, Zero)
|
||||
),
|
||||
|
||||
sigmas_(lookup("sigmas")),
|
||||
@ -557,12 +557,7 @@ Foam::tmp<Foam::volScalarField> Foam::multiphaseSystem::Cvm
|
||||
mesh_
|
||||
),
|
||||
mesh_,
|
||||
dimensionedScalar
|
||||
(
|
||||
"Cvm",
|
||||
dimensionSet(1, -3, 0, 0, 0),
|
||||
0
|
||||
)
|
||||
dimensionedScalar(dimensionSet(1, -3, 0, 0, 0), Zero)
|
||||
)
|
||||
);
|
||||
|
||||
@ -613,12 +608,7 @@ Foam::tmp<Foam::volVectorField> Foam::multiphaseSystem::Svm
|
||||
mesh_
|
||||
),
|
||||
mesh_,
|
||||
dimensionedVector
|
||||
(
|
||||
"Svm",
|
||||
dimensionSet(1, -2, -2, 0, 0),
|
||||
Zero
|
||||
)
|
||||
dimensionedVector(dimensionSet(1, -2, -2, 0, 0), Zero)
|
||||
)
|
||||
);
|
||||
|
||||
@ -740,12 +730,7 @@ Foam::tmp<Foam::volScalarField> Foam::multiphaseSystem::dragCoeff
|
||||
mesh_
|
||||
),
|
||||
mesh_,
|
||||
dimensionedScalar
|
||||
(
|
||||
"dragCoeff",
|
||||
dimensionSet(1, -3, -1, 0, 0),
|
||||
0
|
||||
)
|
||||
dimensionedScalar(dimensionSet(1, -3, -1, 0, 0), Zero)
|
||||
)
|
||||
);
|
||||
|
||||
@ -788,12 +773,7 @@ Foam::tmp<Foam::surfaceScalarField> Foam::multiphaseSystem::surfaceTension
|
||||
mesh_
|
||||
),
|
||||
mesh_,
|
||||
dimensionedScalar
|
||||
(
|
||||
"surfaceTension",
|
||||
dimensionSet(1, -2, -2, 0, 0),
|
||||
0
|
||||
)
|
||||
dimensionedScalar(dimensionSet(1, -2, -2, 0, 0), Zero)
|
||||
)
|
||||
);
|
||||
tSurfaceTension.ref().setOriented();
|
||||
@ -840,7 +820,7 @@ Foam::multiphaseSystem::nearInterface() const
|
||||
mesh_
|
||||
),
|
||||
mesh_,
|
||||
dimensionedScalar("nearInterface", dimless, 0.0)
|
||||
dimensionedScalar(dimless, Zero)
|
||||
)
|
||||
);
|
||||
|
||||
@ -897,7 +877,7 @@ void Foam::multiphaseSystem::solve()
|
||||
mesh_
|
||||
),
|
||||
mesh_,
|
||||
dimensionedScalar("0", dimensionSet(0, 3, -1, 0, 0), 0)
|
||||
dimensionedScalar(dimensionSet(0, 3, -1, 0, 0), Zero)
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
@ -99,7 +99,7 @@ Foam::phaseModel::phaseModel
|
||||
mesh
|
||||
),
|
||||
mesh,
|
||||
dimensionedVector("0", dimVelocity/dimTime, Zero)
|
||||
dimensionedVector(dimVelocity/dimTime, Zero)
|
||||
),
|
||||
alphaPhi_
|
||||
(
|
||||
@ -110,7 +110,7 @@ Foam::phaseModel::phaseModel
|
||||
mesh
|
||||
),
|
||||
mesh,
|
||||
dimensionedScalar("0", dimensionSet(0, 3, -1, 0, 0), 0)
|
||||
dimensionedScalar(dimensionSet(0, 3, -1, 0, 0), Zero)
|
||||
)
|
||||
{
|
||||
alphaPhi_.setOriented();
|
||||
|
||||
@ -55,7 +55,7 @@
|
||||
IOobject::AUTO_WRITE
|
||||
),
|
||||
mesh,
|
||||
dimensionedScalar("phiHbyA", dimArea*dimVelocity, 0)
|
||||
dimensionedScalar(dimArea*dimVelocity, Zero)
|
||||
);
|
||||
|
||||
volScalarField rho("rho", fluid.rho());
|
||||
@ -173,7 +173,7 @@
|
||||
mesh
|
||||
),
|
||||
mesh,
|
||||
dimensionedScalar("rAUf", dimensionSet(-1, 3, 1, 0, 0), 0)
|
||||
dimensionedScalar(dimensionSet(-1, 3, 1, 0, 0), Zero)
|
||||
);
|
||||
|
||||
phasei = 0;
|
||||
|
||||
@ -87,7 +87,7 @@ Foam::multiphaseMixture::multiphaseMixture
|
||||
IOobject::NO_WRITE
|
||||
),
|
||||
mesh_,
|
||||
dimensionedScalar("rhoPhi", dimMass/dimTime, 0.0)
|
||||
dimensionedScalar(dimMass/dimTime, Zero)
|
||||
),
|
||||
|
||||
alphas_
|
||||
@ -101,7 +101,7 @@ Foam::multiphaseMixture::multiphaseMixture
|
||||
IOobject::AUTO_WRITE
|
||||
),
|
||||
mesh_,
|
||||
dimensionedScalar("alphas", dimless, 0.0)
|
||||
dimensionedScalar(dimless, Zero)
|
||||
),
|
||||
|
||||
nu_
|
||||
@ -260,12 +260,7 @@ Foam::multiphaseMixture::surfaceTensionForce() const
|
||||
mesh_
|
||||
),
|
||||
mesh_,
|
||||
dimensionedScalar
|
||||
(
|
||||
"surfaceTensionForce",
|
||||
dimensionSet(1, -2, -2, 0, 0),
|
||||
0.0
|
||||
)
|
||||
dimensionedScalar(dimensionSet(1, -2, -2, 0, 0), Zero)
|
||||
)
|
||||
);
|
||||
|
||||
@ -330,7 +325,7 @@ void Foam::multiphaseMixture::solve()
|
||||
mesh_
|
||||
),
|
||||
mesh_,
|
||||
dimensionedScalar("0", rhoPhi_.dimensions(), 0)
|
||||
dimensionedScalar(rhoPhi_.dimensions(), Zero)
|
||||
);
|
||||
|
||||
dimensionedScalar totalDeltaT = runTime.deltaT();
|
||||
@ -542,7 +537,7 @@ Foam::multiphaseMixture::nearInterface() const
|
||||
mesh_
|
||||
),
|
||||
mesh_,
|
||||
dimensionedScalar("nearInterface", dimless, 0.0)
|
||||
dimensionedScalar(dimless, Zero)
|
||||
)
|
||||
);
|
||||
|
||||
@ -629,7 +624,7 @@ void Foam::multiphaseMixture::solveAlphas
|
||||
|
||||
MULES::limitSum(alphaPhiCorrs);
|
||||
|
||||
rhoPhi_ = dimensionedScalar("0", dimensionSet(1, 0, -1, 0, 0), 0);
|
||||
rhoPhi_ = dimensionedScalar(dimensionSet(1, 0, -1, 0, 0), Zero);
|
||||
|
||||
volScalarField sumAlpha
|
||||
(
|
||||
@ -640,7 +635,7 @@ void Foam::multiphaseMixture::solveAlphas
|
||||
mesh_
|
||||
),
|
||||
mesh_,
|
||||
dimensionedScalar("sumAlpha", dimless, 0)
|
||||
dimensionedScalar(dimless, Zero)
|
||||
);
|
||||
|
||||
phasei = 0;
|
||||
|
||||
@ -49,7 +49,7 @@ volVectorField zeta
|
||||
IOobject::AUTO_WRITE
|
||||
),
|
||||
mesh,
|
||||
dimensionedVector("zero", dimLength, Zero)
|
||||
dimensionedVector(dimLength, Zero)
|
||||
);
|
||||
|
||||
Info<< "Creating field p_gh\n" << endl;
|
||||
|
||||
@ -116,9 +116,7 @@ Foam::interfaceCompositionModels::Henry<Thermo, OtherThermo>::YfPrime
|
||||
const volScalarField& Tf
|
||||
) const
|
||||
{
|
||||
return tmp<volScalarField>
|
||||
(
|
||||
new volScalarField
|
||||
return tmp<volScalarField>::New
|
||||
(
|
||||
IOobject
|
||||
(
|
||||
@ -127,8 +125,7 @@ Foam::interfaceCompositionModels::Henry<Thermo, OtherThermo>::YfPrime
|
||||
this->pair_.phase1().mesh()
|
||||
),
|
||||
this->pair_.phase1().mesh(),
|
||||
dimensionedScalar("zero", dimless/dimTemperature, 0)
|
||||
)
|
||||
dimensionedScalar(dimless/dimTemperature, Zero)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@ -149,7 +149,7 @@ Foam::InterfaceCompositionModel<Thermo, OtherThermo>::D
|
||||
p.mesh()
|
||||
),
|
||||
p.mesh(),
|
||||
dimensionedScalar("zero", dimArea/dimTime, 0)
|
||||
dimensionedScalar(dimArea/dimTime, Zero)
|
||||
)
|
||||
);
|
||||
|
||||
@ -203,7 +203,7 @@ Foam::InterfaceCompositionModel<Thermo, OtherThermo>::L
|
||||
p.mesh()
|
||||
),
|
||||
p.mesh(),
|
||||
dimensionedScalar("zero", dimEnergy/dimMass, 0)
|
||||
dimensionedScalar(dimEnergy/dimMass, Zero)
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
@ -55,7 +55,7 @@ Foam::interfaceCompositionModels::Raoult<Thermo, OtherThermo>::Raoult
|
||||
pair.phase1().mesh()
|
||||
),
|
||||
pair.phase1().mesh(),
|
||||
dimensionedScalar("zero", dimless/dimTemperature, 0)
|
||||
dimensionedScalar(dimless/dimTemperature, Zero)
|
||||
)
|
||||
{
|
||||
forAllConstIter(hashedWordList, this->speciesNames_, iter)
|
||||
|
||||
@ -69,9 +69,7 @@ Foam::saturationModels::constantSaturationConditions::pSat
|
||||
const volScalarField& T
|
||||
) const
|
||||
{
|
||||
return tmp<volScalarField>
|
||||
(
|
||||
new volScalarField
|
||||
return tmp<volScalarField>::New
|
||||
(
|
||||
IOobject
|
||||
(
|
||||
@ -84,7 +82,6 @@ Foam::saturationModels::constantSaturationConditions::pSat
|
||||
),
|
||||
T.mesh(),
|
||||
pSat_
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
@ -95,9 +92,7 @@ Foam::saturationModels::constantSaturationConditions::pSatPrime
|
||||
const volScalarField& T
|
||||
) const
|
||||
{
|
||||
return tmp<volScalarField>
|
||||
(
|
||||
new volScalarField
|
||||
return tmp<volScalarField>::New
|
||||
(
|
||||
IOobject
|
||||
(
|
||||
@ -109,8 +104,7 @@ Foam::saturationModels::constantSaturationConditions::pSatPrime
|
||||
false
|
||||
),
|
||||
T.mesh(),
|
||||
dimensionedScalar("zero", dimPressure/dimTemperature, 0)
|
||||
)
|
||||
dimensionedScalar(dimPressure/dimTemperature, Zero)
|
||||
);
|
||||
}
|
||||
|
||||
@ -121,9 +115,7 @@ Foam::saturationModels::constantSaturationConditions::lnPSat
|
||||
const volScalarField& T
|
||||
) const
|
||||
{
|
||||
return tmp<volScalarField>
|
||||
(
|
||||
new volScalarField
|
||||
return tmp<volScalarField>::New
|
||||
(
|
||||
IOobject
|
||||
(
|
||||
@ -136,7 +128,6 @@ Foam::saturationModels::constantSaturationConditions::lnPSat
|
||||
),
|
||||
T.mesh(),
|
||||
dimensionedScalar("lnPSat", dimless, log(pSat_.value()))
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
@ -147,9 +138,7 @@ Foam::saturationModels::constantSaturationConditions::Tsat
|
||||
const volScalarField& p
|
||||
) const
|
||||
{
|
||||
return tmp<volScalarField>
|
||||
(
|
||||
new volScalarField
|
||||
return tmp<volScalarField>::New
|
||||
(
|
||||
IOobject
|
||||
(
|
||||
@ -162,7 +151,6 @@ Foam::saturationModels::constantSaturationConditions::Tsat
|
||||
),
|
||||
p.mesh(),
|
||||
Tsat_
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@ -110,7 +110,7 @@ Foam::saturationModels::function1::Tsat
|
||||
IOobject::NO_WRITE
|
||||
),
|
||||
p.mesh(),
|
||||
dimensionedScalar("zero", dimTemperature, 0)
|
||||
dimensionedScalar(dimTemperature, Zero)
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
@ -107,7 +107,7 @@ Foam::saturationModels::polynomial::Tsat
|
||||
IOobject::NO_WRITE
|
||||
),
|
||||
p.mesh(),
|
||||
dimensionedScalar("zero", dimTemperature, 0)
|
||||
dimensionedScalar(dimTemperature, Zero)
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
@ -101,7 +101,7 @@ Foam::tmp<Foam::volScalarField> Foam::dragModels::segregated::K() const
|
||||
mesh
|
||||
),
|
||||
mesh,
|
||||
dimensionedScalar("L", dimLength, 0),
|
||||
dimensionedScalar(dimLength, Zero),
|
||||
zeroGradientFvPatchField<scalar>::typeName
|
||||
);
|
||||
L.primitiveFieldRef() = cbrt(mesh.V());
|
||||
|
||||
@ -65,10 +65,7 @@ Foam::liftModels::constantLiftCoefficient::Cl() const
|
||||
{
|
||||
const fvMesh& mesh(this->pair_.phase1().mesh());
|
||||
|
||||
return
|
||||
tmp<volScalarField>
|
||||
(
|
||||
new volScalarField
|
||||
return tmp<volScalarField>::New
|
||||
(
|
||||
IOobject
|
||||
(
|
||||
@ -78,7 +75,6 @@ Foam::liftModels::constantLiftCoefficient::Cl() const
|
||||
),
|
||||
mesh,
|
||||
Cl_
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@ -63,9 +63,7 @@ Foam::tmp<Foam::volScalarField> Foam::liftModels::noLift::Cl() const
|
||||
{
|
||||
const fvMesh& mesh(this->pair_.phase1().mesh());
|
||||
|
||||
return tmp<volScalarField>
|
||||
(
|
||||
new volScalarField
|
||||
return tmp<volScalarField>::New
|
||||
(
|
||||
IOobject
|
||||
(
|
||||
@ -77,8 +75,7 @@ Foam::tmp<Foam::volScalarField> Foam::liftModels::noLift::Cl() const
|
||||
false
|
||||
),
|
||||
mesh,
|
||||
dimensionedScalar("Cl", dimless, 0)
|
||||
)
|
||||
dimensionedScalar(dimless, Zero)
|
||||
);
|
||||
}
|
||||
|
||||
@ -87,9 +84,7 @@ Foam::tmp<Foam::volVectorField> Foam::liftModels::noLift::F() const
|
||||
{
|
||||
const fvMesh& mesh(this->pair_.phase1().mesh());
|
||||
|
||||
return tmp<volVectorField>
|
||||
(
|
||||
new volVectorField
|
||||
return tmp<volVectorField>::New
|
||||
(
|
||||
IOobject
|
||||
(
|
||||
@ -101,8 +96,7 @@ Foam::tmp<Foam::volVectorField> Foam::liftModels::noLift::F() const
|
||||
false
|
||||
),
|
||||
mesh,
|
||||
dimensionedVector("zero", dimF, Zero)
|
||||
)
|
||||
dimensionedVector(dimF, Zero)
|
||||
);
|
||||
}
|
||||
|
||||
@ -111,9 +105,7 @@ Foam::tmp<Foam::surfaceScalarField> Foam::liftModels::noLift::Ff() const
|
||||
{
|
||||
const fvMesh& mesh(this->pair_.phase1().mesh());
|
||||
|
||||
return tmp<surfaceScalarField>
|
||||
(
|
||||
new surfaceScalarField
|
||||
return tmp<surfaceScalarField>::New
|
||||
(
|
||||
IOobject
|
||||
(
|
||||
@ -125,8 +117,7 @@ Foam::tmp<Foam::surfaceScalarField> Foam::liftModels::noLift::Ff() const
|
||||
false
|
||||
),
|
||||
mesh,
|
||||
dimensionedScalar("zero", dimF*dimArea, 0)
|
||||
)
|
||||
dimensionedScalar(dimF*dimArea, Zero)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@ -70,9 +70,7 @@ Foam::turbulentDispersionModels::noTurbulentDispersion::D() const
|
||||
{
|
||||
const fvMesh& mesh(this->pair_.phase1().mesh());
|
||||
|
||||
return tmp<volScalarField>
|
||||
(
|
||||
new volScalarField
|
||||
return tmp<volScalarField>::New
|
||||
(
|
||||
IOobject
|
||||
(
|
||||
@ -84,8 +82,7 @@ Foam::turbulentDispersionModels::noTurbulentDispersion::D() const
|
||||
false
|
||||
),
|
||||
mesh,
|
||||
dimensionedScalar("zero", dimD, 0)
|
||||
)
|
||||
dimensionedScalar(dimD, Zero)
|
||||
);
|
||||
}
|
||||
|
||||
@ -95,10 +92,7 @@ Foam::turbulentDispersionModels::noTurbulentDispersion::F() const
|
||||
{
|
||||
const fvMesh& mesh(this->pair_.phase1().mesh());
|
||||
|
||||
return
|
||||
tmp<volVectorField>
|
||||
(
|
||||
new volVectorField
|
||||
return tmp<volVectorField>::New
|
||||
(
|
||||
IOobject
|
||||
(
|
||||
@ -107,8 +101,7 @@ Foam::turbulentDispersionModels::noTurbulentDispersion::F() const
|
||||
mesh
|
||||
),
|
||||
mesh,
|
||||
dimensionedVector("zero", dimF, Zero)
|
||||
)
|
||||
dimensionedVector(dimF, Zero)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@ -65,10 +65,7 @@ Foam::virtualMassModels::noVirtualMass::Cvm() const
|
||||
{
|
||||
const fvMesh& mesh(this->pair_.phase1().mesh());
|
||||
|
||||
return
|
||||
tmp<volScalarField>
|
||||
(
|
||||
new volScalarField
|
||||
return tmp<volScalarField>::New
|
||||
(
|
||||
IOobject
|
||||
(
|
||||
@ -77,8 +74,7 @@ Foam::virtualMassModels::noVirtualMass::Cvm() const
|
||||
mesh
|
||||
),
|
||||
mesh,
|
||||
dimensionedScalar("zero", dimless, 0)
|
||||
)
|
||||
dimensionedScalar(dimless, Zero)
|
||||
);
|
||||
}
|
||||
|
||||
@ -86,7 +82,7 @@ Foam::virtualMassModels::noVirtualMass::Cvm() const
|
||||
Foam::tmp<Foam::volScalarField>
|
||||
Foam::virtualMassModels::noVirtualMass::K() const
|
||||
{
|
||||
return Cvm()*dimensionedScalar("zero", dimDensity, 0);
|
||||
return Cvm()*dimensionedScalar("zero", dimDensity, Zero);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -76,7 +76,7 @@ Foam::tmp<Foam::volVectorField> Foam::wallLubricationModels::Antal::Fi() const
|
||||
(
|
||||
max
|
||||
(
|
||||
dimensionedScalar("zero", dimless/dimLength, 0),
|
||||
dimensionedScalar(dimless/dimLength, Zero),
|
||||
Cw1_/pair_.dispersed().d() + Cw2_/yWall()
|
||||
)
|
||||
*pair_.continuous().rho()
|
||||
|
||||
@ -86,7 +86,7 @@ Foam::tmp<Foam::volVectorField> Foam::wallLubricationModels::Frank::Fi() const
|
||||
)
|
||||
*max
|
||||
(
|
||||
dimensionedScalar("zero", dimless/dimLength, 0.0),
|
||||
dimensionedScalar(dimless/dimLength, Zero),
|
||||
(1.0 - yTilde)/(Cwd_*y*pow(yTilde, p_ - 1.0))
|
||||
)
|
||||
*pair_.continuous().rho()
|
||||
|
||||
@ -69,9 +69,7 @@ Foam::wallLubricationModels::noWallLubrication::Fi() const
|
||||
{
|
||||
const fvMesh& mesh(this->pair_.phase1().mesh());
|
||||
|
||||
return tmp<volVectorField>
|
||||
(
|
||||
new volVectorField
|
||||
return tmp<volVectorField>::New
|
||||
(
|
||||
IOobject
|
||||
(
|
||||
@ -83,8 +81,7 @@ Foam::wallLubricationModels::noWallLubrication::Fi() const
|
||||
false
|
||||
),
|
||||
mesh,
|
||||
dimensionedVector("zero", dimF, Zero)
|
||||
)
|
||||
dimensionedVector(dimF, Zero)
|
||||
);
|
||||
}
|
||||
|
||||
@ -94,9 +91,7 @@ Foam::wallLubricationModels::noWallLubrication::F() const
|
||||
{
|
||||
const fvMesh& mesh(this->pair_.phase1().mesh());
|
||||
|
||||
return tmp<volVectorField>
|
||||
(
|
||||
new volVectorField
|
||||
return tmp<volVectorField>::New
|
||||
(
|
||||
IOobject
|
||||
(
|
||||
@ -108,8 +103,7 @@ Foam::wallLubricationModels::noWallLubrication::F() const
|
||||
false
|
||||
),
|
||||
mesh,
|
||||
dimensionedVector("zero", dimF, Zero)
|
||||
)
|
||||
dimensionedVector(dimF, Zero)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@ -195,7 +195,7 @@ Foam::BlendedInterfacialModel<ModelType>::K() const
|
||||
false
|
||||
),
|
||||
phase1_.mesh(),
|
||||
dimensionedScalar("zero", ModelType::dimK, 0)
|
||||
dimensionedScalar(ModelType::dimK, Zero)
|
||||
)
|
||||
);
|
||||
|
||||
@ -255,7 +255,7 @@ Foam::BlendedInterfacialModel<ModelType>::K(const scalar residualAlpha) const
|
||||
false
|
||||
),
|
||||
phase1_.mesh(),
|
||||
dimensionedScalar("zero", ModelType::dimK, 0)
|
||||
dimensionedScalar(ModelType::dimK, Zero)
|
||||
)
|
||||
);
|
||||
|
||||
@ -321,7 +321,7 @@ Foam::BlendedInterfacialModel<ModelType>::Kf() const
|
||||
false
|
||||
),
|
||||
phase1_.mesh(),
|
||||
dimensionedScalar("zero", ModelType::dimK, 0)
|
||||
dimensionedScalar(ModelType::dimK, Zero)
|
||||
)
|
||||
);
|
||||
|
||||
@ -384,7 +384,7 @@ Foam::BlendedInterfacialModel<ModelType>::F() const
|
||||
false
|
||||
),
|
||||
phase1_.mesh(),
|
||||
dimensioned<Type>("zero", ModelType::dimF, Zero)
|
||||
dimensioned<Type>(ModelType::dimF, Zero)
|
||||
)
|
||||
);
|
||||
|
||||
@ -452,7 +452,7 @@ Foam::BlendedInterfacialModel<ModelType>::Ff() const
|
||||
false
|
||||
),
|
||||
phase1_.mesh(),
|
||||
dimensionedScalar("zero", ModelType::dimF*dimArea, 0)
|
||||
dimensionedScalar(ModelType::dimF*dimArea, Zero)
|
||||
)
|
||||
);
|
||||
x.ref().setOriented();
|
||||
@ -515,7 +515,7 @@ Foam::BlendedInterfacialModel<ModelType>::D() const
|
||||
false
|
||||
),
|
||||
phase1_.mesh(),
|
||||
dimensionedScalar("zero", ModelType::dimD, 0)
|
||||
dimensionedScalar(ModelType::dimD, Zero)
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
@ -84,7 +84,7 @@ HeatAndMassTransferPhaseSystem
|
||||
IOobject::AUTO_WRITE
|
||||
),
|
||||
this->mesh(),
|
||||
dimensionedScalar("zero", dimDensity/dimTime, 0)
|
||||
dimensionedScalar(dimDensity/dimTime, Zero)
|
||||
)
|
||||
);
|
||||
|
||||
@ -100,7 +100,7 @@ HeatAndMassTransferPhaseSystem
|
||||
this->mesh()
|
||||
),
|
||||
this->mesh(),
|
||||
dimensionedScalar("zero", dimDensity/dimTime, 0)
|
||||
dimensionedScalar(dimDensity/dimTime, Zero)
|
||||
)
|
||||
);
|
||||
|
||||
@ -188,7 +188,7 @@ Foam::HeatAndMassTransferPhaseSystem<BasePhaseSystem>::dmdt
|
||||
this->mesh_
|
||||
),
|
||||
this->mesh_,
|
||||
dimensionedScalar("zero", dimDensity/dimTime, 0)
|
||||
dimensionedScalar(dimDensity/dimTime, Zero)
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
@ -74,9 +74,7 @@ Foam::HeatTransferPhaseSystem<BasePhaseSystem>::dmdt
|
||||
const phasePairKey& key
|
||||
) const
|
||||
{
|
||||
return tmp<volScalarField>
|
||||
(
|
||||
new volScalarField
|
||||
return tmp<volScalarField>::New
|
||||
(
|
||||
IOobject
|
||||
(
|
||||
@ -89,8 +87,7 @@ Foam::HeatTransferPhaseSystem<BasePhaseSystem>::dmdt
|
||||
this->mesh().time()
|
||||
),
|
||||
this->mesh(),
|
||||
dimensionedScalar("zero", dimDensity/dimTime, 0)
|
||||
)
|
||||
dimensionedScalar(dimDensity/dimTime, Zero)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@ -99,7 +99,7 @@ massTransfer() const
|
||||
*this->dmdtExplicit_[pair];
|
||||
|
||||
*this->dmdtExplicit_[pair] =
|
||||
dimensionedScalar("zero", dimDensity/dimTime, 0);
|
||||
dimensionedScalar(dimDensity/dimTime, Zero);
|
||||
}
|
||||
|
||||
// Sum up the contribution from each interface composition model
|
||||
@ -225,7 +225,7 @@ correctThermo()
|
||||
this->mesh()
|
||||
),
|
||||
this->mesh(),
|
||||
dimensionedScalar("zero", dimEnergy/dimVolume/dimTime, 0)
|
||||
dimensionedScalar(dimEnergy/dimVolume/dimTime, Zero)
|
||||
);
|
||||
volScalarField mDotLPrime
|
||||
(
|
||||
@ -236,7 +236,7 @@ correctThermo()
|
||||
this->mesh()
|
||||
),
|
||||
this->mesh(),
|
||||
dimensionedScalar("zero", mDotL.dimensions()/dimTemperature, 0)
|
||||
dimensionedScalar(mDotL.dimensions()/dimTemperature, Zero)
|
||||
);
|
||||
|
||||
volScalarField& Tf = *this->Tf_[pair];
|
||||
|
||||
@ -166,12 +166,7 @@ Foam::MomentumTransferPhaseSystem<BasePhaseSystem>::Kd
|
||||
this->mesh_
|
||||
),
|
||||
this->mesh_,
|
||||
dimensionedScalar
|
||||
(
|
||||
IOobject::groupName("Kd", phase.name()),
|
||||
dimensionSet(1, -3, -1, 0, 0),
|
||||
0
|
||||
)
|
||||
dimensionedScalar(dimensionSet(1, -3, -1, 0, 0), Zero)
|
||||
)
|
||||
);
|
||||
|
||||
@ -210,11 +205,8 @@ Foam::MomentumTransferPhaseSystem<BasePhaseSystem>::Vm
|
||||
{
|
||||
return virtualMassModels_[key]->K();
|
||||
}
|
||||
else
|
||||
{
|
||||
return tmp<volScalarField>
|
||||
(
|
||||
new volScalarField
|
||||
|
||||
return tmp<volScalarField>::New
|
||||
(
|
||||
IOobject
|
||||
(
|
||||
@ -226,10 +218,8 @@ Foam::MomentumTransferPhaseSystem<BasePhaseSystem>::Vm
|
||||
false
|
||||
),
|
||||
this->mesh_,
|
||||
dimensionedScalar("zero", virtualMassModel::dimK, 0)
|
||||
)
|
||||
dimensionedScalar(virtualMassModel::dimK, Zero)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -244,11 +234,8 @@ Foam::MomentumTransferPhaseSystem<BasePhaseSystem>::Vmf
|
||||
{
|
||||
return virtualMassModels_[key]->Kf();
|
||||
}
|
||||
else
|
||||
{
|
||||
return tmp<surfaceScalarField>
|
||||
(
|
||||
new surfaceScalarField
|
||||
|
||||
return tmp<surfaceScalarField>::New
|
||||
(
|
||||
IOobject
|
||||
(
|
||||
@ -260,10 +247,8 @@ Foam::MomentumTransferPhaseSystem<BasePhaseSystem>::Vmf
|
||||
false
|
||||
),
|
||||
this->mesh_,
|
||||
dimensionedScalar("zero", virtualMassModel::dimK, 0)
|
||||
)
|
||||
dimensionedScalar(virtualMassModel::dimK, Zero)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -288,11 +273,8 @@ Foam::MomentumTransferPhaseSystem<BasePhaseSystem>::F
|
||||
{
|
||||
return wallLubricationModels_[key]->template F<vector>();
|
||||
}
|
||||
else
|
||||
{
|
||||
return tmp<volVectorField>
|
||||
(
|
||||
new volVectorField
|
||||
|
||||
return tmp<volVectorField>::New
|
||||
(
|
||||
IOobject
|
||||
(
|
||||
@ -304,10 +286,8 @@ Foam::MomentumTransferPhaseSystem<BasePhaseSystem>::F
|
||||
false
|
||||
),
|
||||
this->mesh_,
|
||||
dimensionedVector("zero", liftModel::dimF, Zero)
|
||||
)
|
||||
dimensionedVector(liftModel::dimF, Zero)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -348,7 +328,7 @@ Foam::MomentumTransferPhaseSystem<BasePhaseSystem>::Ff
|
||||
false
|
||||
),
|
||||
this->mesh_,
|
||||
dimensionedScalar("zero", liftModel::dimF*dimArea, 0)
|
||||
dimensionedScalar(liftModel::dimF*dimArea, Zero)
|
||||
)
|
||||
);
|
||||
|
||||
@ -370,11 +350,8 @@ Foam::MomentumTransferPhaseSystem<BasePhaseSystem>::D
|
||||
{
|
||||
return turbulentDispersionModels_[key]->D();
|
||||
}
|
||||
else
|
||||
{
|
||||
return tmp<volScalarField>
|
||||
(
|
||||
new volScalarField
|
||||
|
||||
return tmp<volScalarField>::New
|
||||
(
|
||||
IOobject
|
||||
(
|
||||
@ -386,10 +363,8 @@ Foam::MomentumTransferPhaseSystem<BasePhaseSystem>::D
|
||||
false
|
||||
),
|
||||
this->mesh_,
|
||||
dimensionedScalar("zero", turbulentDispersionModel::dimD, 0)
|
||||
)
|
||||
dimensionedScalar(turbulentDispersionModel::dimD, Zero)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -504,7 +479,7 @@ Foam::volVectorField& Foam::MomentumTransferPhaseSystem<BasePhaseSystem>::setF
|
||||
false
|
||||
),
|
||||
this->mesh_,
|
||||
dimensionedVector("zero", liftModel::dimF, Zero)
|
||||
dimensionedVector(liftModel::dimF, Zero)
|
||||
)
|
||||
);
|
||||
}
|
||||
@ -575,9 +550,8 @@ Foam::MomentumTransferPhaseSystem<BasePhaseSystem>::setPhiD
|
||||
this->mesh_,
|
||||
dimensionedScalar
|
||||
(
|
||||
"zero",
|
||||
dimTime*dimArea*turbulentDispersionModel::dimF/dimDensity,
|
||||
0
|
||||
Zero
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
@ -66,7 +66,7 @@ ThermalPhaseChangePhaseSystem
|
||||
IOobject::AUTO_WRITE
|
||||
),
|
||||
this->mesh(),
|
||||
dimensionedScalar("zero", dimDensity/dimTime, 0)
|
||||
dimensionedScalar(dimDensity/dimTime, Zero)
|
||||
)
|
||||
);
|
||||
}
|
||||
@ -128,7 +128,7 @@ Foam::ThermalPhaseChangePhaseSystem<BasePhaseSystem>::heatTransfer() const
|
||||
false
|
||||
),
|
||||
phase.mesh(),
|
||||
dimensionedScalar("",dimensionSet(1,-1,-3,0,0),0.0)
|
||||
dimensionedScalar(dimensionSet(1,-1,-3,0,0), Zero)
|
||||
);
|
||||
|
||||
if
|
||||
@ -274,7 +274,7 @@ Foam::ThermalPhaseChangePhaseSystem<BasePhaseSystem>::iDmdt
|
||||
this->mesh_
|
||||
),
|
||||
this->mesh_,
|
||||
dimensionedScalar("zero", dimDensity/dimTime, 0)
|
||||
dimensionedScalar(dimDensity/dimTime, Zero)
|
||||
)
|
||||
);
|
||||
|
||||
@ -383,7 +383,7 @@ void Foam::ThermalPhaseChangePhaseSystem<BasePhaseSystem>::correctThermo()
|
||||
}
|
||||
else
|
||||
{
|
||||
iDmdtNew == dimensionedScalar("0",dmdt.dimensions(), 0);
|
||||
iDmdtNew == dimensionedScalar(dmdt.dimensions(), Zero);
|
||||
}
|
||||
|
||||
volScalarField H1(this->heatTransferModels_[pair][pair.first()]->K());
|
||||
@ -430,7 +430,7 @@ void Foam::ThermalPhaseChangePhaseSystem<BasePhaseSystem>::correctThermo()
|
||||
false
|
||||
),
|
||||
this->mesh(),
|
||||
dimensionedScalar("zero", dimDensity/dimTime, 0)
|
||||
dimensionedScalar(dimDensity/dimTime, Zero)
|
||||
);
|
||||
|
||||
if
|
||||
|
||||
@ -46,7 +46,7 @@ Foam::AnisothermalPhaseModel<BasePhaseModel>::AnisothermalPhaseModel
|
||||
fluid.mesh()
|
||||
),
|
||||
fluid.mesh(),
|
||||
dimensionedScalar("K", sqr(dimVelocity), scalar(0))
|
||||
dimensionedScalar(sqr(dimVelocity), Zero)
|
||||
)
|
||||
{}
|
||||
|
||||
|
||||
@ -67,9 +67,7 @@ template<class BasePhaseModel>
|
||||
Foam::tmp<Foam::volScalarField>
|
||||
Foam::InertPhaseModel<BasePhaseModel>::Qdot() const
|
||||
{
|
||||
return tmp<volScalarField>
|
||||
(
|
||||
new volScalarField
|
||||
return tmp<volScalarField>::New
|
||||
(
|
||||
IOobject
|
||||
(
|
||||
@ -78,8 +76,7 @@ Foam::InertPhaseModel<BasePhaseModel>::Qdot() const
|
||||
this->mesh()
|
||||
),
|
||||
this->mesh(),
|
||||
dimensionedScalar("zero", dimEnergy/dimTime/dimVolume, 0)
|
||||
)
|
||||
dimensionedScalar(dimEnergy/dimTime/dimVolume, Zero)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@ -151,7 +151,7 @@ Foam::MovingPhaseModel<BasePhaseModel>::MovingPhaseModel
|
||||
fluid.mesh()
|
||||
),
|
||||
fluid.mesh(),
|
||||
dimensionedScalar("0", dimensionSet(0, 3, -1, 0, 0), 0)
|
||||
dimensionedScalar(dimensionSet(0, 3, -1, 0, 0), Zero)
|
||||
),
|
||||
alphaRhoPhi_
|
||||
(
|
||||
@ -162,7 +162,7 @@ Foam::MovingPhaseModel<BasePhaseModel>::MovingPhaseModel
|
||||
fluid.mesh()
|
||||
),
|
||||
fluid.mesh(),
|
||||
dimensionedScalar("0", dimensionSet(1, 0, -1, 0, 0), 0)
|
||||
dimensionedScalar(dimensionSet(1, 0, -1, 0, 0), Zero)
|
||||
),
|
||||
DUDt_
|
||||
(
|
||||
@ -173,7 +173,7 @@ Foam::MovingPhaseModel<BasePhaseModel>::MovingPhaseModel
|
||||
fluid.mesh()
|
||||
),
|
||||
fluid.mesh(),
|
||||
dimensionedVector("0", dimAcceleration, Zero)
|
||||
dimensionedVector(dimAcceleration, Zero)
|
||||
),
|
||||
divU_(nullptr),
|
||||
turbulence_
|
||||
@ -197,7 +197,7 @@ Foam::MovingPhaseModel<BasePhaseModel>::MovingPhaseModel
|
||||
fluid.mesh()
|
||||
),
|
||||
fluid.mesh(),
|
||||
dimensionedScalar("0", dimDensity/dimTime, 0)
|
||||
dimensionedScalar(dimDensity/dimTime, Zero)
|
||||
)
|
||||
{
|
||||
alphaPhi_.setOriented();
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user