Functions | |
List< labelPair > | getChangedPatchAndFaces (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) |
List<labelPair> Foam::fvPatchDistWave::getChangedPatchAndFaces | ( | const fvMesh & | mesh, |
const labelHashSet & | patchIDs, | ||
const scalar | minFaceFraction | ||
) |
Get initial set of changed faces.
Referenced by getInternalInfo().
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().
label Foam::fvPatchDistWave::calculate | ( | const fvMesh & | mesh, |
const labelHashSet & | patchIDs, | ||
const scalar | minFaceFraction, | ||
GeometricField< scalar, PatchField, GeoMesh > & | distance | ||
) |
Calculate distance data from patches.
Referenced by rotorDiskSource::addSup(), hePsiThermo< BasicPsiThermo, MixtureType >::correct(), heRhoThermo< BasicRhoThermo, MixtureType >::correct(), heSolidThermo< BasicSolidThermo, MixtureType >::correct(), heheuPsiThermo< BasicPsiThermo, MixtureType >::correct(), getInternalInfo(), heheuPsiThermo< BasicPsiThermo, MixtureType >::heheuPsiThermo(), hePsiThermo< BasicPsiThermo, MixtureType >::hePsiThermo(), heRhoThermo< BasicRhoThermo, MixtureType >::heRhoThermo(), heSolidThermo< BasicSolidThermo, MixtureType >::heSolidThermo(), meshToMesh::mapAndOpTgtToSrc(), inverseDistanceDiffusivity::operator()(), inverseFaceDistanceDiffusivity::operator()(), and thresholdCellFaces::thresholdCellFaces().
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().
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().
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.
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.
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.
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().
const List<WallInfo>& Foam::fvPatchDistWave::getInternalInfo | ( | const surfaceScalarField & | distance, |
FvFaceCellWave< WallInfo, TrackingData > & | wave | ||
) |
Definition at line 48 of file fvPatchDistWaveTemplates.C.
References fvMesh::boundary(), GeometricField< Type, PatchField, GeoMesh >::boundaryField(), GeometricField< Type, PatchField, GeoMesh >::boundaryFieldRef(), polyMesh::boundaryMesh(), fvMesh::C(), calculate(), calculateAndCorrect(), fvMesh::Cf(), correct(), UList< T >::data(), Foam::distance(), FvFaceCellWave< Type, TrackingData >::faceToCell(), UList< T >::first(), forAll, getChangedPatchAndFaces(), getInternalInfo(), polyMesh::globalData(), FvFaceCellWave< Type, TrackingData >::internalFaceInfo(), FvFaceCellWave< Type, TrackingData >::iterate(), mesh, primitiveMesh::nCells(), primitiveMesh::nInternalFaces(), globalMeshData::nTotalCells(), patchi, polyMesh::points(), GeometricField< Type, PatchField, GeoMesh >::primitiveFieldRef(), FvFaceCellWave< Type, TrackingData >::setFaceInfo(), List< T >::size(), and wave().