mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
GeometricField::dimensionedInteralFieldRef() -> GeometricField::ref()
In order to simplify expressions involving dimensioned internal field it is preferable to use a simpler access convention. Given that GeometricField is derived from DimensionedField it is simply a matter of de-referencing this underlying type unlike the boundary field which is peripheral information. For consistency with the new convention in "tmp" "dimensionedInteralFieldRef()" has been renamed "ref()".
This commit is contained in:
@ -115,7 +115,7 @@ int main(int argc, char *argv[])
|
||||
calculatedFvPatchField<scalar>::typeName
|
||||
);
|
||||
|
||||
V.dimensionedInternalFieldRef() = mesh.V();
|
||||
V.ref() = mesh.V();
|
||||
|
||||
volScalarField::Boundary& Vbf = V.boundaryFieldRef();
|
||||
|
||||
|
||||
@ -87,9 +87,9 @@ void Foam::calc(const argList& args, const Time& runTime, const fvMesh& mesh)
|
||||
mesh
|
||||
);
|
||||
|
||||
Co.dimensionedInternalFieldRef() =
|
||||
Co.ref() =
|
||||
(0.5*runTime.deltaT())
|
||||
*fvc::surfaceSum(mag(phi))().dimensionedInternalField()
|
||||
*fvc::surfaceSum(mag(phi))()()
|
||||
/(rho*mesh.V());
|
||||
Co.correctBoundaryConditions();
|
||||
}
|
||||
@ -97,9 +97,9 @@ void Foam::calc(const argList& args, const Time& runTime, const fvMesh& mesh)
|
||||
{
|
||||
Info<< " Calculating incompressible Co" << endl;
|
||||
|
||||
Co.dimensionedInternalFieldRef() =
|
||||
Co.ref() =
|
||||
(0.5*runTime.deltaT())
|
||||
*fvc::surfaceSum(mag(phi))().dimensionedInternalField()
|
||||
*fvc::surfaceSum(mag(phi))()()
|
||||
/mesh.V();
|
||||
Co.correctBoundaryConditions();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user