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 |
Volume to surface and surface to volume mapping.
Author Hrvoje Jasak, Wikki Ltd.
Definition at line 58 of file volSurfaceMapping.H.
|
inline |
Construct from mesh.
Definition at line 71 of file volSurfaceMapping.H.
|
delete |
No copy construct.
|
default |
Destructor.
|
delete |
No copy assignment.
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().
tmp< Field< Type > > mapInternalToSurface | ( | const GeometricBoundaryField< Type, fvPatchField, volMesh > & | df | ) | const |
Map patch internal field to surface.
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().
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().
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().
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().
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.
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.
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.