volSurfaceMapping Class Reference

Volume to surface and surface to volume mapping. More...

Public Member Functions

 volSurfaceMapping (const faMesh &mesh)
 Construct from mesh. More...
 
 volSurfaceMapping (const volSurfaceMapping &)=delete
 No copy construct. More...
 
void operator= (const volSurfaceMapping &)=delete
 No copy assignment. More...
 
 ~volSurfaceMapping ()=default
 Destructor. More...
 
template<class Type >
tmp< Field< Type > > mapToSurface (const GeometricBoundaryField< Type, fvPatchField, volMesh > &df) const
 Map volume boundary field to surface. More...
 
template<class Type >
tmp< Field< Type > > mapToSurface (const Field< Type > &f) const
 Map vol Field to surface Field. More...
 
template<class Type >
tmp< Field< Type > > mapInternalToSurface (const GeometricBoundaryField< Type, fvPatchField, volMesh > &df) const
 Map patch internal field to surface. More...
 
template<class Type >
void mapToVolume (const GeometricField< Type, faPatchField, areaMesh > &af, GeometricBoundaryField< Type, fvPatchField, volMesh > &bf) const
 Map surface field to volume boundary field. More...
 
template<class Type >
void mapToVolume (const tmp< GeometricField< Type, faPatchField, areaMesh > > &taf, GeometricBoundaryField< Type, fvPatchField, volMesh > &bf) const
 Map surface tmp field to volume boundary field. More...
 
template<class Type >
void mapToField (const GeometricField< Type, faPatchField, areaMesh > &af, Field< Type > &f) const
 Map surface field to field. More...
 
template<class Type >
void mapToField (const Field< Type > &af, Field< Type > &f) const
 Map surface field to volume field. More...
 
template<class Type >
Foam::tmp< Foam::Field< Type > > mapToSurface (const GeometricBoundaryField< Type, fvPatchField, volMesh > &df) const
 
template<class Type >
Foam::tmp< Foam::Field< Type > > mapToSurface (const Field< Type > &f) const
 
template<class Type >
Foam::tmp< Foam::Field< Type > > mapInternalToSurface (const GeometricBoundaryField< Type, fvPatchField, volMesh > &df) const
 

Detailed Description

Volume to surface and surface to volume mapping.

Author Hrvoje Jasak, Wikki Ltd.

Source files

Definition at line 58 of file volSurfaceMapping.H.

Constructor & Destructor Documentation

◆ volSurfaceMapping() [1/2]

volSurfaceMapping ( const faMesh mesh)
inline

Construct from mesh.

Definition at line 71 of file volSurfaceMapping.H.

◆ volSurfaceMapping() [2/2]

volSurfaceMapping ( const volSurfaceMapping )
delete

No copy construct.

◆ ~volSurfaceMapping()

~volSurfaceMapping ( )
default

Destructor.

Member Function Documentation

◆ operator=()

void operator= ( const volSurfaceMapping )
delete

No copy assignment.

◆ mapToSurface() [1/4]

tmp< Field< Type > > mapToSurface ( const GeometricBoundaryField< Type, fvPatchField, volMesh > &  df) const

Map volume boundary field to surface.

Referenced by liquidFilmModel::preEvolveRegion(), filmTurbulenceModel::primaryRegionFriction(), and sensitivitySurface::smoothSensitivities().

Here is the caller graph for this function:

◆ mapToSurface() [2/4]

tmp< Field< Type > > mapToSurface ( const Field< Type > &  f) const

Map vol Field to surface Field.

◆ mapInternalToSurface() [1/2]

tmp< Field< Type > > mapInternalToSurface ( const GeometricBoundaryField< Type, fvPatchField, volMesh > &  df) const

Map patch internal field to surface.

◆ mapToVolume() [1/2]

void mapToVolume ( const GeometricField< Type, faPatchField, areaMesh > &  af,
GeometricBoundaryField< Type, fvPatchField, volMesh > &  bf 
) const

Map surface field to volume boundary field.

Definition at line 134 of file volSurfaceMapping.C.

References polyMesh::boundaryMesh(), forAll, GeometricField< Type, PatchField, GeoMesh >::internalField(), primitiveMesh::nFaces(), patchID, and polyBoundaryMesh::whichPatch().

Referenced by sensitivitySurface::smoothSensitivities().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mapToVolume() [2/2]

void mapToVolume ( const tmp< GeometricField< Type, faPatchField, areaMesh > > &  taf,
GeometricBoundaryField< Type, fvPatchField, volMesh > &  bf 
) const

Map surface tmp field to volume boundary field.

Definition at line 166 of file volSurfaceMapping.C.

References mapToVolume().

Here is the call graph for this function:

◆ mapToField() [1/2]

void mapToField ( const GeometricField< Type, faPatchField, areaMesh > &  af,
Field< Type > &  f 
) const

Map surface field to field.

Assumes Field faces in the same order as Boundary

Definition at line 179 of file volSurfaceMapping.C.

References f(), and GeometricField< Type, PatchField, GeoMesh >::internalField().

Referenced by SurfaceFilmModel< CloudType >::cacheFilmFields(), and ThermoSurfaceFilm< CloudType >::cacheFilmFields().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mapToField() [2/2]

void mapToField ( const Field< Type > &  af,
Field< Type > &  f 
) const

Map surface field to volume field.

Assumes Field faces in the same order as Boundary

Definition at line 192 of file volSurfaceMapping.C.

References polyMesh::boundaryMesh(), f(), forAll, primitiveMesh::nFaces(), patchID, and polyBoundaryMesh::whichPatch().

Here is the call graph for this function:

◆ mapToSurface() [3/4]

Foam::tmp< Foam::Field< Type > > mapToSurface ( const GeometricBoundaryField< Type, fvPatchField, volMesh > &  df) const

Definition at line 34 of file volSurfaceMapping.C.

References polyMesh::boundaryMesh(), faMesh::faceLabels(), forAll, Foam::New(), primitiveMesh::nFaces(), patchID, UList< T >::size(), polyBoundaryMesh::whichPatch(), and Foam::Zero.

Here is the call graph for this function:

◆ mapToSurface() [4/4]

Foam::tmp< Foam::Field< Type > > mapToSurface ( const Field< Type > &  f) const

Definition at line 69 of file volSurfaceMapping.C.

References polyMesh::boundaryMesh(), f(), forAll, Foam::New(), primitiveMesh::nFaces(), patchID, UList< T >::size(), polyBoundaryMesh::whichPatch(), and Foam::Zero.

Here is the call graph for this function:

◆ mapInternalToSurface() [2/2]

Foam::tmp< Foam::Field< Type > > mapInternalToSurface ( const GeometricBoundaryField< Type, fvPatchField, volMesh > &  df) const

Definition at line 99 of file volSurfaceMapping.C.

References polyMesh::boundaryMesh(), forAll, Foam::New(), primitiveMesh::nFaces(), patchID, UList< T >::size(), polyBoundaryMesh::whichPatch(), and Foam::Zero.

Here is the call graph for this function:

The documentation for this class was generated from the following files: