Code simplification: GeometricField<Type, fvsPatchField, surfaceMesh> -> SurfaceField<Type>

Using the SurfaceField<Type> partial specialisation of
GeometricField<Type, fvsPatchField, surfaceMesh>
simplifies the code and improves readability.
This commit is contained in:
Henry Weller
2022-12-02 19:02:15 +00:00
parent e84300d124
commit fe368d5332
138 changed files with 476 additions and 478 deletions

View File

@ -3,14 +3,14 @@ namespace Foam
//- Interpolate field vf according to direction dir //- Interpolate field vf according to direction dir
template<class Type> template<class Type>
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> interpolate tmp<SurfaceField<Type>> interpolate
( (
const GeometricField<Type, fvPatchField, volMesh>& vf, const GeometricField<Type, fvPatchField, volMesh>& vf,
const surfaceScalarField& dir, const surfaceScalarField& dir,
const word& reconFieldName = word::null const word& reconFieldName = word::null
) )
{ {
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> tsf tmp<SurfaceField<Type>> tsf
( (
fvc::interpolate fvc::interpolate
( (
@ -22,7 +22,7 @@ tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> interpolate
) )
); );
GeometricField<Type, fvsPatchField, surfaceMesh>& sf = tsf.ref(); SurfaceField<Type>& sf = tsf.ref();
sf.rename(vf.name() + '_' + dir.name()); sf.rename(vf.name() + '_' + dir.name());

View File

@ -201,7 +201,7 @@ void subsetSurfaceFields
const label patchi, const label patchi,
const Type& exposedValue, const Type& exposedValue,
const word GeomSurfType, const word GeomSurfType,
PtrList<GeometricField<Type, fvsPatchField, surfaceMesh>>& subFields PtrList<SurfaceField<Type>>& subFields
) )
{ {
const fvMesh& baseMesh = subsetter.baseMesh(); const fvMesh& baseMesh = subsetter.baseMesh();
@ -216,7 +216,7 @@ void subsetSurfaceFields
Info<< "Subsetting field " << fieldName << endl; Info<< "Subsetting field " << fieldName << endl;
GeometricField<Type, fvsPatchField, surfaceMesh> volField SurfaceField<Type> volField
( (
*iter(), *iter(),
baseMesh baseMesh

View File

@ -86,7 +86,7 @@ void subsetSurfaceFields
( (
const fvMeshSubset& subsetter, const fvMeshSubset& subsetter,
const wordList& fieldNames, const wordList& fieldNames,
PtrList<GeometricField<Type, fvsPatchField, surfaceMesh>>& subFields PtrList<SurfaceField<Type>>& subFields
) )
{ {
const fvMesh& baseMesh = subsetter.baseMesh(); const fvMesh& baseMesh = subsetter.baseMesh();
@ -97,7 +97,7 @@ void subsetSurfaceFields
Info<< "Subsetting field " << fieldName << endl; Info<< "Subsetting field " << fieldName << endl;
GeometricField<Type, fvsPatchField, surfaceMesh> fld SurfaceField<Type> fld
( (
IOobject IOobject
( (

View File

@ -154,10 +154,10 @@ public:
//- Decompose surface field //- Decompose surface field
template<class Type> template<class Type>
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> tmp<SurfaceField<Type>>
decomposeField decomposeField
( (
const GeometricField<Type, fvsPatchField, surfaceMesh>& field const SurfaceField<Type>& field
) const; ) const;
//- Decompose a list of fields //- Decompose a list of fields

View File

@ -225,7 +225,7 @@ template<class Type>
Foam::tmp<Foam::GeometricField<Type, Foam::fvsPatchField, Foam::surfaceMesh>> Foam::tmp<Foam::GeometricField<Type, Foam::fvsPatchField, Foam::surfaceMesh>>
Foam::fvFieldDecomposer::decomposeField Foam::fvFieldDecomposer::decomposeField
( (
const GeometricField<Type, fvsPatchField, surfaceMesh>& field const SurfaceField<Type>& field
) const ) const
{ {
const SubList<label> faceAddressingIf const SubList<label> faceAddressingIf
@ -251,9 +251,9 @@ Foam::fvFieldDecomposer::decomposeField
} }
// Create the processor field with the dummy patch fields // Create the processor field with the dummy patch fields
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> tresF tmp<SurfaceField<Type>> tresF
( (
new GeometricField<Type, fvsPatchField, surfaceMesh> new SurfaceField<Type>
( (
IOobject IOobject
( (
@ -275,11 +275,11 @@ Foam::fvFieldDecomposer::decomposeField
patchFields patchFields
) )
); );
GeometricField<Type, fvsPatchField, surfaceMesh>& resF = tresF.ref(); SurfaceField<Type>& resF = tresF.ref();
// Change the patch fields to the correct type using a mapper constructor // Change the patch fields to the correct type using a mapper constructor
// (with reference to the now correct internal field) // (with reference to the now correct internal field)
typename GeometricField<Type, fvsPatchField, surfaceMesh>:: typename SurfaceField<Type>::
Boundary& bf = resF.boundaryFieldRef(); Boundary& bf = resF.boundaryFieldRef();
forAll(procMesh_.boundary(), procPatchi) forAll(procMesh_.boundary(), procPatchi)
{ {

View File

@ -167,16 +167,16 @@ public:
//- Reconstruct surface field //- Reconstruct surface field
template<class Type> template<class Type>
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> tmp<SurfaceField<Type>>
reconstructFvSurfaceField reconstructFvSurfaceField
( (
const IOobject& fieldIoObject, const IOobject& fieldIoObject,
const PtrList<GeometricField<Type, fvsPatchField, surfaceMesh>>& const PtrList<SurfaceField<Type>>&
) const; ) const;
//- Read and reconstruct surface field //- Read and reconstruct surface field
template<class Type> template<class Type>
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> tmp<SurfaceField<Type>>
reconstructFvSurfaceField(const IOobject& fieldIoObject) const; reconstructFvSurfaceField(const IOobject& fieldIoObject) const;
//- Read, reconstruct and write all/selected volume internal fields //- Read, reconstruct and write all/selected volume internal fields

View File

@ -306,7 +306,7 @@ Foam::tmp<Foam::GeometricField<Type, Foam::fvsPatchField, Foam::surfaceMesh>>
Foam::fvFieldReconstructor::reconstructFvSurfaceField Foam::fvFieldReconstructor::reconstructFvSurfaceField
( (
const IOobject& fieldIoObject, const IOobject& fieldIoObject,
const PtrList<GeometricField<Type, fvsPatchField, surfaceMesh>>& procFields const PtrList<SurfaceField<Type>>& procFields
) const ) const
{ {
// Create the internalField // Create the internalField
@ -317,7 +317,7 @@ Foam::fvFieldReconstructor::reconstructFvSurfaceField
forAll(procMeshes_, proci) forAll(procMeshes_, proci)
{ {
const GeometricField<Type, fvsPatchField, surfaceMesh>& procField = const SurfaceField<Type>& procField =
procFields[proci]; procFields[proci];
// Set the internal face values in the reconstructed field // Set the internal face values in the reconstructed field
@ -403,9 +403,9 @@ Foam::fvFieldReconstructor::reconstructFvSurfaceField
} }
// Construct and return the field // Construct and return the field
return tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> return tmp<SurfaceField<Type>>
( (
new GeometricField<Type, fvsPatchField, surfaceMesh> new SurfaceField<Type>
( (
fieldIoObject, fieldIoObject,
completeMesh_, completeMesh_,
@ -424,7 +424,7 @@ Foam::fvFieldReconstructor::reconstructFvSurfaceField
const IOobject& fieldIoObject const IOobject& fieldIoObject
) const ) const
{ {
PtrList<GeometricField<Type, fvsPatchField, surfaceMesh>> PtrList<SurfaceField<Type>>
procFields(procMeshes_.size()); procFields(procMeshes_.size());
forAll(procMeshes_, proci) forAll(procMeshes_, proci)
@ -432,7 +432,7 @@ Foam::fvFieldReconstructor::reconstructFvSurfaceField
procFields.set procFields.set
( (
proci, proci,
new GeometricField<Type, fvsPatchField, surfaceMesh> new SurfaceField<Type>
( (
IOobject IOobject
( (
@ -543,7 +543,7 @@ void Foam::fvFieldReconstructor::reconstructFvSurfaceFields
) )
{ {
const word& fieldClassName = const word& fieldClassName =
GeometricField<Type, fvsPatchField, surfaceMesh>::typeName; SurfaceField<Type>::typeName;
IOobjectList fields = objects.lookupClass(fieldClassName); IOobjectList fields = objects.lookupClass(fieldClassName);

View File

@ -455,7 +455,7 @@ void ensightField
{ {
// Interpolates cell values to faces - needed only when exporting // Interpolates cell values to faces - needed only when exporting
// faceZones... // faceZones...
GeometricField<Type, fvsPatchField, surfaceMesh> sf SurfaceField<Type> sf
( (
linearInterpolate(vf) linearInterpolate(vf)
); );

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -132,7 +132,7 @@ public:
template<class Type> template<class Type>
tmp<Field<Type>> getFaceField tmp<Field<Type>> getFaceField
( (
const GeometricField<Type, fvsPatchField, surfaceMesh>&, const SurfaceField<Type>&,
const labelList& faceLabels const labelList& faceLabels
) const; ) const;

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -86,7 +86,7 @@ Foam::tmp<Field<Type>> Foam::tecplotWriter::getPatchField
template<class Type> template<class Type>
Foam::tmp<Field<Type>> Foam::tecplotWriter::getFaceField Foam::tmp<Field<Type>> Foam::tecplotWriter::getFaceField
( (
const GeometricField<Type, fvsPatchField, surfaceMesh>& sfld, const SurfaceField<Type>& sfld,
const labelList& faceLabels const labelList& faceLabels
) const ) const
{ {

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -92,7 +92,7 @@ public:
template<class Type> template<class Type>
tmp<Field<Type>> getFaceField tmp<Field<Type>> getFaceField
( (
const GeometricField<Type, fvsPatchField, surfaceMesh>& const SurfaceField<Type>&
) const; ) const;
//- Write surfaceFields //- Write surfaceFields
@ -101,7 +101,7 @@ public:
( (
const UPtrList const UPtrList
< <
const GeometricField<Type, fvsPatchField, surfaceMesh> const SurfaceField<Type>
>& >&
); );
}; };

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -31,7 +31,7 @@ License
template<class Type> template<class Type>
Foam::tmp<Field<Type>> Foam::surfaceMeshWriter::getFaceField Foam::tmp<Field<Type>> Foam::surfaceMeshWriter::getFaceField
( (
const GeometricField<Type, fvsPatchField, surfaceMesh>& sfld const SurfaceField<Type>& sfld
) const ) const
{ {
const polyBoundaryMesh& patches = sfld.mesh().boundaryMesh(); const polyBoundaryMesh& patches = sfld.mesh().boundaryMesh();
@ -65,13 +65,13 @@ void Foam::surfaceMeshWriter::write
( (
const UPtrList const UPtrList
< <
const GeometricField<Type, fvsPatchField, surfaceMesh> const SurfaceField<Type>
>& sflds >& sflds
) )
{ {
forAll(sflds, fieldi) forAll(sflds, fieldi)
{ {
const GeometricField<Type, fvsPatchField, surfaceMesh>& fld = const SurfaceField<Type>& fld =
sflds[fieldi]; sflds[fieldi];
os_ << fld.name() << ' ' << pTraits<Type>::nComponents << ' ' os_ << fld.name() << ' ' << pTraits<Type>::nComponents << ' '

View File

@ -591,7 +591,7 @@ class vtkPVFoam
template<class Type> template<class Type>
void convertSurfaceField void convertSurfaceField
( (
const GeometricField<Type, fvsPatchField, surfaceMesh>& tf, const SurfaceField<Type>& tf,
vtkMultiBlockDataSet* output, vtkMultiBlockDataSet* output,
const arrayRange& range, const arrayRange& range,
const label datasetNo, const label datasetNo,

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -116,7 +116,7 @@ void Foam::vtkPVFoam::convertSurfaceField
template<class Type> template<class Type>
void Foam::vtkPVFoam::convertSurfaceField void Foam::vtkPVFoam::convertSurfaceField
( (
const GeometricField<Type, fvsPatchField, surfaceMesh>& tf, const SurfaceField<Type>& tf,
vtkMultiBlockDataSet* output, vtkMultiBlockDataSet* output,
const arrayRange& range, const arrayRange& range,
const label datasetNo, const label datasetNo,
@ -198,14 +198,14 @@ void Foam::vtkPVFoam::convertSurfaceFields
if if
( (
iter()->headerClassName() iter()->headerClassName()
!= GeometricField<Type, fvsPatchField, surfaceMesh>::typeName != SurfaceField<Type>::typeName
) )
{ {
continue; continue;
} }
// Load field // Load field
const GeometricField<Type, fvsPatchField, surfaceMesh> tf const SurfaceField<Type> tf
( (
*iter(), *iter(),
mesh mesh

View File

@ -96,8 +96,8 @@ class fvMeshAdder
( (
const mapAddedPolyMesh& meshMap, const mapAddedPolyMesh& meshMap,
GeometricField<Type, fvsPatchField, surfaceMesh>& fld, SurfaceField<Type>& fld,
const GeometricField<Type, fvsPatchField, surfaceMesh>& fldToAdd const SurfaceField<Type>& fldToAdd
); );
//- Update single pointField. //- Update single pointField.

View File

@ -313,14 +313,14 @@ void Foam::fvMeshAdder::MapSurfaceField
( (
const mapAddedPolyMesh& meshMap, const mapAddedPolyMesh& meshMap,
GeometricField<Type, fvsPatchField, surfaceMesh>& fld, SurfaceField<Type>& fld,
const GeometricField<Type, fvsPatchField, surfaceMesh>& fldToAdd const SurfaceField<Type>& fldToAdd
) )
{ {
const fvMesh& mesh = fld.mesh(); const fvMesh& mesh = fld.mesh();
const labelList& oldPatchStarts = meshMap.oldPatchStarts(); const labelList& oldPatchStarts = meshMap.oldPatchStarts();
typename GeometricField<Type, fvsPatchField, surfaceMesh>:: typename SurfaceField<Type>::
Boundary& bfld = fld.boundaryFieldRef(); Boundary& bfld = fld.boundaryFieldRef();
// Internal field // Internal field

View File

@ -273,10 +273,10 @@ public:
//- Map surface field. Optionally negates value if flipping //- Map surface field. Optionally negates value if flipping
// a face (from exposing an internal face) // a face (from exposing an internal face)
template<class Type> template<class Type>
static tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> static tmp<SurfaceField<Type>>
interpolate interpolate
( (
const GeometricField<Type, fvsPatchField, surfaceMesh>&, const SurfaceField<Type>&,
const fvMesh& sMesh, const fvMesh& sMesh,
const labelList& patchMap, const labelList& patchMap,
const labelList& cellMap, const labelList& cellMap,
@ -284,10 +284,10 @@ public:
); );
template<class Type> template<class Type>
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> tmp<SurfaceField<Type>>
interpolate interpolate
( (
const GeometricField<Type, fvsPatchField, surfaceMesh>& const SurfaceField<Type>&
) const; ) const;
//- Map point field //- Map point field

View File

@ -176,7 +176,7 @@ template<class Type>
Foam::tmp<Foam::GeometricField<Type, Foam::fvsPatchField, Foam::surfaceMesh>> Foam::tmp<Foam::GeometricField<Type, Foam::fvsPatchField, Foam::surfaceMesh>>
Foam::fvMeshSubset::interpolate Foam::fvMeshSubset::interpolate
( (
const GeometricField<Type, fvsPatchField, surfaceMesh>& sf, const SurfaceField<Type>& sf,
const fvMesh& sMesh, const fvMesh& sMesh,
const labelList& patchMap, const labelList& patchMap,
const labelList& cellMap, const labelList& cellMap,
@ -221,9 +221,9 @@ Foam::fvMeshSubset::interpolate
} }
// Create the complete field from the pieces // Create the complete field from the pieces
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> tresF tmp<SurfaceField<Type>> tresF
( (
new GeometricField<Type, fvsPatchField, surfaceMesh> new SurfaceField<Type>
( (
IOobject IOobject
( (
@ -248,12 +248,12 @@ Foam::fvMeshSubset::interpolate
patchFields patchFields
) )
); );
GeometricField<Type, fvsPatchField, surfaceMesh>& resF = tresF.ref(); SurfaceField<Type>& resF = tresF.ref();
// 2. Change the fvsPatchFields to the correct type using a mapper // 2. Change the fvsPatchFields to the correct type using a mapper
// constructor (with reference to the now correct internal field) // constructor (with reference to the now correct internal field)
typename GeometricField<Type, fvsPatchField, surfaceMesh>:: typename SurfaceField<Type>::
Boundary& bf = resF.boundaryFieldRef(); Boundary& bf = resF.boundaryFieldRef();
forAll(bf, patchi) forAll(bf, patchi)
@ -340,7 +340,7 @@ template<class Type>
Foam::tmp<Foam::GeometricField<Type, Foam::fvsPatchField, Foam::surfaceMesh>> Foam::tmp<Foam::GeometricField<Type, Foam::fvsPatchField, Foam::surfaceMesh>>
Foam::fvMeshSubset::interpolate Foam::fvMeshSubset::interpolate
( (
const GeometricField<Type, fvsPatchField, surfaceMesh>& sf const SurfaceField<Type>& sf
) const ) const
{ {
return interpolate return interpolate

View File

@ -219,7 +219,7 @@ public:
//- Zero the MRF region of the given field //- Zero the MRF region of the given field
template<class Type> template<class Type>
void zero(GeometricField<Type, fvsPatchField, surfaceMesh>& phi) const; void zero(SurfaceField<Type>& phi) const;
//- Update MRFZone faces if the mesh topology changes //- Update MRFZone faces if the mesh topology changes
void update(); void update();

View File

@ -158,9 +158,9 @@ public:
//- Filter-out the MRF region contribution from the given field //- Filter-out the MRF region contribution from the given field
// setting the corresponding values to zero // setting the corresponding values to zero
template<class Type> template<class Type>
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> zeroFilter tmp<SurfaceField<Type>> zeroFilter
( (
const tmp<GeometricField<Type, fvsPatchField, surfaceMesh>>& tphi const tmp<SurfaceField<Type>>& tphi
) const; ) const;
//- Update MRFZone faces if the mesh topology changes //- Update MRFZone faces if the mesh topology changes

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2018-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -31,7 +31,7 @@ template<class Type>
Foam::tmp<Foam::GeometricField<Type, Foam::fvsPatchField, Foam::surfaceMesh>> Foam::tmp<Foam::GeometricField<Type, Foam::fvsPatchField, Foam::surfaceMesh>>
Foam::MRFZoneList::zeroFilter Foam::MRFZoneList::zeroFilter
( (
const tmp<GeometricField<Type, fvsPatchField, surfaceMesh>>& tphi const tmp<SurfaceField<Type>>& tphi
) const ) const
{ {
if (size()) if (size())

View File

@ -153,7 +153,7 @@ void Foam::MRFZone::makeAbsoluteRhoFlux
template<class Type> template<class Type>
void Foam::MRFZone::zero void Foam::MRFZone::zero
( (
GeometricField<Type, fvsPatchField, surfaceMesh>& phi SurfaceField<Type>& phi
) const ) const
{ {
Field<Type>& phii = phi.primitiveFieldRef(); Field<Type>& phii = phi.primitiveFieldRef();
@ -163,7 +163,7 @@ void Foam::MRFZone::zero
phii[internalFaces_[i]] = Zero; phii[internalFaces_[i]] = Zero;
} }
typename GeometricField<Type, fvsPatchField, surfaceMesh>::Boundary& phibf = typename SurfaceField<Type>::Boundary& phibf =
phi.boundaryFieldRef(); phi.boundaryFieldRef();
forAll(patchFaces_, patchi) forAll(patchFaces_, patchi)

View File

@ -54,14 +54,12 @@ class GeometricField;
template<class Type> template<class Type>
using SurfaceField = GeometricField<Type, fvsPatchField, surfaceMesh>; using SurfaceField = GeometricField<Type, fvsPatchField, surfaceMesh>;
typedef GeometricField<label, fvsPatchField, surfaceMesh> surfaceLabelField; typedef SurfaceField<label> surfaceLabelField;
typedef GeometricField<scalar, fvsPatchField, surfaceMesh> surfaceScalarField; typedef SurfaceField<scalar> surfaceScalarField;
typedef GeometricField<vector, fvsPatchField, surfaceMesh> surfaceVectorField; typedef SurfaceField<vector> surfaceVectorField;
typedef GeometricField<sphericalTensor, fvsPatchField, surfaceMesh> typedef SurfaceField<sphericalTensor> surfaceSphericalTensorField;
surfaceSphericalTensorField; typedef SurfaceField<symmTensor> surfaceSymmTensorField;
typedef GeometricField<symmTensor, fvsPatchField, surfaceMesh> typedef SurfaceField<tensor> surfaceTensorField;
surfaceSymmTensorField;
typedef GeometricField<tensor, fvsPatchField, surfaceMesh> surfaceTensorField;
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2012-2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2012-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -41,7 +41,7 @@ namespace fv
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
template<class Type> template<class Type>
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> tmp<SurfaceField<Type>>
boundedConvectionScheme<Type>::interpolate boundedConvectionScheme<Type>::interpolate
( (
const surfaceScalarField& phi, const surfaceScalarField& phi,
@ -53,7 +53,7 @@ boundedConvectionScheme<Type>::interpolate
template<class Type> template<class Type>
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> tmp<SurfaceField<Type>>
boundedConvectionScheme<Type>::flux boundedConvectionScheme<Type>::flux
( (
const surfaceScalarField& faceFlux, const surfaceScalarField& faceFlux,

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2012-2020 OpenFOAM Foundation \\ / A nd | Copyright (C) 2012-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -97,13 +97,13 @@ public:
// Member Functions // Member Functions
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> interpolate tmp<SurfaceField<Type>> interpolate
( (
const surfaceScalarField&, const surfaceScalarField&,
const GeometricField<Type, fvPatchField, volMesh>& const GeometricField<Type, fvPatchField, volMesh>&
) const; ) const;
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> flux tmp<SurfaceField<Type>> flux
( (
const surfaceScalarField&, const surfaceScalarField&,
const GeometricField<Type, fvPatchField, volMesh>& const GeometricField<Type, fvPatchField, volMesh>&

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -159,14 +159,14 @@ public:
return mesh_; return mesh_;
} }
virtual tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> virtual tmp<SurfaceField<Type>>
interpolate interpolate
( (
const surfaceScalarField&, const surfaceScalarField&,
const GeometricField<Type, fvPatchField, volMesh>& const GeometricField<Type, fvPatchField, volMesh>&
) const = 0; ) const = 0;
virtual tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> flux virtual tmp<SurfaceField<Type>> flux
( (
const surfaceScalarField&, const surfaceScalarField&,
const GeometricField<Type, fvPatchField, volMesh>& const GeometricField<Type, fvPatchField, volMesh>&

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -48,7 +48,7 @@ gaussConvectionScheme<Type>::interpScheme() const
template<class Type> template<class Type>
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> tmp<SurfaceField<Type>>
gaussConvectionScheme<Type>::interpolate gaussConvectionScheme<Type>::interpolate
( (
const surfaceScalarField&, const surfaceScalarField&,
@ -60,7 +60,7 @@ gaussConvectionScheme<Type>::interpolate
template<class Type> template<class Type>
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> tmp<SurfaceField<Type>>
gaussConvectionScheme<Type>::flux gaussConvectionScheme<Type>::flux
( (
const surfaceScalarField& faceFlux, const surfaceScalarField& faceFlux,

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -104,13 +104,13 @@ public:
const surfaceInterpolationScheme<Type>& interpScheme() const; const surfaceInterpolationScheme<Type>& interpScheme() const;
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> interpolate tmp<SurfaceField<Type>> interpolate
( (
const surfaceScalarField&, const surfaceScalarField&,
const GeometricField<Type, fvPatchField, volMesh>& const GeometricField<Type, fvPatchField, volMesh>&
) const; ) const;
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> flux tmp<SurfaceField<Type>> flux
( (
const surfaceScalarField&, const surfaceScalarField&,
const GeometricField<Type, fvPatchField, volMesh>& const GeometricField<Type, fvPatchField, volMesh>&

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -40,7 +40,7 @@ namespace fv
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
template<class Type> template<class Type>
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> tmp<SurfaceField<Type>>
multivariateGaussConvectionScheme<Type>::interpolate multivariateGaussConvectionScheme<Type>::interpolate
( (
const surfaceScalarField& faceFlux, const surfaceScalarField& faceFlux,
@ -57,7 +57,7 @@ multivariateGaussConvectionScheme<Type>::interpolate
template<class Type> template<class Type>
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> tmp<SurfaceField<Type>>
multivariateGaussConvectionScheme<Type>::flux multivariateGaussConvectionScheme<Type>::flux
( (
const surfaceScalarField& faceFlux, const surfaceScalarField& faceFlux,

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -98,13 +98,13 @@ public:
return tinterpScheme_; return tinterpScheme_;
} }
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> interpolate tmp<SurfaceField<Type>> interpolate
( (
const surfaceScalarField&, const surfaceScalarField&,
const GeometricField<Type, fvPatchField, volMesh>& const GeometricField<Type, fvPatchField, volMesh>&
) const; ) const;
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> flux tmp<SurfaceField<Type>> flux
( (
const surfaceScalarField&, const surfaceScalarField&,
const GeometricField<Type, fvPatchField, volMesh>& const GeometricField<Type, fvPatchField, volMesh>&

View File

@ -553,7 +553,7 @@ tmp<typename CoEulerDdtScheme<Type>::fluxFieldType>
CoEulerDdtScheme<Type>::fvcDdtUfCorr CoEulerDdtScheme<Type>::fvcDdtUfCorr
( (
const GeometricField<Type, fvPatchField, volMesh>& U, const GeometricField<Type, fvPatchField, volMesh>& U,
const GeometricField<Type, fvsPatchField, surfaceMesh>& Uf const SurfaceField<Type>& Uf
) )
{ {
const surfaceScalarField rDeltaT(fvc::interpolate(CorDeltaT())); const surfaceScalarField rDeltaT(fvc::interpolate(CorDeltaT()));
@ -602,7 +602,7 @@ CoEulerDdtScheme<Type>::fvcDdtUfCorr
( (
const volScalarField& rho, const volScalarField& rho,
const GeometricField<Type, fvPatchField, volMesh>& U, const GeometricField<Type, fvPatchField, volMesh>& U,
const GeometricField<Type, fvsPatchField, surfaceMesh>& Uf const SurfaceField<Type>& Uf
) )
{ {
const surfaceScalarField rDeltaT(fvc::interpolate(CorDeltaT())); const surfaceScalarField rDeltaT(fvc::interpolate(CorDeltaT()));

View File

@ -172,7 +172,7 @@ public:
virtual tmp<fluxFieldType> fvcDdtUfCorr virtual tmp<fluxFieldType> fvcDdtUfCorr
( (
const GeometricField<Type, fvPatchField, volMesh>& U, const GeometricField<Type, fvPatchField, volMesh>& U,
const GeometricField<Type, fvsPatchField, surfaceMesh>& Uf const SurfaceField<Type>& Uf
); );
virtual tmp<fluxFieldType> fvcDdtPhiCorr virtual tmp<fluxFieldType> fvcDdtPhiCorr
@ -185,7 +185,7 @@ public:
( (
const volScalarField& rho, const volScalarField& rho,
const GeometricField<Type, fvPatchField, volMesh>& U, const GeometricField<Type, fvPatchField, volMesh>& U,
const GeometricField<Type, fvsPatchField, surfaceMesh>& Uf const SurfaceField<Type>& Uf
); );
virtual tmp<fluxFieldType> fvcDdtPhiCorr virtual tmp<fluxFieldType> fvcDdtPhiCorr
@ -218,7 +218,7 @@ template<>
tmp<surfaceScalarField> CoEulerDdtScheme<scalar>::fvcDdtUfCorr tmp<surfaceScalarField> CoEulerDdtScheme<scalar>::fvcDdtUfCorr
( (
const GeometricField<scalar, fvPatchField, volMesh>& U, const GeometricField<scalar, fvPatchField, volMesh>& U,
const GeometricField<scalar, fvsPatchField, surfaceMesh>& Uf const SurfaceField<scalar>& Uf
); );
template<> template<>

View File

@ -1118,7 +1118,7 @@ tmp<typename CrankNicolsonDdtScheme<Type>::fluxFieldType>
CrankNicolsonDdtScheme<Type>::fvcDdtUfCorr CrankNicolsonDdtScheme<Type>::fvcDdtUfCorr
( (
const GeometricField<Type, fvPatchField, volMesh>& U, const GeometricField<Type, fvPatchField, volMesh>& U,
const GeometricField<Type, fvsPatchField, surfaceMesh>& Uf const SurfaceField<Type>& Uf
) )
{ {
DDt0Field<GeometricField<Type, fvPatchField, volMesh>>& ddt0 = DDt0Field<GeometricField<Type, fvPatchField, volMesh>>& ddt0 =
@ -1128,8 +1128,8 @@ CrankNicolsonDdtScheme<Type>::fvcDdtUfCorr
U.dimensions() U.dimensions()
); );
DDt0Field<GeometricField<Type, fvsPatchField, surfaceMesh>>& dUfdt0 = DDt0Field<SurfaceField<Type>>& dUfdt0 =
ddt0_<GeometricField<Type, fvsPatchField, surfaceMesh>> ddt0_<SurfaceField<Type>>
( (
"ddtCorrDdt0(" + Uf.name() + ')', "ddtCorrDdt0(" + Uf.name() + ')',
Uf.dimensions() Uf.dimensions()
@ -1226,7 +1226,7 @@ CrankNicolsonDdtScheme<Type>::fvcDdtUfCorr
( (
const volScalarField& rho, const volScalarField& rho,
const GeometricField<Type, fvPatchField, volMesh>& U, const GeometricField<Type, fvPatchField, volMesh>& U,
const GeometricField<Type, fvsPatchField, surfaceMesh>& Uf const SurfaceField<Type>& Uf
) )
{ {
if if
@ -1242,8 +1242,8 @@ CrankNicolsonDdtScheme<Type>::fvcDdtUfCorr
rho.dimensions()*U.dimensions() rho.dimensions()*U.dimensions()
); );
DDt0Field<GeometricField<Type, fvsPatchField, surfaceMesh>>& dUfdt0 = DDt0Field<SurfaceField<Type>>& dUfdt0 =
ddt0_<GeometricField<Type, fvsPatchField, surfaceMesh>> ddt0_<SurfaceField<Type>>
( (
"ddtCorrDdt0(" + Uf.name() + ')', "ddtCorrDdt0(" + Uf.name() + ')',
Uf.dimensions() Uf.dimensions()
@ -1303,8 +1303,8 @@ CrankNicolsonDdtScheme<Type>::fvcDdtUfCorr
U.dimensions() U.dimensions()
); );
DDt0Field<GeometricField<Type, fvsPatchField, surfaceMesh>>& dUfdt0 = DDt0Field<SurfaceField<Type>>& dUfdt0 =
ddt0_<GeometricField<Type, fvsPatchField, surfaceMesh>> ddt0_<SurfaceField<Type>>
( (
"ddtCorrDdt0(" + Uf.name() + ')', "ddtCorrDdt0(" + Uf.name() + ')',
Uf.dimensions() Uf.dimensions()

View File

@ -286,7 +286,7 @@ public:
virtual tmp<fluxFieldType> fvcDdtUfCorr virtual tmp<fluxFieldType> fvcDdtUfCorr
( (
const GeometricField<Type, fvPatchField, volMesh>& U, const GeometricField<Type, fvPatchField, volMesh>& U,
const GeometricField<Type, fvsPatchField, surfaceMesh>& Uf const SurfaceField<Type>& Uf
); );
virtual tmp<fluxFieldType> fvcDdtPhiCorr virtual tmp<fluxFieldType> fvcDdtPhiCorr
@ -299,7 +299,7 @@ public:
( (
const volScalarField& rho, const volScalarField& rho,
const GeometricField<Type, fvPatchField, volMesh>& U, const GeometricField<Type, fvPatchField, volMesh>& U,
const GeometricField<Type, fvsPatchField, surfaceMesh>& Uf const SurfaceField<Type>& Uf
); );
virtual tmp<fluxFieldType> fvcDdtPhiCorr virtual tmp<fluxFieldType> fvcDdtPhiCorr
@ -332,7 +332,7 @@ template<>
tmp<surfaceScalarField> CrankNicolsonDdtScheme<scalar>::fvcDdtUfCorr tmp<surfaceScalarField> CrankNicolsonDdtScheme<scalar>::fvcDdtUfCorr
( (
const GeometricField<scalar, fvPatchField, volMesh>& U, const GeometricField<scalar, fvPatchField, volMesh>& U,
const GeometricField<scalar, fvsPatchField, surfaceMesh>& Uf const SurfaceField<scalar>& Uf
); );
template<> template<>

View File

@ -266,17 +266,17 @@ EulerDdtScheme<Type>::fvcDdt
template<class Type> template<class Type>
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> tmp<SurfaceField<Type>>
EulerDdtScheme<Type>::fvcDdt EulerDdtScheme<Type>::fvcDdt
( (
const GeometricField<Type, fvsPatchField, surfaceMesh>& sf const SurfaceField<Type>& sf
) )
{ {
const dimensionedScalar rDeltaT = 1.0/mesh().time().deltaT(); const dimensionedScalar rDeltaT = 1.0/mesh().time().deltaT();
const word ddtName("ddt("+sf.name()+')'); const word ddtName("ddt("+sf.name()+')');
return GeometricField<Type, fvsPatchField, surfaceMesh>::New return SurfaceField<Type>::New
( (
ddtName, ddtName,
rDeltaT*(sf - sf.oldTime()) rDeltaT*(sf - sf.oldTime())
@ -443,7 +443,7 @@ tmp<typename EulerDdtScheme<Type>::fluxFieldType>
EulerDdtScheme<Type>::fvcDdtUfCorr EulerDdtScheme<Type>::fvcDdtUfCorr
( (
const GeometricField<Type, fvPatchField, volMesh>& U, const GeometricField<Type, fvPatchField, volMesh>& U,
const GeometricField<Type, fvsPatchField, surfaceMesh>& Uf const SurfaceField<Type>& Uf
) )
{ {
const dimensionedScalar rDeltaT = 1.0/mesh().time().deltaT(); const dimensionedScalar rDeltaT = 1.0/mesh().time().deltaT();
@ -492,7 +492,7 @@ EulerDdtScheme<Type>::fvcDdtUfCorr
( (
const volScalarField& rho, const volScalarField& rho,
const GeometricField<Type, fvPatchField, volMesh>& U, const GeometricField<Type, fvPatchField, volMesh>& U,
const GeometricField<Type, fvsPatchField, surfaceMesh>& Uf const SurfaceField<Type>& Uf
) )
{ {
const dimensionedScalar rDeltaT = 1.0/mesh().time().deltaT(); const dimensionedScalar rDeltaT = 1.0/mesh().time().deltaT();

View File

@ -114,9 +114,9 @@ public:
const GeometricField<Type, fvPatchField, volMesh>& psi const GeometricField<Type, fvPatchField, volMesh>& psi
); );
virtual tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> fvcDdt virtual tmp<SurfaceField<Type>> fvcDdt
( (
const GeometricField<Type, fvsPatchField, surfaceMesh>& const SurfaceField<Type>&
); );
virtual tmp<fvMatrix<Type>> fvmDdt virtual tmp<fvMatrix<Type>> fvmDdt
@ -148,7 +148,7 @@ public:
virtual tmp<fluxFieldType> fvcDdtUfCorr virtual tmp<fluxFieldType> fvcDdtUfCorr
( (
const GeometricField<Type, fvPatchField, volMesh>& U, const GeometricField<Type, fvPatchField, volMesh>& U,
const GeometricField<Type, fvsPatchField, surfaceMesh>& Uf const SurfaceField<Type>& Uf
); );
virtual tmp<fluxFieldType> fvcDdtPhiCorr virtual tmp<fluxFieldType> fvcDdtPhiCorr
@ -161,7 +161,7 @@ public:
( (
const volScalarField& rho, const volScalarField& rho,
const GeometricField<Type, fvPatchField, volMesh>& U, const GeometricField<Type, fvPatchField, volMesh>& U,
const GeometricField<Type, fvsPatchField, surfaceMesh>& Uf const SurfaceField<Type>& Uf
); );
virtual tmp<fluxFieldType> fvcDdtPhiCorr virtual tmp<fluxFieldType> fvcDdtPhiCorr
@ -194,7 +194,7 @@ template<>
tmp<surfaceScalarField> EulerDdtScheme<scalar>::fvcDdtUfCorr tmp<surfaceScalarField> EulerDdtScheme<scalar>::fvcDdtUfCorr
( (
const GeometricField<scalar, fvPatchField, volMesh>& U, const GeometricField<scalar, fvPatchField, volMesh>& U,
const GeometricField<scalar, fvsPatchField, surfaceMesh>& Uf const SurfaceField<scalar>& Uf
); );
template<> template<>

View File

@ -542,7 +542,7 @@ tmp<typename SLTSDdtScheme<Type>::fluxFieldType>
SLTSDdtScheme<Type>::fvcDdtUfCorr SLTSDdtScheme<Type>::fvcDdtUfCorr
( (
const GeometricField<Type, fvPatchField, volMesh>& U, const GeometricField<Type, fvPatchField, volMesh>& U,
const GeometricField<Type, fvsPatchField, surfaceMesh>& Uf const SurfaceField<Type>& Uf
) )
{ {
const surfaceScalarField rDeltaT(fvc::interpolate(SLrDeltaT())); const surfaceScalarField rDeltaT(fvc::interpolate(SLrDeltaT()));
@ -592,7 +592,7 @@ SLTSDdtScheme<Type>::fvcDdtUfCorr
( (
const volScalarField& rho, const volScalarField& rho,
const GeometricField<Type, fvPatchField, volMesh>& U, const GeometricField<Type, fvPatchField, volMesh>& U,
const GeometricField<Type, fvsPatchField, surfaceMesh>& Uf const SurfaceField<Type>& Uf
) )
{ {
const surfaceScalarField rDeltaT(fvc::interpolate(SLrDeltaT())); const surfaceScalarField rDeltaT(fvc::interpolate(SLrDeltaT()));

View File

@ -174,7 +174,7 @@ public:
virtual tmp<fluxFieldType> fvcDdtUfCorr virtual tmp<fluxFieldType> fvcDdtUfCorr
( (
const GeometricField<Type, fvPatchField, volMesh>& U, const GeometricField<Type, fvPatchField, volMesh>& U,
const GeometricField<Type, fvsPatchField, surfaceMesh>& Uf const SurfaceField<Type>& Uf
); );
virtual tmp<fluxFieldType> fvcDdtPhiCorr virtual tmp<fluxFieldType> fvcDdtPhiCorr
@ -187,7 +187,7 @@ public:
( (
const volScalarField& rho, const volScalarField& rho,
const GeometricField<Type, fvPatchField, volMesh>& U, const GeometricField<Type, fvPatchField, volMesh>& U,
const GeometricField<Type, fvsPatchField, surfaceMesh>& Uf const SurfaceField<Type>& Uf
); );
virtual tmp<fluxFieldType> fvcDdtPhiCorr virtual tmp<fluxFieldType> fvcDdtPhiCorr
@ -220,7 +220,7 @@ template<>
tmp<surfaceScalarField> SLTSDdtScheme<scalar>::fvcDdtUfCorr tmp<surfaceScalarField> SLTSDdtScheme<scalar>::fvcDdtUfCorr
( (
const GeometricField<scalar, fvPatchField, volMesh>& U, const GeometricField<scalar, fvPatchField, volMesh>& U,
const GeometricField<scalar, fvsPatchField, surfaceMesh>& Uf const SurfaceField<scalar>& Uf
); );
template<> template<>

View File

@ -638,7 +638,7 @@ tmp<typename backwardDdtScheme<Type>::fluxFieldType>
backwardDdtScheme<Type>::fvcDdtUfCorr backwardDdtScheme<Type>::fvcDdtUfCorr
( (
const GeometricField<Type, fvPatchField, volMesh>& U, const GeometricField<Type, fvPatchField, volMesh>& U,
const GeometricField<Type, fvsPatchField, surfaceMesh>& Uf const SurfaceField<Type>& Uf
) )
{ {
const dimensionedScalar rDeltaT = 1.0/mesh().time().deltaT(); const dimensionedScalar rDeltaT = 1.0/mesh().time().deltaT();
@ -709,7 +709,7 @@ backwardDdtScheme<Type>::fvcDdtUfCorr
( (
const volScalarField& rho, const volScalarField& rho,
const GeometricField<Type, fvPatchField, volMesh>& U, const GeometricField<Type, fvPatchField, volMesh>& U,
const GeometricField<Type, fvsPatchField, surfaceMesh>& Uf const SurfaceField<Type>& Uf
) )
{ {
const dimensionedScalar rDeltaT = 1.0/mesh().time().deltaT(); const dimensionedScalar rDeltaT = 1.0/mesh().time().deltaT();

View File

@ -175,7 +175,7 @@ public:
virtual tmp<fluxFieldType> fvcDdtUfCorr virtual tmp<fluxFieldType> fvcDdtUfCorr
( (
const GeometricField<Type, fvPatchField, volMesh>& U, const GeometricField<Type, fvPatchField, volMesh>& U,
const GeometricField<Type, fvsPatchField, surfaceMesh>& Uf const SurfaceField<Type>& Uf
); );
virtual tmp<fluxFieldType> fvcDdtPhiCorr virtual tmp<fluxFieldType> fvcDdtPhiCorr
@ -188,7 +188,7 @@ public:
( (
const volScalarField& rho, const volScalarField& rho,
const GeometricField<Type, fvPatchField, volMesh>& U, const GeometricField<Type, fvPatchField, volMesh>& U,
const GeometricField<Type, fvsPatchField, surfaceMesh>& Uf const SurfaceField<Type>& Uf
); );
virtual tmp<fluxFieldType> fvcDdtPhiCorr virtual tmp<fluxFieldType> fvcDdtPhiCorr
@ -221,7 +221,7 @@ template<>
tmp<surfaceScalarField> backwardDdtScheme<scalar>::fvcDdtUfCorr tmp<surfaceScalarField> backwardDdtScheme<scalar>::fvcDdtUfCorr
( (
const GeometricField<scalar, fvPatchField, volMesh>& U, const GeometricField<scalar, fvPatchField, volMesh>& U,
const GeometricField<scalar, fvsPatchField, surfaceMesh>& Uf const SurfaceField<scalar>& Uf
); );
template<> template<>

View File

@ -155,7 +155,7 @@ tmp<typename boundedDdtScheme<Type>::fluxFieldType>
boundedDdtScheme<Type>::fvcDdtUfCorr boundedDdtScheme<Type>::fvcDdtUfCorr
( (
const GeometricField<Type, fvPatchField, volMesh>& U, const GeometricField<Type, fvPatchField, volMesh>& U,
const GeometricField<Type, fvsPatchField, surfaceMesh>& Uf const SurfaceField<Type>& Uf
) )
{ {
return scheme_.ref().fvcDdtUfCorr(U, Uf); return scheme_.ref().fvcDdtUfCorr(U, Uf);
@ -180,7 +180,7 @@ boundedDdtScheme<Type>::fvcDdtUfCorr
( (
const volScalarField& rho, const volScalarField& rho,
const GeometricField<Type, fvPatchField, volMesh>& U, const GeometricField<Type, fvPatchField, volMesh>& U,
const GeometricField<Type, fvsPatchField, surfaceMesh>& Uf const SurfaceField<Type>& Uf
) )
{ {
return scheme_.ref().fvcDdtUfCorr(rho, U, Uf); return scheme_.ref().fvcDdtUfCorr(rho, U, Uf);

View File

@ -156,7 +156,7 @@ public:
virtual tmp<fluxFieldType> fvcDdtUfCorr virtual tmp<fluxFieldType> fvcDdtUfCorr
( (
const GeometricField<Type, fvPatchField, volMesh>& U, const GeometricField<Type, fvPatchField, volMesh>& U,
const GeometricField<Type, fvsPatchField, surfaceMesh>& Uf const SurfaceField<Type>& Uf
); );
virtual tmp<fluxFieldType> fvcDdtPhiCorr virtual tmp<fluxFieldType> fvcDdtPhiCorr
@ -169,7 +169,7 @@ public:
( (
const volScalarField& rho, const volScalarField& rho,
const GeometricField<Type, fvPatchField, volMesh>& U, const GeometricField<Type, fvPatchField, volMesh>& U,
const GeometricField<Type, fvsPatchField, surfaceMesh>& Uf const SurfaceField<Type>& Uf
); );
virtual tmp<fluxFieldType> fvcDdtPhiCorr virtual tmp<fluxFieldType> fvcDdtPhiCorr
@ -202,7 +202,7 @@ template<>
tmp<surfaceScalarField> boundedDdtScheme<scalar>::fvcDdtUfCorr tmp<surfaceScalarField> boundedDdtScheme<scalar>::fvcDdtUfCorr
( (
const GeometricField<scalar, fvPatchField, volMesh>& U, const GeometricField<scalar, fvPatchField, volMesh>& U,
const GeometricField<scalar, fvsPatchField, surfaceMesh>& Uf const SurfaceField<scalar>& Uf
); );
template<> template<>

View File

@ -132,16 +132,16 @@ tmp<fvMatrix<Type>> ddtScheme<Type>::fvmDdt
template<class Type> template<class Type>
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> ddtScheme<Type>::fvcDdt tmp<SurfaceField<Type>> ddtScheme<Type>::fvcDdt
( (
const GeometricField<Type, fvsPatchField, surfaceMesh>& sf const SurfaceField<Type>& sf
) )
{ {
NotImplemented; NotImplemented;
return tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> return tmp<SurfaceField<Type>>
( (
GeometricField<Type, fvsPatchField, surfaceMesh>::null() SurfaceField<Type>::null()
); );
} }

View File

@ -161,9 +161,9 @@ public:
const GeometricField<Type, fvPatchField, volMesh>& const GeometricField<Type, fvPatchField, volMesh>&
) = 0; ) = 0;
virtual tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> fvcDdt virtual tmp<SurfaceField<Type>> fvcDdt
( (
const GeometricField<Type, fvsPatchField, surfaceMesh>& const SurfaceField<Type>&
); );
virtual tmp<fvMatrix<Type>> fvmDdt virtual tmp<fvMatrix<Type>> fvmDdt
@ -223,7 +223,7 @@ public:
virtual tmp<fluxFieldType> fvcDdtUfCorr virtual tmp<fluxFieldType> fvcDdtUfCorr
( (
const GeometricField<Type, fvPatchField, volMesh>& U, const GeometricField<Type, fvPatchField, volMesh>& U,
const GeometricField<Type, fvsPatchField, surfaceMesh>& Uf const SurfaceField<Type>& Uf
) = 0; ) = 0;
virtual tmp<fluxFieldType> fvcDdtPhiCorr virtual tmp<fluxFieldType> fvcDdtPhiCorr
@ -236,7 +236,7 @@ public:
( (
const volScalarField& rho, const volScalarField& rho,
const GeometricField<Type, fvPatchField, volMesh>& U, const GeometricField<Type, fvPatchField, volMesh>& U,
const GeometricField<Type, fvsPatchField, surfaceMesh>& Uf const SurfaceField<Type>& Uf
) = 0; ) = 0;
virtual tmp<fluxFieldType> fvcDdtPhiCorr virtual tmp<fluxFieldType> fvcDdtPhiCorr

View File

@ -177,17 +177,17 @@ localEulerDdtScheme<Type>::fvcDdt
template<class Type> template<class Type>
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> tmp<SurfaceField<Type>>
localEulerDdtScheme<Type>::fvcDdt localEulerDdtScheme<Type>::fvcDdt
( (
const GeometricField<Type, fvsPatchField, surfaceMesh>& sf const SurfaceField<Type>& sf
) )
{ {
const surfaceScalarField& rDeltaT = localRDeltaTf(); const surfaceScalarField& rDeltaT = localRDeltaTf();
const word ddtName("ddt("+sf.name()+')'); const word ddtName("ddt("+sf.name()+')');
return GeometricField<Type, fvsPatchField, surfaceMesh>::New return SurfaceField<Type>::New
( (
ddtName, ddtName,
rDeltaT*(sf - sf.oldTime()) rDeltaT*(sf - sf.oldTime())
@ -365,7 +365,7 @@ tmp<typename localEulerDdtScheme<Type>::fluxFieldType>
localEulerDdtScheme<Type>::fvcDdtUfCorr localEulerDdtScheme<Type>::fvcDdtUfCorr
( (
const GeometricField<Type, fvPatchField, volMesh>& U, const GeometricField<Type, fvPatchField, volMesh>& U,
const GeometricField<Type, fvsPatchField, surfaceMesh>& Uf const SurfaceField<Type>& Uf
) )
{ {
const surfaceScalarField rDeltaT(fvc::interpolate(localRDeltaT())); const surfaceScalarField rDeltaT(fvc::interpolate(localRDeltaT()));
@ -431,7 +431,7 @@ localEulerDdtScheme<Type>::fvcDdtUfCorr
( (
const volScalarField& rho, const volScalarField& rho,
const GeometricField<Type, fvPatchField, volMesh>& U, const GeometricField<Type, fvPatchField, volMesh>& U,
const GeometricField<Type, fvsPatchField, surfaceMesh>& Uf const SurfaceField<Type>& Uf
) )
{ {
const surfaceScalarField rDeltaT(fvc::interpolate(localRDeltaT())); const surfaceScalarField rDeltaT(fvc::interpolate(localRDeltaT()));

View File

@ -181,9 +181,9 @@ public:
const GeometricField<Type, fvPatchField, volMesh>& psi const GeometricField<Type, fvPatchField, volMesh>& psi
); );
virtual tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> fvcDdt virtual tmp<SurfaceField<Type>> fvcDdt
( (
const GeometricField<Type, fvsPatchField, surfaceMesh>& const SurfaceField<Type>&
); );
virtual tmp<fvMatrix<Type>> fvmDdt virtual tmp<fvMatrix<Type>> fvmDdt
@ -224,7 +224,7 @@ public:
virtual tmp<fluxFieldType> fvcDdtUfCorr virtual tmp<fluxFieldType> fvcDdtUfCorr
( (
const GeometricField<Type, fvPatchField, volMesh>& U, const GeometricField<Type, fvPatchField, volMesh>& U,
const GeometricField<Type, fvsPatchField, surfaceMesh>& Uf const SurfaceField<Type>& Uf
); );
virtual tmp<fluxFieldType> fvcDdtPhiCorr virtual tmp<fluxFieldType> fvcDdtPhiCorr
@ -237,7 +237,7 @@ public:
( (
const volScalarField& rho, const volScalarField& rho,
const GeometricField<Type, fvPatchField, volMesh>& U, const GeometricField<Type, fvPatchField, volMesh>& U,
const GeometricField<Type, fvsPatchField, surfaceMesh>& Uf const SurfaceField<Type>& Uf
); );
virtual tmp<fluxFieldType> fvcDdtPhiCorr virtual tmp<fluxFieldType> fvcDdtPhiCorr
@ -270,7 +270,7 @@ template<>
tmp<surfaceScalarField> localEulerDdtScheme<scalar>::fvcDdtUfCorr tmp<surfaceScalarField> localEulerDdtScheme<scalar>::fvcDdtUfCorr
( (
const GeometricField<scalar, fvPatchField, volMesh>& U, const GeometricField<scalar, fvPatchField, volMesh>& U,
const GeometricField<scalar, fvsPatchField, surfaceMesh>& Uf const SurfaceField<scalar>& Uf
); );
template<> template<>

View File

@ -229,7 +229,7 @@ tmp<typename steadyStateDdtScheme<Type>::fluxFieldType>
steadyStateDdtScheme<Type>::fvcDdtUfCorr steadyStateDdtScheme<Type>::fvcDdtUfCorr
( (
const GeometricField<Type, fvPatchField, volMesh>& U, const GeometricField<Type, fvPatchField, volMesh>& U,
const GeometricField<Type, fvsPatchField, surfaceMesh>& Uf const SurfaceField<Type>& Uf
) )
{ {
return fluxFieldType::New return fluxFieldType::New
@ -274,7 +274,7 @@ steadyStateDdtScheme<Type>::fvcDdtUfCorr
( (
const volScalarField& rho, const volScalarField& rho,
const GeometricField<Type, fvPatchField, volMesh>& U, const GeometricField<Type, fvPatchField, volMesh>& U,
const GeometricField<Type, fvsPatchField, surfaceMesh>& Uf const SurfaceField<Type>& Uf
) )
{ {
return fluxFieldType::New return fluxFieldType::New

View File

@ -146,7 +146,7 @@ public:
virtual tmp<fluxFieldType> fvcDdtUfCorr virtual tmp<fluxFieldType> fvcDdtUfCorr
( (
const GeometricField<Type, fvPatchField, volMesh>& U, const GeometricField<Type, fvPatchField, volMesh>& U,
const GeometricField<Type, fvsPatchField, surfaceMesh>& Uf const SurfaceField<Type>& Uf
); );
virtual tmp<fluxFieldType> fvcDdtPhiCorr virtual tmp<fluxFieldType> fvcDdtPhiCorr
@ -159,7 +159,7 @@ public:
( (
const volScalarField& rho, const volScalarField& rho,
const GeometricField<Type, fvPatchField, volMesh>& U, const GeometricField<Type, fvPatchField, volMesh>& U,
const GeometricField<Type, fvsPatchField, surfaceMesh>& Uf const SurfaceField<Type>& Uf
); );
virtual tmp<fluxFieldType> fvcDdtPhiCorr virtual tmp<fluxFieldType> fvcDdtPhiCorr
@ -192,7 +192,7 @@ template<>
tmp<surfaceScalarField> steadyStateDdtScheme<scalar>::fvcDdtUfCorr tmp<surfaceScalarField> steadyStateDdtScheme<scalar>::fvcDdtUfCorr
( (
const GeometricField<scalar, fvPatchField, volMesh>& U, const GeometricField<scalar, fvPatchField, volMesh>& U,
const GeometricField<scalar, fvsPatchField, surfaceMesh>& Uf const SurfaceField<scalar>& Uf
); );
template<> template<>

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -44,7 +44,7 @@ template<class Type>
tmp<GeometricField<Type, fvPatchField, volMesh>> tmp<GeometricField<Type, fvPatchField, volMesh>>
average average
( (
const GeometricField<Type, fvsPatchField, surfaceMesh>& ssf const SurfaceField<Type>& ssf
) )
{ {
const fvMesh& mesh = ssf.mesh(); const fvMesh& mesh = ssf.mesh();
@ -90,7 +90,7 @@ template<class Type>
tmp<GeometricField<Type, fvPatchField, volMesh>> tmp<GeometricField<Type, fvPatchField, volMesh>>
average average
( (
const tmp<GeometricField<Type, fvsPatchField, surfaceMesh>>& tssf const tmp<SurfaceField<Type>>& tssf
) )
{ {
tmp<GeometricField<Type, fvPatchField, volMesh>> taverage tmp<GeometricField<Type, fvPatchField, volMesh>> taverage

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -54,14 +54,14 @@ namespace fvc
template<class Type> template<class Type>
tmp<GeometricField<Type, fvPatchField, volMesh>> average tmp<GeometricField<Type, fvPatchField, volMesh>> average
( (
const GeometricField<Type, fvsPatchField, surfaceMesh>& const SurfaceField<Type>&
); );
//- Area-weighted average a surfaceField creating a volField //- Area-weighted average a surfaceField creating a volField
template<class Type> template<class Type>
tmp<GeometricField<Type, fvPatchField, volMesh>> average tmp<GeometricField<Type, fvPatchField, volMesh>> average
( (
const tmp<GeometricField<Type, fvsPatchField, surfaceMesh>>& const tmp<SurfaceField<Type>>&
); );

View File

@ -35,7 +35,7 @@ template<class Type, class CombineOp>
Foam::tmp<Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh>> Foam::tmp<Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh>>
Foam::fvc::cellReduce Foam::fvc::cellReduce
( (
const GeometricField<Type, fvsPatchField, surfaceMesh>& ssf, const SurfaceField<Type>& ssf,
const CombineOp& cop, const CombineOp& cop,
const Type& nullValue const Type& nullValue
) )
@ -83,7 +83,7 @@ template<class Type, class CombineOp>
Foam::tmp<Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh>> Foam::tmp<Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh>>
Foam::fvc::cellReduce Foam::fvc::cellReduce
( (
const tmp<GeometricField<Type, fvsPatchField, surfaceMesh>>& tssf, const tmp<SurfaceField<Type>>& tssf,
const CombineOp& cop, const CombineOp& cop,
const Type& nullValue const Type& nullValue
) )

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2013-2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2013-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -52,7 +52,7 @@ namespace fvc
template<class Type, class CombineOp> template<class Type, class CombineOp>
tmp<GeometricField<Type, fvPatchField, volMesh>> cellReduce tmp<GeometricField<Type, fvPatchField, volMesh>> cellReduce
( (
const GeometricField<Type, fvsPatchField, surfaceMesh>&, const SurfaceField<Type>&,
const CombineOp& cop, const CombineOp& cop,
const Type& nullValue = pTraits<Type>::zero const Type& nullValue = pTraits<Type>::zero
); );
@ -60,7 +60,7 @@ namespace fvc
template<class Type, class CombineOp> template<class Type, class CombineOp>
tmp<GeometricField<Type, fvPatchField, volMesh>> cellReduce tmp<GeometricField<Type, fvPatchField, volMesh>> cellReduce
( (
const tmp<GeometricField<Type, fvsPatchField, surfaceMesh>>&, const tmp<SurfaceField<Type>>&,
const CombineOp& cop, const CombineOp& cop,
const Type& nullValue = pTraits<Type>::zero const Type& nullValue = pTraits<Type>::zero
); );

View File

@ -177,10 +177,10 @@ ddt
template<class Type> template<class Type>
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> tmp<SurfaceField<Type>>
ddt ddt
( (
const GeometricField<Type, fvsPatchField, surfaceMesh>& sf const SurfaceField<Type>& sf
) )
{ {
return fv::ddtScheme<Type>::New return fv::ddtScheme<Type>::New
@ -196,7 +196,7 @@ tmp<GeometricField<typename flux<Type>::type, fvsPatchField, surfaceMesh>>
ddtCorr ddtCorr
( (
const GeometricField<Type, fvPatchField, volMesh>& U, const GeometricField<Type, fvPatchField, volMesh>& U,
const GeometricField<Type, fvsPatchField, surfaceMesh>& Uf const SurfaceField<Type>& Uf
) )
{ {
return fv::ddtScheme<Type>::New return fv::ddtScheme<Type>::New
@ -239,7 +239,7 @@ ddtCorr
fvsPatchField, fvsPatchField,
surfaceMesh surfaceMesh
>& phi, >& phi,
const autoPtr<GeometricField<Type, fvsPatchField, surfaceMesh>>& Uf const autoPtr<SurfaceField<Type>>& Uf
) )
{ {
if (U.mesh().dynamic()) if (U.mesh().dynamic())
@ -259,7 +259,7 @@ ddtCorr
( (
const volScalarField& rho, const volScalarField& rho,
const GeometricField<Type, fvPatchField, volMesh>& U, const GeometricField<Type, fvPatchField, volMesh>& U,
const GeometricField<Type, fvsPatchField, surfaceMesh>& Uf const SurfaceField<Type>& Uf
) )
{ {
return fv::ddtScheme<Type>::New return fv::ddtScheme<Type>::New
@ -304,7 +304,7 @@ ddtCorr
fvsPatchField, fvsPatchField,
surfaceMesh surfaceMesh
>& phi, >& phi,
const autoPtr<GeometricField<Type, fvsPatchField, surfaceMesh>>& Uf const autoPtr<SurfaceField<Type>>& Uf
) )
{ {
if (U.mesh().dynamic()) if (U.mesh().dynamic())

View File

@ -120,9 +120,9 @@ namespace fvc
); );
template<class Type> template<class Type>
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> ddt tmp<SurfaceField<Type>> ddt
( (
const GeometricField<Type, fvsPatchField, surfaceMesh>& const SurfaceField<Type>&
); );
template<class Type> template<class Type>
@ -138,7 +138,7 @@ namespace fvc
ddtCorr ddtCorr
( (
const GeometricField<Type, fvPatchField, volMesh>& U, const GeometricField<Type, fvPatchField, volMesh>& U,
const GeometricField<Type, fvsPatchField, surfaceMesh>& Uf const SurfaceField<Type>& Uf
); );
template<class Type> template<class Type>
@ -181,7 +181,7 @@ namespace fvc
fvsPatchField, fvsPatchField,
surfaceMesh surfaceMesh
>& phi, >& phi,
const autoPtr<GeometricField<Type, fvsPatchField, surfaceMesh>>& Uf const autoPtr<SurfaceField<Type>>& Uf
); );
template<class Type> template<class Type>
@ -198,7 +198,7 @@ namespace fvc
( (
const volScalarField& rho, const volScalarField& rho,
const GeometricField<Type, fvPatchField, volMesh>& U, const GeometricField<Type, fvPatchField, volMesh>& U,
const GeometricField<Type, fvsPatchField, surfaceMesh>& Uf const SurfaceField<Type>& Uf
); );
template<class Type> template<class Type>
@ -243,7 +243,7 @@ namespace fvc
fvsPatchField, fvsPatchField,
surfaceMesh surfaceMesh
>& phi, >& phi,
const autoPtr<GeometricField<Type, fvsPatchField, surfaceMesh>>& Uf const autoPtr<SurfaceField<Type>>& Uf
); );
} }

View File

@ -45,7 +45,7 @@ template<class Type>
tmp<GeometricField<Type, fvPatchField, volMesh>> tmp<GeometricField<Type, fvPatchField, volMesh>>
div div
( (
const GeometricField<Type, fvsPatchField, surfaceMesh>& ssf const SurfaceField<Type>& ssf
) )
{ {
return GeometricField<Type, fvPatchField, volMesh>::New return GeometricField<Type, fvPatchField, volMesh>::New
@ -60,7 +60,7 @@ template<class Type>
tmp<GeometricField<Type, fvPatchField, volMesh>> tmp<GeometricField<Type, fvPatchField, volMesh>>
div div
( (
const tmp<GeometricField<Type, fvsPatchField, surfaceMesh>>& tssf const tmp<SurfaceField<Type>>& tssf
) )
{ {
tmp<GeometricField<Type, fvPatchField, volMesh>> Div(fvc::div(tssf())); tmp<GeometricField<Type, fvPatchField, volMesh>> Div(fvc::div(tssf()));

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -53,13 +53,13 @@ namespace fvc
template<class Type> template<class Type>
tmp<GeometricField<Type, fvPatchField, volMesh>> div tmp<GeometricField<Type, fvPatchField, volMesh>> div
( (
const GeometricField<Type, fvsPatchField, surfaceMesh>& const SurfaceField<Type>&
); );
template<class Type> template<class Type>
tmp<GeometricField<Type, fvPatchField, volMesh>> div tmp<GeometricField<Type, fvPatchField, volMesh>> div
( (
const tmp<GeometricField<Type, fvsPatchField, surfaceMesh>>& const tmp<SurfaceField<Type>>&
); );

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -57,14 +57,14 @@ namespace fvc
tmp<surfaceScalarField> flux(const tmp<volVectorField>& tvvf); tmp<surfaceScalarField> flux(const tmp<volVectorField>& tvvf);
template<class Type> template<class Type>
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> flux tmp<SurfaceField<Type>> flux
( (
const surfaceScalarField&, const surfaceScalarField&,
const tmp<GeometricField<Type, fvPatchField, volMesh>>& const tmp<GeometricField<Type, fvPatchField, volMesh>>&
); );
template<class Type> template<class Type>
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> flux tmp<SurfaceField<Type>> flux
( (
const surfaceScalarField&, const surfaceScalarField&,
const GeometricField<Type, fvPatchField, volMesh>&, const GeometricField<Type, fvPatchField, volMesh>&,
@ -72,7 +72,7 @@ namespace fvc
); );
template<class Type> template<class Type>
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> flux tmp<SurfaceField<Type>> flux
( (
const surfaceScalarField&, const surfaceScalarField&,
const GeometricField<Type, fvPatchField, volMesh>&, const GeometricField<Type, fvPatchField, volMesh>&,
@ -80,7 +80,7 @@ namespace fvc
); );
template<class Type> template<class Type>
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> flux tmp<SurfaceField<Type>> flux
( (
const tmp<surfaceScalarField>&, const tmp<surfaceScalarField>&,
const GeometricField<Type, fvPatchField, volMesh>&, const GeometricField<Type, fvPatchField, volMesh>&,
@ -88,7 +88,7 @@ namespace fvc
); );
template<class Type> template<class Type>
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> flux tmp<SurfaceField<Type>> flux
( (
const surfaceScalarField&, const surfaceScalarField&,
const tmp<GeometricField<Type, fvPatchField, volMesh>>&, const tmp<GeometricField<Type, fvPatchField, volMesh>>&,
@ -96,7 +96,7 @@ namespace fvc
); );
template<class Type> template<class Type>
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> flux tmp<SurfaceField<Type>> flux
( (
const tmp<surfaceScalarField>&, const tmp<surfaceScalarField>&,
const tmp<GeometricField<Type, fvPatchField, volMesh>>&, const tmp<GeometricField<Type, fvPatchField, volMesh>>&,
@ -105,28 +105,28 @@ namespace fvc
template<class Type> template<class Type>
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> flux tmp<SurfaceField<Type>> flux
( (
const surfaceScalarField&, const surfaceScalarField&,
const GeometricField<Type, fvPatchField, volMesh>& const GeometricField<Type, fvPatchField, volMesh>&
); );
template<class Type> template<class Type>
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> flux tmp<SurfaceField<Type>> flux
( (
const tmp<surfaceScalarField>&, const tmp<surfaceScalarField>&,
const GeometricField<Type, fvPatchField, volMesh>& const GeometricField<Type, fvPatchField, volMesh>&
); );
template<class Type> template<class Type>
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> flux tmp<SurfaceField<Type>> flux
( (
const surfaceScalarField&, const surfaceScalarField&,
const tmp<GeometricField<Type, fvPatchField, volMesh>>& const tmp<GeometricField<Type, fvPatchField, volMesh>>&
); );
template<class Type> template<class Type>
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> flux tmp<SurfaceField<Type>> flux
( (
const tmp<surfaceScalarField>&, const tmp<surfaceScalarField>&,
const tmp<GeometricField<Type, fvPatchField, volMesh>>& const tmp<GeometricField<Type, fvPatchField, volMesh>>&

View File

@ -40,7 +40,7 @@ namespace fvc
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
template<class Type> template<class Type>
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> tmp<SurfaceField<Type>>
flux flux
( (
const surfaceScalarField& phi, const surfaceScalarField& phi,
@ -58,7 +58,7 @@ flux
template<class Type> template<class Type>
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> tmp<SurfaceField<Type>>
flux flux
( (
const surfaceScalarField& phi, const surfaceScalarField& phi,
@ -71,7 +71,7 @@ flux
template<class Type> template<class Type>
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> tmp<SurfaceField<Type>>
flux flux
( (
const tmp<surfaceScalarField>& tphi, const tmp<surfaceScalarField>& tphi,
@ -79,7 +79,7 @@ flux
const word& name const word& name
) )
{ {
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> Flux tmp<SurfaceField<Type>> Flux
( (
fvc::flux(tphi(), vf, name) fvc::flux(tphi(), vf, name)
); );
@ -89,7 +89,7 @@ flux
template<class Type> template<class Type>
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> tmp<SurfaceField<Type>>
flux flux
( (
const surfaceScalarField& phi, const surfaceScalarField& phi,
@ -97,7 +97,7 @@ flux
const word& name const word& name
) )
{ {
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> Flux tmp<SurfaceField<Type>> Flux
( (
fvc::flux(phi, tvf(), name) fvc::flux(phi, tvf(), name)
); );
@ -107,7 +107,7 @@ flux
template<class Type> template<class Type>
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> tmp<SurfaceField<Type>>
flux flux
( (
const tmp<surfaceScalarField>& tphi, const tmp<surfaceScalarField>& tphi,
@ -115,7 +115,7 @@ flux
const word& name const word& name
) )
{ {
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> Flux tmp<SurfaceField<Type>> Flux
( (
fvc::flux(tphi(), tvf(), name) fvc::flux(tphi(), tvf(), name)
); );
@ -126,7 +126,7 @@ flux
template<class Type> template<class Type>
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> tmp<SurfaceField<Type>>
flux flux
( (
const surfaceScalarField& phi, const surfaceScalarField& phi,
@ -141,14 +141,14 @@ flux
template<class Type> template<class Type>
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> tmp<SurfaceField<Type>>
flux flux
( (
const tmp<surfaceScalarField>& tphi, const tmp<surfaceScalarField>& tphi,
const GeometricField<Type, fvPatchField, volMesh>& vf const GeometricField<Type, fvPatchField, volMesh>& vf
) )
{ {
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> Flux tmp<SurfaceField<Type>> Flux
( (
fvc::flux(tphi(), vf) fvc::flux(tphi(), vf)
); );
@ -158,14 +158,14 @@ flux
template<class Type> template<class Type>
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> tmp<SurfaceField<Type>>
flux flux
( (
const surfaceScalarField& phi, const surfaceScalarField& phi,
const tmp<GeometricField<Type, fvPatchField, volMesh>>& tvf const tmp<GeometricField<Type, fvPatchField, volMesh>>& tvf
) )
{ {
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> Flux tmp<SurfaceField<Type>> Flux
( (
fvc::flux(phi, tvf()) fvc::flux(phi, tvf())
); );
@ -175,14 +175,14 @@ flux
template<class Type> template<class Type>
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> tmp<SurfaceField<Type>>
flux flux
( (
const tmp<surfaceScalarField>& tphi, const tmp<surfaceScalarField>& tphi,
const tmp<GeometricField<Type, fvPatchField, volMesh>>& tvf const tmp<GeometricField<Type, fvPatchField, volMesh>>& tvf
) )
{ {
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> Flux tmp<SurfaceField<Type>> Flux
( (
fvc::flux(tphi(), tvf()) fvc::flux(tphi(), tvf())
); );

View File

@ -50,7 +50,7 @@ tmp
> >
grad grad
( (
const GeometricField<Type, fvsPatchField, surfaceMesh>& ssf const SurfaceField<Type>& ssf
) )
{ {
return fv::gaussGrad<Type>::gradf(ssf, "grad(" + ssf.name() + ')'); return fv::gaussGrad<Type>::gradf(ssf, "grad(" + ssf.name() + ')');
@ -67,7 +67,7 @@ tmp
> >
grad grad
( (
const tmp<GeometricField<Type, fvsPatchField, surfaceMesh>>& tssf const tmp<SurfaceField<Type>>& tssf
) )
{ {
typedef typename outerProduct<vector, Type>::type GradType; typedef typename outerProduct<vector, Type>::type GradType;

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -57,7 +57,7 @@ namespace fvc
<typename outerProduct<vector, Type>::type, fvPatchField, volMesh> <typename outerProduct<vector, Type>::type, fvPatchField, volMesh>
> grad > grad
( (
const GeometricField<Type, fvsPatchField, surfaceMesh>& const SurfaceField<Type>&
); );
template<class Type> template<class Type>
@ -67,7 +67,7 @@ namespace fvc
<typename outerProduct<vector, Type>::type, fvPatchField, volMesh> <typename outerProduct<vector, Type>::type, fvPatchField, volMesh>
> grad > grad
( (
const tmp<GeometricField<Type, fvsPatchField, surfaceMesh>>& const tmp<SurfaceField<Type>>&
); );
template<class Type> template<class Type>

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -52,7 +52,7 @@ tmp
> >
reconstruct reconstruct
( (
const GeometricField<Type, fvsPatchField, surfaceMesh>& ssf const SurfaceField<Type>& ssf
) )
{ {
typedef typename outerProduct<vector, Type>::type GradType; typedef typename outerProduct<vector, Type>::type GradType;
@ -95,7 +95,7 @@ tmp
> >
reconstruct reconstruct
( (
const tmp<GeometricField<Type, fvsPatchField, surfaceMesh>>& tssf const tmp<SurfaceField<Type>>& tssf
) )
{ {
typedef typename outerProduct<vector, Type>::type GradType; typedef typename outerProduct<vector, Type>::type GradType;

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -57,7 +57,7 @@ namespace fvc
<typename outerProduct<vector, Type>::type, fvPatchField, volMesh> <typename outerProduct<vector, Type>::type, fvPatchField, volMesh>
> reconstruct > reconstruct
( (
const GeometricField<Type, fvsPatchField, surfaceMesh>& const SurfaceField<Type>&
); );
template<class Type> template<class Type>
@ -67,7 +67,7 @@ namespace fvc
<typename outerProduct<vector, Type>::type, fvPatchField, volMesh> <typename outerProduct<vector, Type>::type, fvPatchField, volMesh>
> reconstruct > reconstruct
( (
const tmp<GeometricField<Type, fvsPatchField, surfaceMesh>>& const tmp<SurfaceField<Type>>&
); );
tmp<volScalarField> reconstructMag(const surfaceScalarField&); tmp<volScalarField> reconstructMag(const surfaceScalarField&);

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2013-2019 OpenFOAM Foundation \\ / A nd | Copyright (C) 2013-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -49,7 +49,7 @@ tmp
> >
reconstruct reconstruct
( (
const GeometricField<Type, fvsPatchField, surfaceMesh>& ssf const SurfaceField<Type>& ssf
) )
{ {
typedef typename outerProduct<vector, Type>::type GradType; typedef typename outerProduct<vector, Type>::type GradType;
@ -89,7 +89,7 @@ reconstruct
rf[nei] -= (Cf[facei] - C[nei])*ssf[facei]; rf[nei] -= (Cf[facei] - C[nei])*ssf[facei];
} }
const typename GeometricField<Type, fvsPatchField, surfaceMesh>:: const typename SurfaceField<Type>::
Boundary& bsf = ssf.boundaryField(); Boundary& bsf = ssf.boundaryField();
forAll(bsf, patchi) forAll(bsf, patchi)
@ -124,7 +124,7 @@ tmp
> >
reconstruct reconstruct
( (
const tmp<GeometricField<Type, fvsPatchField, surfaceMesh>>& tssf const tmp<SurfaceField<Type>>& tssf
) )
{ {
typedef typename outerProduct<vector, Type>::type GradType; typedef typename outerProduct<vector, Type>::type GradType;

View File

@ -40,7 +40,7 @@ namespace fvc
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
template<class Type> template<class Type>
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> tmp<SurfaceField<Type>>
snGrad snGrad
( (
const GeometricField<Type, fvPatchField, volMesh>& vf, const GeometricField<Type, fvPatchField, volMesh>& vf,
@ -56,14 +56,14 @@ snGrad
template<class Type> template<class Type>
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> tmp<SurfaceField<Type>>
snGrad snGrad
( (
const tmp<GeometricField<Type, fvPatchField, volMesh>>& tvf, const tmp<GeometricField<Type, fvPatchField, volMesh>>& tvf,
const word& name const word& name
) )
{ {
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> SnGrad tmp<SurfaceField<Type>> SnGrad
( (
fvc::snGrad(tvf(), name) fvc::snGrad(tvf(), name)
); );
@ -73,7 +73,7 @@ snGrad
template<class Type> template<class Type>
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> tmp<SurfaceField<Type>>
snGrad snGrad
( (
const GeometricField<Type, fvPatchField, volMesh>& vf const GeometricField<Type, fvPatchField, volMesh>& vf
@ -84,13 +84,13 @@ snGrad
template<class Type> template<class Type>
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> tmp<SurfaceField<Type>>
snGrad snGrad
( (
const tmp<GeometricField<Type, fvPatchField, volMesh>>& tvf const tmp<GeometricField<Type, fvPatchField, volMesh>>& tvf
) )
{ {
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> SnGrad tmp<SurfaceField<Type>> SnGrad
( (
fvc::snGrad(tvf()) fvc::snGrad(tvf())
); );

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -51,27 +51,27 @@ namespace Foam
namespace fvc namespace fvc
{ {
template<class Type> template<class Type>
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> snGrad tmp<SurfaceField<Type>> snGrad
( (
const GeometricField<Type, fvPatchField, volMesh>&, const GeometricField<Type, fvPatchField, volMesh>&,
const word& name const word& name
); );
template<class Type> template<class Type>
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> snGrad tmp<SurfaceField<Type>> snGrad
( (
const tmp<GeometricField<Type, fvPatchField, volMesh>>&, const tmp<GeometricField<Type, fvPatchField, volMesh>>&,
const word& name const word& name
); );
template<class Type> template<class Type>
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> snGrad tmp<SurfaceField<Type>> snGrad
( (
const GeometricField<Type, fvPatchField, volMesh>& const GeometricField<Type, fvPatchField, volMesh>&
); );
template<class Type> template<class Type>
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> snGrad tmp<SurfaceField<Type>> snGrad
( (
const tmp<GeometricField<Type, fvPatchField, volMesh>>& const tmp<GeometricField<Type, fvPatchField, volMesh>>&
); );

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -43,7 +43,7 @@ template<class Type>
void surfaceIntegrate void surfaceIntegrate
( (
Field<Type>& ivf, Field<Type>& ivf,
const GeometricField<Type, fvsPatchField, surfaceMesh>& ssf const SurfaceField<Type>& ssf
) )
{ {
const fvMesh& mesh = ssf.mesh(); const fvMesh& mesh = ssf.mesh();
@ -80,7 +80,7 @@ template<class Type>
tmp<GeometricField<Type, fvPatchField, volMesh>> tmp<GeometricField<Type, fvPatchField, volMesh>>
surfaceIntegrate surfaceIntegrate
( (
const GeometricField<Type, fvsPatchField, surfaceMesh>& ssf const SurfaceField<Type>& ssf
) )
{ {
const fvMesh& mesh = ssf.mesh(); const fvMesh& mesh = ssf.mesh();
@ -113,7 +113,7 @@ template<class Type>
tmp<GeometricField<Type, fvPatchField, volMesh>> tmp<GeometricField<Type, fvPatchField, volMesh>>
surfaceIntegrate surfaceIntegrate
( (
const tmp<GeometricField<Type, fvsPatchField, surfaceMesh>>& tssf const tmp<SurfaceField<Type>>& tssf
) )
{ {
tmp<GeometricField<Type, fvPatchField, volMesh>> tvf tmp<GeometricField<Type, fvPatchField, volMesh>> tvf
@ -129,7 +129,7 @@ template<class Type>
tmp<GeometricField<Type, fvPatchField, volMesh>> tmp<GeometricField<Type, fvPatchField, volMesh>>
surfaceSum surfaceSum
( (
const GeometricField<Type, fvsPatchField, surfaceMesh>& ssf const SurfaceField<Type>& ssf
) )
{ {
const fvMesh& mesh = ssf.mesh(); const fvMesh& mesh = ssf.mesh();
@ -177,7 +177,7 @@ surfaceSum
template<class Type> template<class Type>
tmp<GeometricField<Type, fvPatchField, volMesh>> surfaceSum tmp<GeometricField<Type, fvPatchField, volMesh>> surfaceSum
( (
const tmp<GeometricField<Type, fvsPatchField, surfaceMesh>>& tssf const tmp<SurfaceField<Type>>& tssf
) )
{ {
tmp<GeometricField<Type, fvPatchField, volMesh>> tvf = surfaceSum(tssf()); tmp<GeometricField<Type, fvPatchField, volMesh>> tvf = surfaceSum(tssf());

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -56,33 +56,33 @@ namespace fvc
void surfaceIntegrate void surfaceIntegrate
( (
Field<Type>&, Field<Type>&,
const GeometricField<Type, fvsPatchField, surfaceMesh>& const SurfaceField<Type>&
); );
template<class Type> template<class Type>
tmp<GeometricField<Type, fvPatchField, volMesh>> tmp<GeometricField<Type, fvPatchField, volMesh>>
surfaceIntegrate surfaceIntegrate
( (
const GeometricField<Type, fvsPatchField, surfaceMesh>& const SurfaceField<Type>&
); );
template<class Type> template<class Type>
tmp<GeometricField<Type, fvPatchField, volMesh>> tmp<GeometricField<Type, fvPatchField, volMesh>>
surfaceIntegrate surfaceIntegrate
( (
const tmp<GeometricField<Type, fvsPatchField, surfaceMesh>>& const tmp<SurfaceField<Type>>&
); );
template<class Type> template<class Type>
tmp<GeometricField<Type, fvPatchField, volMesh>> surfaceSum tmp<GeometricField<Type, fvPatchField, volMesh>> surfaceSum
( (
const GeometricField<Type, fvsPatchField, surfaceMesh>& const SurfaceField<Type>&
); );
template<class Type> template<class Type>
tmp<GeometricField<Type, fvPatchField, volMesh>> surfaceSum tmp<GeometricField<Type, fvPatchField, volMesh>> surfaceSum
( (
const tmp<GeometricField<Type, fvsPatchField, surfaceMesh>>& const tmp<SurfaceField<Type>>&
); );
} }

View File

@ -369,7 +369,7 @@ template<class Type>
tmp<fvMatrix<Type>> tmp<fvMatrix<Type>>
laplacianCorrection laplacianCorrection
( (
const GeometricField<scalar, fvsPatchField, surfaceMesh>& gamma, const SurfaceField<scalar>& gamma,
const GeometricField<Type, fvPatchField, volMesh>& vf const GeometricField<Type, fvPatchField, volMesh>& vf
) )
{ {
@ -389,7 +389,7 @@ template<class Type>
tmp<fvMatrix<Type>> tmp<fvMatrix<Type>>
laplacianCorrection laplacianCorrection
( (
const tmp<GeometricField<scalar, fvsPatchField, surfaceMesh>>& tGamma, const tmp<SurfaceField<scalar>>& tGamma,
const GeometricField<Type, fvPatchField, volMesh>& vf const GeometricField<Type, fvPatchField, volMesh>& vf
) )
{ {

View File

@ -196,14 +196,14 @@ namespace fvm
template<class Type> template<class Type>
tmp<fvMatrix<Type>> laplacianCorrection tmp<fvMatrix<Type>> laplacianCorrection
( (
const GeometricField<scalar, fvsPatchField, surfaceMesh>&, const SurfaceField<scalar>&,
const GeometricField<Type, fvPatchField, volMesh>& const GeometricField<Type, fvPatchField, volMesh>&
); );
template<class Type> template<class Type>
tmp<fvMatrix<Type>> laplacianCorrection tmp<fvMatrix<Type>> laplacianCorrection
( (
const tmp<GeometricField<scalar, fvsPatchField, surfaceMesh>>&, const tmp<SurfaceField<scalar>>&,
const GeometricField<Type, fvPatchField, volMesh>& const GeometricField<Type, fvPatchField, volMesh>&
); );
} }

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -40,7 +40,7 @@ Foam::tmp
> >
Foam::fv::gaussGrad<Type>::gradf Foam::fv::gaussGrad<Type>::gradf
( (
const GeometricField<Type, fvsPatchField, surfaceMesh>& ssf, const SurfaceField<Type>& ssf,
const word& name const word& name
) )
{ {

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -118,7 +118,7 @@ public:
<typename outerProduct<vector, Type>::type, fvPatchField, volMesh> <typename outerProduct<vector, Type>::type, fvPatchField, volMesh>
> gradf > gradf
( (
const GeometricField<Type, fvsPatchField, surfaceMesh>&, const SurfaceField<Type>&,
const word& name const word& name
); );

View File

@ -89,7 +89,7 @@ gaussLaplacianScheme<Type, GType>::fvmLaplacianUncorrected
template<class Type, class GType> template<class Type, class GType>
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> tmp<SurfaceField<Type>>
gaussLaplacianScheme<Type, GType>::gammaSnGradCorr gaussLaplacianScheme<Type, GType>::gammaSnGradCorr
( (
const surfaceVectorField& SfGammaCorr, const surfaceVectorField& SfGammaCorr,
@ -98,9 +98,9 @@ gaussLaplacianScheme<Type, GType>::gammaSnGradCorr
{ {
const fvMesh& mesh = this->mesh(); const fvMesh& mesh = this->mesh();
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> tgammaSnGradCorr tmp<SurfaceField<Type>> tgammaSnGradCorr
( (
GeometricField<Type, fvsPatchField, surfaceMesh>::New SurfaceField<Type>::New
( (
"gammaSnGradCorr("+vf.name()+')', "gammaSnGradCorr("+vf.name()+')',
mesh, mesh,
@ -157,7 +157,7 @@ gaussLaplacianScheme<Type, GType>::fvmLaplacian
const surfaceVectorField Sn(mesh.Sf()/mesh.magSf()); const surfaceVectorField Sn(mesh.Sf()/mesh.magSf());
const surfaceVectorField SfGamma(mesh.Sf() & gamma); const surfaceVectorField SfGamma(mesh.Sf() & gamma);
const GeometricField<scalar, fvsPatchField, surfaceMesh> SfGammaSn const SurfaceField<scalar> SfGammaSn
( (
SfGamma & Sn SfGamma & Sn
); );
@ -171,7 +171,7 @@ gaussLaplacianScheme<Type, GType>::fvmLaplacian
); );
fvMatrix<Type>& fvm = tfvm.ref(); fvMatrix<Type>& fvm = tfvm.ref();
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> tfaceFluxCorrection tmp<SurfaceField<Type>> tfaceFluxCorrection
= gammaSnGradCorr(SfGammaCorr, vf); = gammaSnGradCorr(SfGammaCorr, vf);
if (this->tsnGradScheme_().corrected()) if (this->tsnGradScheme_().corrected())
@ -203,7 +203,7 @@ gaussLaplacianScheme<Type, GType>::fvcLaplacian
const surfaceVectorField Sn(mesh.Sf()/mesh.magSf()); const surfaceVectorField Sn(mesh.Sf()/mesh.magSf());
const surfaceVectorField SfGamma(mesh.Sf() & gamma); const surfaceVectorField SfGamma(mesh.Sf() & gamma);
const GeometricField<scalar, fvsPatchField, surfaceMesh> SfGammaSn const SurfaceField<scalar> SfGammaSn
( (
SfGamma & Sn SfGamma & Sn
); );

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -58,7 +58,7 @@ class gaussLaplacianScheme
{ {
// Private Member Functions // Private Member Functions
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> gammaSnGradCorr tmp<SurfaceField<Type>> gammaSnGradCorr
( (
const surfaceVectorField& SfGammaCorr, const surfaceVectorField& SfGammaCorr,
const GeometricField<Type, fvPatchField, volMesh>& const GeometricField<Type, fvPatchField, volMesh>&
@ -144,7 +144,7 @@ public:
template<> \ template<> \
tmp<fvMatrix<Type>> gaussLaplacianScheme<Type, scalar>::fvmLaplacian \ tmp<fvMatrix<Type>> gaussLaplacianScheme<Type, scalar>::fvmLaplacian \
( \ ( \
const GeometricField<scalar, fvsPatchField, surfaceMesh>&, \ const SurfaceField<scalar>&, \
const GeometricField<Type, fvPatchField, volMesh>& \ const GeometricField<Type, fvPatchField, volMesh>& \
); \ ); \
\ \
@ -152,7 +152,7 @@ template<> \
tmp<GeometricField<Type, fvPatchField, volMesh>> \ tmp<GeometricField<Type, fvPatchField, volMesh>> \
gaussLaplacianScheme<Type, scalar>::fvcLaplacian \ gaussLaplacianScheme<Type, scalar>::fvcLaplacian \
( \ ( \
const GeometricField<scalar, fvsPatchField, surfaceMesh>&, \ const SurfaceField<scalar>&, \
const GeometricField<Type, fvPatchField, volMesh>& \ const GeometricField<Type, fvPatchField, volMesh>& \
); );

View File

@ -36,13 +36,13 @@ template<> \
Foam::tmp<Foam::fvMatrix<Foam::Type>> \ Foam::tmp<Foam::fvMatrix<Foam::Type>> \
Foam::fv::gaussLaplacianScheme<Foam::Type, Foam::scalar>::fvmLaplacian \ Foam::fv::gaussLaplacianScheme<Foam::Type, Foam::scalar>::fvmLaplacian \
( \ ( \
const GeometricField<scalar, fvsPatchField, surfaceMesh>& gamma, \ const SurfaceField<scalar>& gamma, \
const GeometricField<Type, fvPatchField, volMesh>& vf \ const GeometricField<Type, fvPatchField, volMesh>& vf \
) \ ) \
{ \ { \
const fvMesh& mesh = this->mesh(); \ const fvMesh& mesh = this->mesh(); \
\ \
GeometricField<scalar, fvsPatchField, surfaceMesh> gammaMagSf \ SurfaceField<scalar> gammaMagSf \
( \ ( \
gamma*mesh.magSf() \ gamma*mesh.magSf() \
); \ ); \
@ -60,7 +60,7 @@ Foam::fv::gaussLaplacianScheme<Foam::Type, Foam::scalar>::fvmLaplacian \
if (mesh.schemes().fluxRequired(vf.name())) \ if (mesh.schemes().fluxRequired(vf.name())) \
{ \ { \
fvm.faceFluxCorrectionPtr() = new \ fvm.faceFluxCorrectionPtr() = new \
GeometricField<Type, fvsPatchField, surfaceMesh> \ SurfaceField<Type> \
( \ ( \
gammaMagSf*this->tsnGradScheme_().correction(vf) \ gammaMagSf*this->tsnGradScheme_().correction(vf) \
); \ ); \
@ -91,7 +91,7 @@ template<> \
Foam::tmp<Foam::GeometricField<Foam::Type, Foam::fvPatchField, Foam::volMesh>> \ Foam::tmp<Foam::GeometricField<Foam::Type, Foam::fvPatchField, Foam::volMesh>> \
Foam::fv::gaussLaplacianScheme<Foam::Type, Foam::scalar>::fvcLaplacian \ Foam::fv::gaussLaplacianScheme<Foam::Type, Foam::scalar>::fvcLaplacian \
( \ ( \
const GeometricField<scalar, fvsPatchField, surfaceMesh>& gamma, \ const SurfaceField<scalar>& gamma, \
const GeometricField<Type, fvPatchField, volMesh>& vf \ const GeometricField<Type, fvPatchField, volMesh>& vf \
) \ ) \
{ \ { \

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2013-2020 OpenFOAM Foundation \\ / A nd | Copyright (C) 2013-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -110,7 +110,7 @@ public:
} }
//- Return the explicit correction to the face-interpolate //- Return the explicit correction to the face-interpolate
virtual tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> virtual tmp<SurfaceField<Type>>
correction correction
( (
const GeometricField<Type, fvPatchField, volMesh>& vf const GeometricField<Type, fvPatchField, volMesh>& vf
@ -132,7 +132,7 @@ public:
centralWeight_ centralWeight_
); );
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> sft tmp<SurfaceField<Type>> sft
( (
stencil.weightedSum(vf, cfd.coeffs()) stencil.weightedSum(vf, cfd.coeffs())
); );

View File

@ -48,8 +48,8 @@ Foam::fv::correctedSnGrad<Type>::fullGradCorrection
{ {
const fvMesh& mesh = this->mesh(); const fvMesh& mesh = this->mesh();
// construct GeometricField<Type, fvsPatchField, surfaceMesh> // construct SurfaceField<Type>
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> tssf = tmp<SurfaceField<Type>> tssf =
linear<typename outerProduct<vector, Type>::type>(mesh).dotInterpolate linear<typename outerProduct<vector, Type>::type>(mesh).dotInterpolate
( (
mesh.nonOrthCorrectionVectors(), mesh.nonOrthCorrectionVectors(),
@ -74,17 +74,17 @@ Foam::fv::correctedSnGrad<Type>::correction
{ {
const fvMesh& mesh = this->mesh(); const fvMesh& mesh = this->mesh();
// construct GeometricField<Type, fvsPatchField, surfaceMesh> // construct SurfaceField<Type>
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> tssf tmp<SurfaceField<Type>> tssf
( (
GeometricField<Type, fvsPatchField, surfaceMesh>::New SurfaceField<Type>::New
( (
"snGradCorr("+vf.name()+')', "snGradCorr("+vf.name()+')',
mesh, mesh,
vf.dimensions()*mesh.nonOrthDeltaCoeffs().dimensions() vf.dimensions()*mesh.nonOrthDeltaCoeffs().dimensions()
) )
); );
GeometricField<Type, fvsPatchField, surfaceMesh>& ssf = tssf.ref(); SurfaceField<Type>& ssf = tssf.ref();
for (direction cmpt = 0; cmpt < pTraits<Type>::nComponents; cmpt++) for (direction cmpt = 0; cmpt < pTraits<Type>::nComponents; cmpt++)
{ {

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -107,7 +107,7 @@ public:
//- Return the explicit correction to the correctedSnGrad //- Return the explicit correction to the correctedSnGrad
// for the given field using the gradient of the field // for the given field using the gradient of the field
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> tmp<SurfaceField<Type>>
fullGradCorrection fullGradCorrection
( (
const GeometricField<Type, fvPatchField, volMesh>& const GeometricField<Type, fvPatchField, volMesh>&
@ -115,7 +115,7 @@ public:
//- Return the explicit correction to the correctedSnGrad //- Return the explicit correction to the correctedSnGrad
// for the given field using the gradients of the field components // for the given field using the gradients of the field components
virtual tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> virtual tmp<SurfaceField<Type>>
correction(const GeometricField<Type, fvPatchField, volMesh>&) const; correction(const GeometricField<Type, fvPatchField, volMesh>&) const;
}; };

View File

@ -50,10 +50,10 @@ Foam::fv::faceCorrectedSnGrad<Type>::fullGradCorrection
volPointInterpolation::New(mesh).interpolate(vf) volPointInterpolation::New(mesh).interpolate(vf)
); );
// construct GeometricField<Type, fvsPatchField, surfaceMesh> // construct SurfaceField<Type>
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> tsfCorr tmp<SurfaceField<Type>> tsfCorr
( (
GeometricField<Type, fvsPatchField, surfaceMesh>::New SurfaceField<Type>::New
( (
"snGradCorr("+vf.name()+')', "snGradCorr("+vf.name()+')',
mesh, mesh,
@ -124,17 +124,17 @@ Foam::fv::faceCorrectedSnGrad<Type>::correction
{ {
const fvMesh& mesh = this->mesh(); const fvMesh& mesh = this->mesh();
// construct GeometricField<Type, fvsPatchField, surfaceMesh> // construct SurfaceField<Type>
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> tssf tmp<SurfaceField<Type>> tssf
( (
GeometricField<Type, fvsPatchField, surfaceMesh>::New SurfaceField<Type>::New
( (
"snGradCorr("+vf.name()+')', "snGradCorr("+vf.name()+')',
mesh, mesh,
vf.dimensions()*mesh.nonOrthDeltaCoeffs().dimensions() vf.dimensions()*mesh.nonOrthDeltaCoeffs().dimensions()
) )
); );
GeometricField<Type, fvsPatchField, surfaceMesh>& ssf = tssf.ref(); SurfaceField<Type>& ssf = tssf.ref();
for (direction cmpt = 0; cmpt < pTraits<Type>::nComponents; cmpt++) for (direction cmpt = 0; cmpt < pTraits<Type>::nComponents; cmpt++)
{ {

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -107,7 +107,7 @@ public:
//- Return the explicit correction to the faceCorrectedSnGrad //- Return the explicit correction to the faceCorrectedSnGrad
// for the given field using the gradient of the field // for the given field using the gradient of the field
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> tmp<SurfaceField<Type>>
fullGradCorrection fullGradCorrection
( (
const GeometricField<Type, fvPatchField, volMesh>& const GeometricField<Type, fvPatchField, volMesh>&
@ -115,7 +115,7 @@ public:
//- Return the explicit correction to the faceCorrectedSnGrad //- Return the explicit correction to the faceCorrectedSnGrad
// for the given field using the gradients of the field components // for the given field using the gradients of the field components
virtual tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> virtual tmp<SurfaceField<Type>>
correction(const GeometricField<Type, fvPatchField, volMesh>&) const; correction(const GeometricField<Type, fvPatchField, volMesh>&) const;
}; };

View File

@ -86,13 +86,13 @@ tmp<surfaceScalarField> limitedSnGrad<Type>::deltaCoeffs
template<class Type> template<class Type>
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> tmp<SurfaceField<Type>>
limitedSnGrad<Type>::correction limitedSnGrad<Type>::correction
( (
const GeometricField<Type, fvPatchField, volMesh>& vf const GeometricField<Type, fvPatchField, volMesh>& vf
) const ) const
{ {
const GeometricField<Type, fvsPatchField, surfaceMesh> corr const SurfaceField<Type> corr
( (
correctedScheme_().correction(vf) correctedScheme_().correction(vf)
); );

View File

@ -142,7 +142,7 @@ public:
//- Return the explicit correction to the limitedSnGrad //- Return the explicit correction to the limitedSnGrad
// for the given field // for the given field
virtual tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> virtual tmp<SurfaceField<Type>>
correction(const GeometricField<Type, fvPatchField, volMesh>&) const; correction(const GeometricField<Type, fvPatchField, volMesh>&) const;

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -50,14 +50,14 @@ orthogonalSnGrad<Type>::~orthogonalSnGrad()
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
template<class Type> template<class Type>
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> tmp<SurfaceField<Type>>
orthogonalSnGrad<Type>::correction orthogonalSnGrad<Type>::correction
( (
const GeometricField<Type, fvPatchField, volMesh>& const GeometricField<Type, fvPatchField, volMesh>&
) const ) const
{ {
NotImplemented; NotImplemented;
return tmp<GeometricField<Type, fvsPatchField, surfaceMesh>>(nullptr); return tmp<SurfaceField<Type>>(nullptr);
} }

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -103,7 +103,7 @@ public:
//- Return the explicit correction to the orthogonalSnGrad //- Return the explicit correction to the orthogonalSnGrad
// for the given field // for the given field
virtual tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> virtual tmp<SurfaceField<Type>>
correction(const GeometricField<Type, fvPatchField, volMesh>&) const; correction(const GeometricField<Type, fvPatchField, volMesh>&) const;

View File

@ -75,13 +75,13 @@ tmp<surfaceScalarField> phaseStabilisedSnGrad<Type>::deltaCoeffs
template<class Type> template<class Type>
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> tmp<SurfaceField<Type>>
phaseStabilisedSnGrad<Type>::correction phaseStabilisedSnGrad<Type>::correction
( (
const GeometricField<Type, fvPatchField, volMesh>& vf const GeometricField<Type, fvPatchField, volMesh>& vf
) const ) const
{ {
const GeometricField<Type, fvsPatchField, surfaceMesh> corr const SurfaceField<Type> corr
( (
correctedScheme_().correction(vf) correctedScheme_().correction(vf)
); );

View File

@ -96,7 +96,7 @@ public:
//- Return the explicit correction to the phaseStabilisedSnGrad //- Return the explicit correction to the phaseStabilisedSnGrad
// for the given field // for the given field
virtual tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> virtual tmp<SurfaceField<Type>>
correction(const GeometricField<Type, fvPatchField, volMesh>&) const; correction(const GeometricField<Type, fvPatchField, volMesh>&) const;

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -96,7 +96,7 @@ snGradScheme<Type>::~snGradScheme()
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
template<class Type> template<class Type>
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> tmp<SurfaceField<Type>>
snGradScheme<Type>::snGrad snGradScheme<Type>::snGrad
( (
const GeometricField<Type, fvPatchField, volMesh>& vf, const GeometricField<Type, fvPatchField, volMesh>& vf,
@ -106,17 +106,17 @@ snGradScheme<Type>::snGrad
{ {
const fvMesh& mesh = vf.mesh(); const fvMesh& mesh = vf.mesh();
// construct GeometricField<Type, fvsPatchField, surfaceMesh> // construct SurfaceField<Type>
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> tsf tmp<SurfaceField<Type>> tsf
( (
GeometricField<Type, fvsPatchField, surfaceMesh>::New SurfaceField<Type>::New
( (
snGradName + "("+vf.name()+')', snGradName + "("+vf.name()+')',
mesh, mesh,
vf.dimensions()*tdeltaCoeffs().dimensions() vf.dimensions()*tdeltaCoeffs().dimensions()
) )
); );
GeometricField<Type, fvsPatchField, surfaceMesh>& ssf = tsf.ref(); SurfaceField<Type>& ssf = tsf.ref();
// set reference to difference factors array // set reference to difference factors array
const scalarField& deltaCoeffs = tdeltaCoeffs(); const scalarField& deltaCoeffs = tdeltaCoeffs();
@ -131,7 +131,7 @@ snGradScheme<Type>::snGrad
deltaCoeffs[facei]*(vf[neighbour[facei]] - vf[owner[facei]]); deltaCoeffs[facei]*(vf[neighbour[facei]] - vf[owner[facei]]);
} }
typename GeometricField<Type, fvsPatchField, surfaceMesh>:: typename SurfaceField<Type>::
Boundary& ssfbf = ssf.boundaryFieldRef(); Boundary& ssfbf = ssf.boundaryFieldRef();
forAll(vf.boundaryField(), patchi) forAll(vf.boundaryField(), patchi)
@ -153,7 +153,7 @@ snGradScheme<Type>::snGrad
template<class Type> template<class Type>
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> tmp<SurfaceField<Type>>
snGradScheme<Type>::sndGrad snGradScheme<Type>::sndGrad
( (
const GeometricField<Type, fvPatchField, volMesh>& vf, const GeometricField<Type, fvPatchField, volMesh>& vf,
@ -165,13 +165,13 @@ snGradScheme<Type>::sndGrad
template<class Type> template<class Type>
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> tmp<SurfaceField<Type>>
snGradScheme<Type>::snGrad snGradScheme<Type>::snGrad
( (
const GeometricField<Type, fvPatchField, volMesh>& vf const GeometricField<Type, fvPatchField, volMesh>& vf
) const ) const
{ {
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> tsf tmp<SurfaceField<Type>> tsf
( (
snGrad(vf, deltaCoeffs(vf)) snGrad(vf, deltaCoeffs(vf))
); );
@ -186,13 +186,13 @@ snGradScheme<Type>::snGrad
template<class Type> template<class Type>
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> tmp<SurfaceField<Type>>
snGradScheme<Type>::snGrad snGradScheme<Type>::snGrad
( (
const tmp<GeometricField<Type, fvPatchField, volMesh>>& tvf const tmp<GeometricField<Type, fvPatchField, volMesh>>& tvf
) const ) const
{ {
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> tsf tmp<SurfaceField<Type>> tsf
( (
snGrad(tvf()) snGrad(tvf())
); );

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -122,7 +122,7 @@ public:
//- Return the snGrad of the given cell field with the given deltaCoeffs //- Return the snGrad of the given cell field with the given deltaCoeffs
static tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> static tmp<SurfaceField<Type>>
snGrad snGrad
( (
const GeometricField<Type, fvPatchField, volMesh>&, const GeometricField<Type, fvPatchField, volMesh>&,
@ -131,7 +131,7 @@ public:
); );
//- Return the sndGrad of the given cell field //- Return the sndGrad of the given cell field
static tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> static tmp<SurfaceField<Type>>
sndGrad sndGrad
( (
const GeometricField<Type, fvPatchField, volMesh>&, const GeometricField<Type, fvPatchField, volMesh>&,
@ -152,10 +152,10 @@ public:
//- Return the explicit correction to the snGrad //- Return the explicit correction to the snGrad
// for the given field // for the given field
virtual tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> virtual tmp<SurfaceField<Type>>
correction(const GeometricField<Type, fvPatchField, volMesh>&) const correction(const GeometricField<Type, fvPatchField, volMesh>&) const
{ {
return tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> return tmp<SurfaceField<Type>>
( (
nullptr nullptr
); );
@ -163,12 +163,12 @@ public:
//- Return the snGrad of the given cell field //- Return the snGrad of the given cell field
// with explicit correction // with explicit correction
virtual tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> virtual tmp<SurfaceField<Type>>
snGrad(const GeometricField<Type, fvPatchField, volMesh>&) const; snGrad(const GeometricField<Type, fvPatchField, volMesh>&) const;
//- Return the snGrad of the given tmp cell field //- Return the snGrad of the given tmp cell field
// with explicit correction // with explicit correction
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> tmp<SurfaceField<Type>>
snGrad snGrad
( (
const tmp<GeometricField<Type, fvPatchField, volMesh>>& const tmp<GeometricField<Type, fvPatchField, volMesh>>&

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -50,14 +50,14 @@ uncorrectedSnGrad<Type>::~uncorrectedSnGrad()
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
template<class Type> template<class Type>
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> tmp<SurfaceField<Type>>
uncorrectedSnGrad<Type>::correction uncorrectedSnGrad<Type>::correction
( (
const GeometricField<Type, fvPatchField, volMesh>& const GeometricField<Type, fvPatchField, volMesh>&
) const ) const
{ {
NotImplemented; NotImplemented;
return tmp<GeometricField<Type, fvsPatchField, surfaceMesh>>(nullptr); return tmp<SurfaceField<Type>>(nullptr);
} }

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -102,7 +102,7 @@ public:
//- Return the explicit correction to the uncorrectedSnGrad //- Return the explicit correction to the uncorrectedSnGrad
// for the given field // for the given field
virtual tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> virtual tmp<SurfaceField<Type>>
correction(const GeometricField<Type, fvPatchField, volMesh>&) const; correction(const GeometricField<Type, fvPatchField, volMesh>&) const;

View File

@ -356,7 +356,7 @@ Foam::fvMatrix<Type>::fvMatrix(const fvMatrix<Type>& fvm)
if (fvm.faceFluxCorrectionPtr_) if (fvm.faceFluxCorrectionPtr_)
{ {
faceFluxCorrectionPtr_ = new faceFluxCorrectionPtr_ = new
GeometricField<Type, fvsPatchField, surfaceMesh> SurfaceField<Type>
( (
*(fvm.faceFluxCorrectionPtr_) *(fvm.faceFluxCorrectionPtr_)
); );
@ -407,7 +407,7 @@ Foam::fvMatrix<Type>::fvMatrix(const tmp<fvMatrix<Type>>& tfvm)
else else
{ {
faceFluxCorrectionPtr_ = new faceFluxCorrectionPtr_ = new
GeometricField<Type, fvsPatchField, surfaceMesh> SurfaceField<Type>
( (
*(tfvm().faceFluxCorrectionPtr_) *(tfvm().faceFluxCorrectionPtr_)
); );
@ -971,17 +971,17 @@ flux() const
<< abort(FatalError); << abort(FatalError);
} }
// construct GeometricField<Type, fvsPatchField, surfaceMesh> // construct SurfaceField<Type>
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> tfieldFlux tmp<SurfaceField<Type>> tfieldFlux
( (
GeometricField<Type, fvsPatchField, surfaceMesh>::New SurfaceField<Type>::New
( (
"flux(" + psi_.name() + ')', "flux(" + psi_.name() + ')',
psi_.mesh(), psi_.mesh(),
dimensions() dimensions()
) )
); );
GeometricField<Type, fvsPatchField, surfaceMesh>& fieldFlux = SurfaceField<Type>& fieldFlux =
tfieldFlux.ref(); tfieldFlux.ref();
for (direction cmpt=0; cmpt<pTraits<Type>::nComponents; cmpt++) for (direction cmpt=0; cmpt<pTraits<Type>::nComponents; cmpt++)
@ -1020,7 +1020,7 @@ flux() const
} }
} }
typename GeometricField<Type, fvsPatchField, surfaceMesh>:: typename SurfaceField<Type>::
Boundary& ffbf = fieldFlux.boundaryFieldRef(); Boundary& ffbf = fieldFlux.boundaryFieldRef();
forAll(ffbf, patchi) forAll(ffbf, patchi)
@ -1069,7 +1069,7 @@ void Foam::fvMatrix<Type>::operator=(const fvMatrix<Type>& fvmv)
else if (fvmv.faceFluxCorrectionPtr_) else if (fvmv.faceFluxCorrectionPtr_)
{ {
faceFluxCorrectionPtr_ = faceFluxCorrectionPtr_ =
new GeometricField<Type, fvsPatchField, surfaceMesh> new SurfaceField<Type>
(*fvmv.faceFluxCorrectionPtr_); (*fvmv.faceFluxCorrectionPtr_);
} }
} }
@ -1116,7 +1116,7 @@ void Foam::fvMatrix<Type>::operator+=(const fvMatrix<Type>& fvmv)
else if (fvmv.faceFluxCorrectionPtr_) else if (fvmv.faceFluxCorrectionPtr_)
{ {
faceFluxCorrectionPtr_ = new faceFluxCorrectionPtr_ = new
GeometricField<Type, fvsPatchField, surfaceMesh> SurfaceField<Type>
( (
*fvmv.faceFluxCorrectionPtr_ *fvmv.faceFluxCorrectionPtr_
); );
@ -1150,7 +1150,7 @@ void Foam::fvMatrix<Type>::operator-=(const fvMatrix<Type>& fvmv)
else if (fvmv.faceFluxCorrectionPtr_) else if (fvmv.faceFluxCorrectionPtr_)
{ {
faceFluxCorrectionPtr_ = faceFluxCorrectionPtr_ =
new GeometricField<Type, fvsPatchField, surfaceMesh> new SurfaceField<Type>
(-*fvmv.faceFluxCorrectionPtr_); (-*fvmv.faceFluxCorrectionPtr_);
} }
} }

View File

@ -450,7 +450,7 @@ public:
tmp<volScalarField> H1() const; tmp<volScalarField> H1() const;
//- Return the face-flux field from the matrix //- Return the face-flux field from the matrix
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> tmp<SurfaceField<Type>>
flux() const; flux() const;

View File

@ -109,7 +109,7 @@ public:
//- Sum vol field contributions to create face values //- Sum vol field contributions to create face values
template<class Type> template<class Type>
static tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> static tmp<SurfaceField<Type>>
weightedSum weightedSum
( (
const distributionMap& map, const distributionMap& map,

View File

@ -96,9 +96,9 @@ Foam::extendedCellToFaceStencil::weightedSum
List<List<Type>> stencilFld; List<List<Type>> stencilFld;
collectData(map, stencil, fld, stencilFld); collectData(map, stencil, fld, stencilFld);
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> tsfCorr tmp<SurfaceField<Type>> tsfCorr
( (
GeometricField<Type, fvsPatchField, surfaceMesh>::New SurfaceField<Type>::New
( (
fld.name(), fld.name(),
mesh, mesh,
@ -110,7 +110,7 @@ Foam::extendedCellToFaceStencil::weightedSum
) )
) )
); );
GeometricField<Type, fvsPatchField, surfaceMesh>& sf = tsfCorr.ref(); SurfaceField<Type>& sf = tsfCorr.ref();
// Internal faces // Internal faces
for (label facei = 0; facei < mesh.nInternalFaces(); facei++) for (label facei = 0; facei < mesh.nInternalFaces(); facei++)
@ -126,7 +126,7 @@ Foam::extendedCellToFaceStencil::weightedSum
// Boundaries. Either constrained or calculated so assign value // Boundaries. Either constrained or calculated so assign value
// directly (instead of nicely using operator==) // directly (instead of nicely using operator==)
typename GeometricField<Type, fvsPatchField, surfaceMesh>:: typename SurfaceField<Type>::
Boundary& bSfCorr = sf.boundaryFieldRef(); Boundary& bSfCorr = sf.boundaryFieldRef();
forAll(bSfCorr, patchi) forAll(bSfCorr, patchi)

View File

@ -110,7 +110,7 @@ public:
//- Sum vol field contributions to create face values //- Sum vol field contributions to create face values
template<class Type> template<class Type>
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> weightedSum tmp<SurfaceField<Type>> weightedSum
( (
const GeometricField<Type, fvPatchField, volMesh>& fld, const GeometricField<Type, fvPatchField, volMesh>& fld,
const List<List<scalar>>& stencilWeights const List<List<scalar>>& stencilWeights

View File

@ -174,7 +174,7 @@ public:
//- Sum vol field contributions to create face values //- Sum vol field contributions to create face values
template<class Type> template<class Type>
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> weightedSum tmp<SurfaceField<Type>> weightedSum
( (
const surfaceScalarField& phi, const surfaceScalarField& phi,
const GeometricField<Type, fvPatchField, volMesh>& fld, const GeometricField<Type, fvPatchField, volMesh>& fld,

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -45,9 +45,9 @@ Foam::extendedUpwindCellToFaceStencil::weightedSum
List<List<Type>> neiFld; List<List<Type>> neiFld;
collectData(neiMap(), neiStencil(), fld, neiFld); collectData(neiMap(), neiStencil(), fld, neiFld);
tmp<GeometricField<Type, fvsPatchField, surfaceMesh>> tsfCorr tmp<SurfaceField<Type>> tsfCorr
( (
GeometricField<Type, fvsPatchField, surfaceMesh>::New SurfaceField<Type>::New
( (
fld.name(), fld.name(),
mesh, mesh,
@ -59,7 +59,7 @@ Foam::extendedUpwindCellToFaceStencil::weightedSum
) )
) )
); );
GeometricField<Type, fvsPatchField, surfaceMesh>& sf = tsfCorr.ref(); SurfaceField<Type>& sf = tsfCorr.ref();
// Internal faces // Internal faces
for (label facei = 0; facei < mesh.nInternalFaces(); facei++) for (label facei = 0; facei < mesh.nInternalFaces(); facei++)
@ -89,7 +89,7 @@ Foam::extendedUpwindCellToFaceStencil::weightedSum
// Boundaries. Either constrained or calculated so assign value // Boundaries. Either constrained or calculated so assign value
// directly (instead of nicely using operator==) // directly (instead of nicely using operator==)
typename GeometricField<Type, fvsPatchField, surfaceMesh>:: typename SurfaceField<Type>::
Boundary& bSfCorr = sf.boundaryFieldRef(); Boundary& bSfCorr = sf.boundaryFieldRef();
forAll(bSfCorr, patchi) forAll(bSfCorr, patchi)

View File

@ -112,7 +112,7 @@ public:
template<class Type> template<class Type>
tmp<GeometricField<Type, fvPatchField, volMesh>> weightedSum tmp<GeometricField<Type, fvPatchField, volMesh>> weightedSum
( (
const GeometricField<Type, fvsPatchField, surfaceMesh>& fld, const SurfaceField<Type>& fld,
const List<List<scalar>>& stencilWeights const List<List<scalar>>& stencilWeights
) const ) const
{ {

View File

@ -86,7 +86,7 @@ public:
( (
const distributionMap& map, const distributionMap& map,
const labelListList& stencil, const labelListList& stencil,
const GeometricField<Type, fvsPatchField, surfaceMesh>& fld, const SurfaceField<Type>& fld,
const List<List<scalar>>& stencilWeights const List<List<scalar>>& stencilWeights
); );
}; };

View File

@ -32,7 +32,7 @@ void Foam::extendedFaceToCellStencil::collectData
( (
const distributionMap& map, const distributionMap& map,
const labelListList& stencil, const labelListList& stencil,
const GeometricField<Type, fvsPatchField, surfaceMesh>& fld, const SurfaceField<Type>& fld,
List<List<Type>>& stencilFld List<List<Type>>& stencilFld
) )
{ {
@ -83,7 +83,7 @@ Foam::extendedFaceToCellStencil::weightedSum
( (
const distributionMap& map, const distributionMap& map,
const labelListList& stencil, const labelListList& stencil,
const GeometricField<Type, fvsPatchField, surfaceMesh>& fld, const SurfaceField<Type>& fld,
const List<List<scalar>>& stencilWeights const List<List<scalar>>& stencilWeights
) )
{ {

View File

@ -52,7 +52,7 @@ class interpolationCellPointFace
// Private Data // Private Data
//- Linearly interpolated volfield //- Linearly interpolated volfield
const GeometricField<Type, fvsPatchField, surfaceMesh> psis_; const SurfaceField<Type> psis_;
bool findTet bool findTet
( (

Some files were not shown because too many files have changed in this diff Show More