Foam::fvPatchDistWave Namespace Reference

Functions

List< labelPairgetChangedPatchAndFaces (const fvMesh &mesh, const labelHashSet &patchIDs, const scalar minFaceFraction)
 Get initial set of changed faces. More...
 
template<class WallInfo , class TrackingData , template< class > class PatchField, class GeoMesh , class ... DataType>
label wave (const fvMesh &mesh, const List< labelPair > &changedPatchAndFaces, const label nCorrections, GeometricField< scalar, PatchField, GeoMesh > &distance, TrackingData &td, GeometricField< DataType, PatchField, GeoMesh > &... data)
 Wave distance (and maybe additional) data from faces. If nCorrections is. More...
 
template<template< class > class PatchField, class GeoMesh >
label calculate (const fvMesh &mesh, const labelHashSet &patchIDs, const scalar minFaceFraction, GeometricField< scalar, PatchField, GeoMesh > &distance)
 Calculate distance data from patches. More...
 
template<template< class > class PatchField, class GeoMesh >
void correct (const fvMesh &mesh, const labelHashSet &patchIDs, const scalar minFaceFraction, const label nCorrections, GeometricField< scalar, PatchField, GeoMesh > &distance)
 Correct distance data from patches. More...
 
template<template< class > class PatchField, class GeoMesh >
label calculateAndCorrect (const fvMesh &mesh, const labelHashSet &patchIDs, const scalar minFaceFraction, const label nCorrections, GeometricField< scalar, PatchField, GeoMesh > &distance)
 Calculate and correct distance data from patches. More...
 
template<template< class > class WallInfoData, template< class > class PatchField, class GeoMesh , class TrackingData = int>
label calculate (const fvMesh &mesh, const labelHashSet &patchIDs, const scalar minFaceFraction, GeometricField< scalar, PatchField, GeoMesh > &distance, GeometricField< typename WallInfoData< wallPoint >::dataType, PatchField, GeoMesh > &data, TrackingData &td=FvFaceCellWave< WallInfoData< wallPoint >>::defaultTrackingData_)
 Calculate distance and additional data from patches. More...
 
template<template< class > class WallInfoData, template< class > class PatchField, class GeoMesh , class TrackingData = int>
void correct (const fvMesh &mesh, const labelHashSet &patchIDs, const scalar minFaceFraction, const label nCorrections, GeometricField< scalar, PatchField, GeoMesh > &distance, GeometricField< typename WallInfoData< wallPoint >::dataType, PatchField, GeoMesh > &data, TrackingData &td=FvFaceCellWave< WallInfoData< wallPoint >>::defaultTrackingData_)
 Correct distance and additional data from patches. More...
 
template<template< class > class WallInfoData, template< class > class PatchField, class GeoMesh , class TrackingData = int>
label calculateAndCorrect (const fvMesh &mesh, const labelHashSet &patchIDs, const scalar minFaceFraction, const label nCorrections, GeometricField< scalar, PatchField, GeoMesh > &distance, GeometricField< typename WallInfoData< wallPoint >::dataType, PatchField, GeoMesh > &data, TrackingData &td=FvFaceCellWave< WallInfoData< wallPoint >>::defaultTrackingData_)
 Calculate and correct distance and additional data from patches. More...
 
template<class WallInfo , class TrackingData >
const List< WallInfo > & getInternalInfo (const volScalarField &distance, FvFaceCellWave< WallInfo, TrackingData > &wave)
 
template<class WallInfo , class TrackingData >
const List< WallInfo > & getInternalInfo (const surfaceScalarField &distance, FvFaceCellWave< WallInfo, TrackingData > &wave)
 

Function Documentation

◆ getChangedPatchAndFaces()

List<labelPair> Foam::fvPatchDistWave::getChangedPatchAndFaces ( const fvMesh mesh,
const labelHashSet patchIDs,
const scalar  minFaceFraction 
)

Get initial set of changed faces.

Referenced by getInternalInfo().

Here is the caller graph for this function:

◆ wave()

label Foam::fvPatchDistWave::wave ( const fvMesh mesh,
const List< labelPair > &  changedPatchAndFaces,
const label  nCorrections,
GeometricField< scalar, PatchField, GeoMesh > &  distance,
TrackingData &  td,
GeometricField< DataType, PatchField, GeoMesh > &...  data 
)

Wave distance (and maybe additional) data from faces. If nCorrections is.

negative (-1) then the wave propagates through the entire mesh and all values are calculated. If nCorrections is positive, then this many wave steps are computed and the result is corrected only on cells and faces that the wave reaches. Don't use this directly. Use calculate/correct/calculateAndCorrect functions below.

Referenced by Airy::celerity(), getInternalInfo(), and Foam::min().

Here is the caller graph for this function:

◆ calculate() [1/2]

◆ correct() [1/2]

void Foam::fvPatchDistWave::correct ( const fvMesh mesh,
const labelHashSet patchIDs,
const scalar  minFaceFraction,
const label  nCorrections,
GeometricField< scalar, PatchField, GeoMesh > &  distance 
)

Correct distance data from patches.

Referenced by getInternalInfo().

Here is the caller graph for this function:

◆ calculateAndCorrect() [1/2]

label Foam::fvPatchDistWave::calculateAndCorrect ( const fvMesh mesh,
const labelHashSet patchIDs,
const scalar  minFaceFraction,
const label  nCorrections,
GeometricField< scalar, PatchField, GeoMesh > &  distance 
)

Calculate and correct distance data from patches.

Referenced by meshWave::correct(), and getInternalInfo().

Here is the caller graph for this function:

◆ calculate() [2/2]

label Foam::fvPatchDistWave::calculate ( const fvMesh mesh,
const labelHashSet patchIDs,
const scalar  minFaceFraction,
GeometricField< scalar, PatchField, GeoMesh > &  distance,
GeometricField< typename WallInfoData< wallPoint >::dataType, PatchField, GeoMesh > &  data,
TrackingData &  td = FvFaceCellWave< WallInfoData< wallPoint >>::defaultTrackingData_ 
)

Calculate distance and additional data from patches.

◆ correct() [2/2]

void Foam::fvPatchDistWave::correct ( const fvMesh mesh,
const labelHashSet patchIDs,
const scalar  minFaceFraction,
const label  nCorrections,
GeometricField< scalar, PatchField, GeoMesh > &  distance,
GeometricField< typename WallInfoData< wallPoint >::dataType, PatchField, GeoMesh > &  data,
TrackingData &  td = FvFaceCellWave< WallInfoData< wallPoint >>::defaultTrackingData_ 
)

Correct distance and additional data from patches.

◆ calculateAndCorrect() [2/2]

label Foam::fvPatchDistWave::calculateAndCorrect ( const fvMesh mesh,
const labelHashSet patchIDs,
const scalar  minFaceFraction,
const label  nCorrections,
GeometricField< scalar, PatchField, GeoMesh > &  distance,
GeometricField< typename WallInfoData< wallPoint >::dataType, PatchField, GeoMesh > &  data,
TrackingData &  td = FvFaceCellWave< WallInfoData< wallPoint >>::defaultTrackingData_ 
)

Calculate and correct distance and additional data from patches.

◆ getInternalInfo() [1/2]

const List<WallInfo>& Foam::fvPatchDistWave::getInternalInfo ( const volScalarField distance,
FvFaceCellWave< WallInfo, TrackingData > &  wave 
)

Definition at line 38 of file fvPatchDistWaveTemplates.C.

References FvFaceCellWave< Type, TrackingData >::cellInfo().

Referenced by getInternalInfo().

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

◆ getInternalInfo() [2/2]