mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
GeometricField::dimensionedInternalField() -> GeometricField::dimensionedInternalFieldRef()
See also commit 22f4ad32b1
This commit is contained in:
@ -58,7 +58,7 @@ License
|
||||
|
||||
// Flow time scale
|
||||
{
|
||||
rDeltaT.dimensionedInternalField() =
|
||||
rDeltaT.dimensionedInternalFieldRef() =
|
||||
(
|
||||
fvc::surfaceSum(mag(phi))().dimensionedInternalField()
|
||||
/((2*maxCo)*mesh.V()*rho.dimensionedInternalField())
|
||||
@ -84,7 +84,7 @@ License
|
||||
<< gMin(1/(rDeltaTT.field() + VSMALL)) << ", "
|
||||
<< gMax(1/(rDeltaTT.field() + VSMALL)) << endl;
|
||||
|
||||
rDeltaT.dimensionedInternalField() = max
|
||||
rDeltaT.dimensionedInternalFieldRef() = max
|
||||
(
|
||||
rDeltaT.dimensionedInternalField(),
|
||||
rDeltaTT
|
||||
|
||||
@ -185,7 +185,7 @@ int main(int argc, char *argv[])
|
||||
// --- Solve momentum
|
||||
solve(fvm::ddt(rhoU) + fvc::div(phiUp));
|
||||
|
||||
U.dimensionedInternalField() =
|
||||
U.dimensionedInternalFieldRef() =
|
||||
rhoU.dimensionedInternalField()
|
||||
/rho.dimensionedInternalField();
|
||||
U.correctBoundaryConditions();
|
||||
@ -240,7 +240,7 @@ int main(int argc, char *argv[])
|
||||
rhoE = rho*(e + 0.5*magSqr(U));
|
||||
}
|
||||
|
||||
p.dimensionedInternalField() =
|
||||
p.dimensionedInternalFieldRef() =
|
||||
rho.dimensionedInternalField()
|
||||
/psi.dimensionedInternalField();
|
||||
p.correctBoundaryConditions();
|
||||
|
||||
@ -178,7 +178,7 @@ int main(int argc, char *argv[])
|
||||
// --- Solve momentum
|
||||
solve(fvm::ddt(rhoU) + fvc::div(phiUp));
|
||||
|
||||
U.dimensionedInternalField() =
|
||||
U.dimensionedInternalFieldRef() =
|
||||
rhoU.dimensionedInternalField()
|
||||
/rho.dimensionedInternalField();
|
||||
U.correctBoundaryConditions();
|
||||
@ -233,7 +233,7 @@ int main(int argc, char *argv[])
|
||||
rhoE = rho*(e + 0.5*magSqr(U));
|
||||
}
|
||||
|
||||
p.dimensionedInternalField() =
|
||||
p.dimensionedInternalFieldRef() =
|
||||
rho.dimensionedInternalField()
|
||||
/psi.dimensionedInternalField();
|
||||
p.correctBoundaryConditions();
|
||||
|
||||
@ -11,7 +11,7 @@
|
||||
);
|
||||
|
||||
// Set the reciprocal time-step from the local Courant number
|
||||
rDeltaT.dimensionedInternalField() = max
|
||||
rDeltaT.dimensionedInternalFieldRef() = max
|
||||
(
|
||||
1/dimensionedScalar("maxDeltaT", dimTime, maxDeltaT),
|
||||
fvc::surfaceSum(amaxSf)().dimensionedInternalField()
|
||||
|
||||
@ -26,7 +26,7 @@
|
||||
volScalarField rDeltaT0("rDeltaT0", rDeltaT);
|
||||
|
||||
// Set the reciprocal time-step from the local Courant number
|
||||
rDeltaT.dimensionedInternalField() = max
|
||||
rDeltaT.dimensionedInternalFieldRef() = max
|
||||
(
|
||||
1/dimensionedScalar("maxDeltaT", dimTime, maxDeltaT),
|
||||
fvc::surfaceSum(mag(phi))().dimensionedInternalField()
|
||||
@ -41,7 +41,7 @@
|
||||
fvc::interpolate(psi)*fvc::flux(U)
|
||||
);
|
||||
|
||||
rDeltaT.dimensionedInternalField() = max
|
||||
rDeltaT.dimensionedInternalFieldRef() = max
|
||||
(
|
||||
rDeltaT.dimensionedInternalField(),
|
||||
fvc::surfaceSum(mag(phid))().dimensionedInternalField()
|
||||
|
||||
@ -58,7 +58,7 @@ License
|
||||
|
||||
// Flow time scale
|
||||
{
|
||||
rDeltaT.dimensionedInternalField() =
|
||||
rDeltaT.dimensionedInternalFieldRef() =
|
||||
(
|
||||
fvc::surfaceSum(mag(phi))().dimensionedInternalField()
|
||||
/((2*maxCo)*mesh.V()*rho.dimensionedInternalField())
|
||||
@ -94,7 +94,7 @@ License
|
||||
<< gMin(1/(rDeltaTT.field() + VSMALL)) << ", "
|
||||
<< gMax(1/(rDeltaTT.field() + VSMALL)) << endl;
|
||||
|
||||
rDeltaT.dimensionedInternalField() = max
|
||||
rDeltaT.dimensionedInternalFieldRef() = max
|
||||
(
|
||||
rDeltaT.dimensionedInternalField(),
|
||||
rDeltaTT
|
||||
|
||||
@ -58,7 +58,7 @@ License
|
||||
|
||||
// Flow time scale
|
||||
{
|
||||
rDeltaT.dimensionedInternalField() =
|
||||
rDeltaT.dimensionedInternalFieldRef() =
|
||||
(
|
||||
fvc::surfaceSum(mag(phi))().dimensionedInternalField()
|
||||
/((2*maxCo)*mesh.V()*rho.dimensionedInternalField())
|
||||
@ -93,7 +93,7 @@ License
|
||||
<< gMin(1/(rDeltaTT.field() + VSMALL)) << ", "
|
||||
<< gMax(1/(rDeltaTT.field() + VSMALL)) << endl;
|
||||
|
||||
rDeltaT.dimensionedInternalField() = max
|
||||
rDeltaT.dimensionedInternalFieldRef() = max
|
||||
(
|
||||
rDeltaT.dimensionedInternalField(),
|
||||
rDeltaTT
|
||||
|
||||
@ -56,7 +56,7 @@
|
||||
volScalarField rDeltaT0("rDeltaT0", rDeltaT);
|
||||
|
||||
// Set the reciprocal time-step from the local Courant number
|
||||
rDeltaT.dimensionedInternalField() = max
|
||||
rDeltaT.dimensionedInternalFieldRef() = max
|
||||
(
|
||||
1/dimensionedScalar("maxDeltaT", dimTime, maxDeltaT),
|
||||
fvc::surfaceSum(mag(rhoPhi))().dimensionedInternalField()
|
||||
@ -70,7 +70,7 @@
|
||||
|
||||
volScalarField alpha1Bar(fvc::average(alpha1));
|
||||
|
||||
rDeltaT.dimensionedInternalField() = max
|
||||
rDeltaT.dimensionedInternalFieldRef() = max
|
||||
(
|
||||
rDeltaT.dimensionedInternalField(),
|
||||
pos(alpha1Bar.dimensionedInternalField() - alphaSpreadMin)
|
||||
|
||||
@ -26,7 +26,7 @@
|
||||
}
|
||||
|
||||
// Set the reciprocal time-step from the local Courant number
|
||||
rDeltaT.dimensionedInternalField() = max
|
||||
rDeltaT.dimensionedInternalFieldRef() = max
|
||||
(
|
||||
1/dimensionedScalar("maxDeltaT", dimTime, maxDeltaT),
|
||||
fvc::surfaceSum(maxPhi)().dimensionedInternalField()
|
||||
|
||||
@ -19,7 +19,7 @@
|
||||
);
|
||||
|
||||
// Set the reciprocal time-step from the local Courant number
|
||||
rDeltaT.dimensionedInternalField() = max
|
||||
rDeltaT.dimensionedInternalFieldRef() = max
|
||||
(
|
||||
1/dimensionedScalar("maxDeltaT", dimTime, maxDeltaT),
|
||||
fvc::surfaceSum(max(mag(phi1), mag(phi2)))().dimensionedInternalField()
|
||||
|
||||
@ -115,7 +115,7 @@ int main(int argc, char *argv[])
|
||||
calculatedFvPatchField<scalar>::typeName
|
||||
);
|
||||
|
||||
V.dimensionedInternalField() = mesh.V();
|
||||
V.dimensionedInternalFieldRef() = mesh.V();
|
||||
|
||||
volScalarField::GeometricBoundaryField& Vbf = V.boundaryFieldRef();
|
||||
|
||||
|
||||
@ -87,7 +87,7 @@ void Foam::calc(const argList& args, const Time& runTime, const fvMesh& mesh)
|
||||
mesh
|
||||
);
|
||||
|
||||
Co.dimensionedInternalField() =
|
||||
Co.dimensionedInternalFieldRef() =
|
||||
(0.5*runTime.deltaT())
|
||||
*fvc::surfaceSum(mag(phi))().dimensionedInternalField()
|
||||
/(rho*mesh.V());
|
||||
@ -97,7 +97,7 @@ void Foam::calc(const argList& args, const Time& runTime, const fvMesh& mesh)
|
||||
{
|
||||
Info<< " Calculating incompressible Co" << endl;
|
||||
|
||||
Co.dimensionedInternalField() =
|
||||
Co.dimensionedInternalFieldRef() =
|
||||
(0.5*runTime.deltaT())
|
||||
*fvc::surfaceSum(mag(phi))().dimensionedInternalField()
|
||||
/mesh.V();
|
||||
|
||||
Reference in New Issue
Block a user