Code simplification: GeometricField<Type, fvPatchField, volMesh> -> VolField<Type>

Using the VolField<Type> partial specialisation of
GeometricField<Type, fvPatchField, volMesh>
simplifies the code and improves readability.
This commit is contained in:
Henry Weller
2022-12-02 22:04:45 +00:00
parent fe368d5332
commit 2f4dd4fe27
274 changed files with 1796 additions and 1802 deletions

View File

@ -228,7 +228,7 @@ Foam::tmp<Foam::surfaceScalarField> Foam::MPLIC::surfaceAlpha
Foam::tmp<Foam::surfaceScalarField> Foam::MPLIC::interpolate
(
const GeometricField<scalar, fvPatchField, volMesh>& vf
const VolField<scalar>& vf
) const
{
tmp<surfaceScalarField> tvff(upwind<scalar>(mesh(), phi_).interpolate(vf));

View File

@ -143,7 +143,7 @@ public:
//- Return the interpolation weighting factors
virtual tmp<surfaceScalarField> weights
(
const GeometricField<scalar, fvPatchField, volMesh>&
const VolField<scalar>&
) const
{
NotImplemented;
@ -154,7 +154,7 @@ public:
//- Return the face-interpolate of the given cell field
virtual tmp<surfaceScalarField> interpolate
(
const GeometricField<scalar, fvPatchField, volMesh>& vf
const VolField<scalar>& vf
) const;

View File

@ -42,7 +42,7 @@ namespace Foam
Foam::tmp<Foam::surfaceScalarField> Foam::MPLICU::interpolate
(
const GeometricField<scalar, fvPatchField, volMesh>& vf
const VolField<scalar>& vf
) const
{
tmp<surfaceScalarField> tvff(upwind<scalar>(mesh(), phi_).interpolate(vf));

View File

@ -113,7 +113,7 @@ public:
//- Return the interpolation weighting factors
virtual tmp<surfaceScalarField> weights
(
const GeometricField<scalar, fvPatchField, volMesh>& vf
const VolField<scalar>& vf
) const
{
NotImplemented;
@ -124,7 +124,7 @@ public:
//- Return the face-interpolate of the given cell field
virtual tmp<surfaceScalarField> interpolate
(
const GeometricField<scalar, fvPatchField, volMesh>& vf
const VolField<scalar>& vf
) const;