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 >
void mapToSurface (const GeometricBoundaryField< Type, fvPatchField, volMesh > &, Field< Type > &result) const
 Map volume boundary fields as area field. More...
 
template<class Type >
tmp< Field< Type > > mapToSurface (const GeometricBoundaryField< Type, fvPatchField, volMesh > &) const
 Map volume boundary fields as area field. More...
 
template<class Type >
void mapToSurface (const GeometricField< Type, fvPatchField, volMesh > &, Field< Type > &result) const
 Map volume (boundary) fields to area field. More...
 
template<class Type >
void mapToSurface (const tmp< GeometricField< Type, fvPatchField, volMesh >> &, Field< Type > &result) const
 Map volume (boundary) fields to area field. More...
 
template<class Type >
tmp< Field< Type > > mapToSurface (const GeometricField< Type, fvPatchField, volMesh > &) const
 Map volume (boundary) fields to area field. More...
 
template<class Type >
tmp< Field< Type > > mapToSurface (const tmp< GeometricField< Type, fvPatchField, volMesh >> &) const
 Map volume (boundary) fields to area field. More...
 
template<class Type >
void mapToSurface (const GeometricField< Type, fvsPatchField, surfaceMesh > &, Field< Type > &result) const
 Map surface fields to area field. More...
 
template<class Type >
tmp< Field< Type > > mapToSurface (const GeometricField< Type, fvsPatchField, surfaceMesh > &) const
 Map surface fields to area field. More...
 
template<class Type >
void mapToSurface (const tmp< GeometricField< Type, fvsPatchField, surfaceMesh >> &, Field< Type > &result) const
 Map surface fields to area field. More...
 
template<class Type >
tmp< Field< Type > > mapToSurface (const tmp< GeometricField< Type, fvsPatchField, surfaceMesh >> &) const
 Map surface fields to area field. More...
 
template<class Type >
void mapToSurface (const UPtrList< Field< Type >> &patchFields, Field< Type > &result) const
 Map pre-calculated boundary fields to area field. More...
 
template<class Type >
void mapToSurface (const PtrMap< Field< Type >> &patchFields, Field< Type > &result) const
 Map pre-calculated boundary fields to area field. More...
 
template<class Type >
tmp< Field< Type > > mapToSurface (const UPtrList< Field< Type >> &patchFields) const
 Map pre-calculated boundary fields to area field. More...
 
template<class Type >
tmp< Field< Type > > mapToSurface (const PtrMap< Field< Type >> &patchFields) const
 Map pre-calculated boundary fields to area field. More...
 
template<class Type >
void mapInternalToSurface (const GeometricBoundaryField< Type, fvPatchField, volMesh > &, Field< Type > &result) const
 Map patch internal field to area field. More...
 
template<class Type >
tmp< Field< Type > > mapInternalToSurface (const GeometricBoundaryField< Type, fvPatchField, volMesh > &) const
 Map patch internal field to area field. More...
 
template<class Type >
void mapInternalToSurface (const GeometricField< Type, fvPatchField, volMesh > &, Field< Type > &result) const
 Map patch internal field to area field. More...
 
template<class Type >
void mapInternalToSurface (const tmp< GeometricField< Type, fvPatchField, volMesh >> &, Field< Type > &result) const
 Map patch internal field to area field. More...
 
template<class Type >
tmp< Field< Type > > mapInternalToSurface (const GeometricField< Type, fvPatchField, volMesh > &) const
 Map patch internal field to area field. More...
 
template<class Type >
tmp< Field< Type > > mapInternalToSurface (const tmp< GeometricField< Type, fvPatchField, volMesh >> &) const
 Map patch internal field to area field. More...
 
template<class Type >
void mapToVolume (const DimensionedField< Type, areaMesh > &, GeometricBoundaryField< Type, fvPatchField, volMesh > &dest, const label destPatchi=-1) const
 Map area field to volume boundary field, optionally restricted to a single destination patch. More...
 
template<class Type >
void mapToVolume (const tmp< DimensionedField< Type, areaMesh >> &, GeometricBoundaryField< Type, fvPatchField, volMesh > &dest, const label destPatchi=-1) const
 Map area field to volume boundary field, optionally restricted to a single destination patch. More...
 
template<class Type >
void mapToVolume (const DimensionedField< Type, areaMesh > &, GeometricField< Type, fvPatchField, volMesh > &dest, const label destPatchi=-1) const
 Map area field to volume boundary field, optionally restricted to a single destination patch. More...
 
template<class Type >
void mapToVolume (const tmp< DimensionedField< Type, areaMesh >> &, GeometricField< Type, fvPatchField, volMesh > &dest, const label destPatchi=-1) const
 Map area field to volume boundary field, optionally restricted to a single destination patch. More...
 
template<class Type >
void mapToVolume (const tmp< GeometricField< Type, faPatchField, areaMesh >> &, GeometricBoundaryField< Type, fvPatchField, volMesh > &dest, const label destPatchi=-1) const
 Map tmp area field to volume boundary field, optionally restricted to a single destination patch. More...
 
template<class Type >
void mapToVolume (const tmp< GeometricField< Type, faPatchField, areaMesh >> &, GeometricField< Type, fvPatchField, volMesh > &dest, const label destPatchi=-1) const
 Map tmp area field to volume boundary field, optionally restricted to a single destination patch. More...
 
template<class Type >
void mapToVolumePatch (const DimensionedField< Type, areaMesh > &af, Field< Type > &dest, const label destPatchi) const
 Map area field to a volume boundary patch. More...
 
template<class Type >
void mapToVolumePatch (const tmp< DimensionedField< Type, areaMesh >> &af, Field< Type > &dest, const label destPatchi) const
 Map tmp area field to a volume boundary patch. More...
 
template<class Type >
void mapToVolumePatch (const tmp< GeometricField< Type, faPatchField, areaMesh >> &taf, Field< Type > &dest, const label destPatchi) const
 Map tmp area field to a volume boundary patch. More...
 
template<class Type >
Foam::tmp< Foam::Field< Type > > mapToSurface (const GeometricBoundaryField< Type, fvPatchField, volMesh > &bfld) const
 
template<class Type >
Foam::tmp< Foam::Field< Type > > mapToSurface (const GeometricField< Type, fvPatchField, volMesh > &vfld) const
 
template<class Type >
Foam::tmp< Foam::Field< Type > > mapToSurface (const tmp< GeometricField< Type, fvPatchField, volMesh >> &tvf) const
 
template<class Type >
Foam::tmp< Foam::Field< Type > > mapToSurface (const GeometricField< Type, fvsPatchField, surfaceMesh > &fld) const
 
template<class Type >
Foam::tmp< Foam::Field< Type > > mapToSurface (const tmp< GeometricField< Type, fvsPatchField, surfaceMesh >> &tsf) const
 
template<class Type >
Foam::tmp< Foam::Field< Type > > mapToSurface (const UPtrList< Field< Type >> &patchFields) const
 
template<class Type >
Foam::tmp< Foam::Field< Type > > mapToSurface (const PtrMap< Field< Type >> &patchFields) const
 
template<class Type >
Foam::tmp< Foam::Field< Type > > mapInternalToSurface (const GeometricBoundaryField< Type, fvPatchField, volMesh > &bfld) const
 
template<class Type >
Foam::tmp< Foam::Field< Type > > mapInternalToSurface (const GeometricField< Type, fvPatchField, volMesh > &vfld) const
 
template<class Type >
Foam::tmp< Foam::Field< Type > > mapInternalToSurface (const tmp< GeometricField< Type, fvPatchField, volMesh >> &tvf) 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)
inlineexplicit

Construct from mesh.

Definition at line 75 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/21]

void mapToSurface ( const GeometricBoundaryField< Type, fvPatchField, volMesh > &  bfld,
Field< Type > &  result 
) const

Map volume boundary fields as area field.

Definition at line 28 of file volSurfaceMapping.C.

References Pair< T >::first(), and forAll.

Referenced by SurfaceFilmModel< Foam::KinematicCloud< Cloud< basicKinematicCollidingParcel > > >::cacheFilmFields(), and liquidFilmModel::preEvolveRegion().

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

◆ mapToSurface() [2/21]

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

Map volume boundary fields as area field.

◆ mapToSurface() [3/21]

void mapToSurface ( const GeometricField< Type, fvPatchField, volMesh > &  vfld,
Field< Type > &  result 
) const

Map volume (boundary) fields to area field.

Definition at line 65 of file volSurfaceMapping.C.

References GeometricField< Type, PatchField, GeoMesh >::boundaryField().

Here is the call graph for this function:

◆ mapToSurface() [4/21]

void mapToSurface ( const tmp< GeometricField< Type, fvPatchField, volMesh >> &  tvf,
Field< Type > &  result 
) const

Map volume (boundary) fields to area field.

Definition at line 76 of file volSurfaceMapping.C.

◆ mapToSurface() [5/21]

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

Map volume (boundary) fields to area field.

◆ mapToSurface() [6/21]

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

Map volume (boundary) fields to area field.

◆ mapToSurface() [7/21]

void mapToSurface ( const GeometricField< Type, fvsPatchField, surfaceMesh > &  fld,
Field< Type > &  result 
) const

Map surface fields to area field.

Definition at line 110 of file volSurfaceMapping.C.

References Pair< T >::first(), fld, forAll, and Pair< T >::second().

Here is the call graph for this function:

◆ mapToSurface() [8/21]

tmp<Field<Type> > mapToSurface ( const GeometricField< Type, fvsPatchField, surfaceMesh > &  ) const

Map surface fields to area field.

◆ mapToSurface() [9/21]

void mapToSurface ( const tmp< GeometricField< Type, fvsPatchField, surfaceMesh >> &  tsf,
Field< Type > &  result 
) const

Map surface fields to area field.

Definition at line 155 of file volSurfaceMapping.C.

◆ mapToSurface() [10/21]

tmp<Field<Type> > mapToSurface ( const tmp< GeometricField< Type, fvsPatchField, surfaceMesh >> &  ) const

Map surface fields to area field.

◆ mapToSurface() [11/21]

void mapToSurface ( const UPtrList< Field< Type >> &  patchFields,
Field< Type > &  result 
) const

Map pre-calculated boundary fields to area field.

Definition at line 179 of file volSurfaceMapping.C.

References UList< T >::first(), forAll, and UList< T >::get().

Here is the call graph for this function:

◆ mapToSurface() [12/21]

void mapToSurface ( const PtrMap< Field< Type >> &  patchFields,
Field< Type > &  result 
) const

Map pre-calculated boundary fields to area field.

Definition at line 207 of file volSurfaceMapping.C.

References UList< T >::first(), forAll, and UList< T >::get().

Here is the call graph for this function:

◆ mapToSurface() [13/21]

tmp<Field<Type> > mapToSurface ( const UPtrList< Field< Type >> &  patchFields) const

Map pre-calculated boundary fields to area field.

◆ mapToSurface() [14/21]

tmp<Field<Type> > mapToSurface ( const PtrMap< Field< Type >> &  patchFields) const

Map pre-calculated boundary fields to area field.

◆ mapInternalToSurface() [1/9]

void mapInternalToSurface ( const GeometricBoundaryField< Type, fvPatchField, volMesh > &  bfld,
Field< Type > &  result 
) const

Map patch internal field to area field.

Definition at line 259 of file volSurfaceMapping.C.

References patches, PtrList< T >::resize(), and PtrList< T >::set().

Here is the call graph for this function:

◆ mapInternalToSurface() [2/9]

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

Map patch internal field to area field.

◆ mapInternalToSurface() [3/9]

void mapInternalToSurface ( const GeometricField< Type, fvPatchField, volMesh > &  vf,
Field< Type > &  result 
) const

Map patch internal field to area field.

Definition at line 301 of file volSurfaceMapping.C.

References GeometricField< Type, PatchField, GeoMesh >::boundaryField().

Here is the call graph for this function:

◆ mapInternalToSurface() [4/9]

void mapInternalToSurface ( const tmp< GeometricField< Type, fvPatchField, volMesh >> &  tvf,
Field< Type > &  result 
) const

Map patch internal field to area field.

Definition at line 312 of file volSurfaceMapping.C.

◆ mapInternalToSurface() [5/9]

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

Map patch internal field to area field.

◆ mapInternalToSurface() [6/9]

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

Map patch internal field to area field.

◆ mapToVolume() [1/6]

void mapToVolume ( const DimensionedField< Type, areaMesh > &  af,
GeometricBoundaryField< Type, fvPatchField, volMesh > &  dest,
const label  destPatchi = -1 
) const

Map area field to volume boundary field, optionally restricted to a single destination patch.

Definition at line 346 of file volSurfaceMapping.C.

References Pair< T >::first(), and forAll.

Here is the call graph for this function:

◆ mapToVolume() [2/6]

void mapToVolume ( const tmp< DimensionedField< Type, areaMesh >> &  taf,
GeometricBoundaryField< Type, fvPatchField, volMesh > &  dest,
const label  destPatchi = -1 
) const

Map area field to volume boundary field, optionally restricted to a single destination patch.

Definition at line 373 of file volSurfaceMapping.C.

References mapToVolume().

Here is the call graph for this function:

◆ mapToVolume() [3/6]

void mapToVolume ( const DimensionedField< Type, areaMesh > &  af,
GeometricField< Type, fvPatchField, volMesh > &  dest,
const label  destPatchi = -1 
) const

Map area field to volume boundary field, optionally restricted to a single destination patch.

Definition at line 386 of file volSurfaceMapping.C.

References GeometricField< Type, PatchField, GeoMesh >::boundaryFieldRef(), and mapToVolume().

Here is the call graph for this function:

◆ mapToVolume() [4/6]

void mapToVolume ( const tmp< DimensionedField< Type, areaMesh >> &  taf,
GeometricField< Type, fvPatchField, volMesh > &  dest,
const label  destPatchi = -1 
) const

Map area field to volume boundary field, optionally restricted to a single destination patch.

Definition at line 398 of file volSurfaceMapping.C.

References GeometricField< Type, PatchField, GeoMesh >::boundaryFieldRef(), and mapToVolume().

Here is the call graph for this function:

◆ mapToVolume() [5/6]

void mapToVolume ( const tmp< GeometricField< Type, faPatchField, areaMesh >> &  taf,
GeometricBoundaryField< Type, fvPatchField, volMesh > &  dest,
const label  destPatchi = -1 
) const

Map tmp area field to volume boundary field, optionally restricted to a single destination patch.

Definition at line 410 of file volSurfaceMapping.C.

References mapToVolume().

Here is the call graph for this function:

◆ mapToVolume() [6/6]

void mapToVolume ( const tmp< GeometricField< Type, faPatchField, areaMesh >> &  taf,
GeometricField< Type, fvPatchField, volMesh > &  dest,
const label  destPatchi = -1 
) const

Map tmp area field to volume boundary field, optionally restricted to a single destination patch.

Definition at line 423 of file volSurfaceMapping.C.

References GeometricField< Type, PatchField, GeoMesh >::boundaryFieldRef(), and mapToVolume().

Here is the call graph for this function:

◆ mapToVolumePatch() [1/3]

void mapToVolumePatch ( const DimensionedField< Type, areaMesh > &  af,
Field< Type > &  dest,
const label  destPatchi 
) const

Map area field to a volume boundary patch.

Definition at line 436 of file volSurfaceMapping.C.

References UList< T >::first(), and forAll.

Here is the call graph for this function:

◆ mapToVolumePatch() [2/3]

void mapToVolumePatch ( const tmp< DimensionedField< Type, areaMesh >> &  af,
Field< Type > &  dest,
const label  destPatchi 
) const

Map tmp area field to a volume boundary patch.

Definition at line 460 of file volSurfaceMapping.C.

◆ mapToVolumePatch() [3/3]

void mapToVolumePatch ( const tmp< GeometricField< Type, faPatchField, areaMesh >> &  taf,
Field< Type > &  dest,
const label  destPatchi 
) const

Map tmp area field to a volume boundary patch.

Definition at line 473 of file volSurfaceMapping.C.

◆ mapToSurface() [15/21]

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

Definition at line 53 of file volSurfaceMapping.C.

References Foam::New(), and Foam::Zero.

Here is the call graph for this function:

◆ mapToSurface() [16/21]

Foam::tmp<Foam::Field<Type> > mapToSurface ( const GeometricField< Type, fvPatchField, volMesh > &  vfld) const

Definition at line 88 of file volSurfaceMapping.C.

References GeometricField< Type, PatchField, GeoMesh >::boundaryField().

Here is the call graph for this function:

◆ mapToSurface() [17/21]

Foam::tmp<Foam::Field<Type> > mapToSurface ( const tmp< GeometricField< Type, fvPatchField, volMesh >> &  tvf) const

Definition at line 98 of file volSurfaceMapping.C.

◆ mapToSurface() [18/21]

Foam::tmp<Foam::Field<Type> > mapToSurface ( const GeometricField< Type, fvsPatchField, surfaceMesh > &  fld) const

Definition at line 143 of file volSurfaceMapping.C.

References fld, Foam::New(), and Foam::Zero.

Here is the call graph for this function:

◆ mapToSurface() [19/21]

Foam::tmp<Foam::Field<Type> > mapToSurface ( const tmp< GeometricField< Type, fvsPatchField, surfaceMesh >> &  tsf) const

Definition at line 167 of file volSurfaceMapping.C.

◆ mapToSurface() [20/21]

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

Definition at line 235 of file volSurfaceMapping.C.

References Foam::New(), and Foam::Zero.

Here is the call graph for this function:

◆ mapToSurface() [21/21]

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

Definition at line 247 of file volSurfaceMapping.C.

References Foam::New(), and Foam::Zero.

Here is the call graph for this function:

◆ mapInternalToSurface() [7/9]

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

Definition at line 287 of file volSurfaceMapping.C.

References Foam::New(), and Foam::Zero.

Here is the call graph for this function:

◆ mapInternalToSurface() [8/9]

Foam::tmp<Foam::Field<Type> > mapInternalToSurface ( const GeometricField< Type, fvPatchField, volMesh > &  vfld) const

Definition at line 324 of file volSurfaceMapping.C.

References GeometricField< Type, PatchField, GeoMesh >::boundaryField().

Here is the call graph for this function:

◆ mapInternalToSurface() [9/9]

Foam::tmp<Foam::Field<Type> > mapInternalToSurface ( const tmp< GeometricField< Type, fvPatchField, volMesh >> &  tvf) const

Definition at line 334 of file volSurfaceMapping.C.


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