Public Member Functions | Static Public Member Functions | List of all members
snappySnapDriver Class Reference

All to do with snapping to surface. More...

Public Member Functions

 ClassName ("snappySnapDriver")
 
 snappySnapDriver (meshRefinement &meshRefiner, const labelList &globalToMasterPatch, const labelList &globalToSlavePatch, const bool dryRun=false)
 
autoPtr< mapPolyMeshmergeZoneBaffles (const List< labelPair > &)
 
void detectNearSurfaces (const scalar planarCos, const indirectPrimitivePatch &, const pointField &nearestPoint, const vectorField &nearestNormal, vectorField &disp) const
 
void smoothDisplacement (const snapParameters &snapParams, motionSmoother &) const
 
bool scaleMesh (const snapParameters &snapParams, const label nInitErrors, const List< labelPair > &baffles, motionSmoother &)
 
autoPtr< mapPolyMeshrepatchToSurface (const snapParameters &snapParams, const labelList &adaptPatchIDs, const labelList &preserveFaces)
 
void doSnap (const dictionary &snapDict, const dictionary &motionDict, const meshRefinement::FaceMergeType mergeType, const scalar featureCos, const scalar planarAngle, const snapParameters &snapParams)
 
template<class FaceList >
Foam::labelList getFacePoints (const indirectPrimitivePatch &pp, const FaceList &faces)
 

Static Public Member Functions

static scalarField calcSnapDistance (const fvMesh &mesh, const snapParameters &snapParams, const indirectPrimitivePatch &)
 
static void preSmoothPatch (const meshRefinement &meshRefiner, const snapParameters &snapParams, const label nInitErrors, const List< labelPair > &baffles, motionSmoother &)
 
static tmp< pointFieldavgCellCentres (const fvMesh &mesh, const indirectPrimitivePatch &)
 
static vectorField calcNearestSurface (const bool strictRegionSnap, const meshRefinement &meshRefiner, const labelList &globalToMasterPatch, const labelList &globalToSlavePatch, const scalarField &snapDist, const indirectPrimitivePatch &, pointField &nearestPoint, vectorField &nearestNormal)
 

Detailed Description

All to do with snapping to surface.

Source files

Definition at line 54 of file snappySnapDriver.H.

Constructor & Destructor Documentation

◆ snappySnapDriver()

snappySnapDriver ( meshRefinement meshRefiner,
const labelList globalToMasterPatch,
const labelList globalToSlavePatch,
const bool  dryRun = false 
)

Definition at line 741 of file snappySnapDriver.C.

Member Function Documentation

◆ ClassName()

ClassName ( "snappySnapDriver"  )

◆ mergeZoneBaffles()

autoPtr<mapPolyMesh> mergeZoneBaffles ( const List< labelPair > &  )

◆ calcSnapDistance()

Foam::scalarField calcSnapDistance ( const fvMesh mesh,
const snapParameters snapParams,
const indirectPrimitivePatch pp 
)
static

◆ preSmoothPatch()

void preSmoothPatch ( const meshRefinement meshRefiner,
const snapParameters snapParams,
const label  nInitErrors,
const List< labelPair > &  baffles,
motionSmoother meshMover 
)
static

◆ avgCellCentres()

Foam::tmp< Foam::pointField > avgCellCentres ( const fvMesh mesh,
const indirectPrimitivePatch pp 
)
static

◆ detectNearSurfaces()

void detectNearSurfaces ( const scalar  planarCos,
const indirectPrimitivePatch pp,
const pointField nearestPoint,
const vectorField nearestNormal,
vectorField disp 
) const

◆ calcNearestSurface()

Foam::vectorField calcNearestSurface ( const bool  strictRegionSnap,
const meshRefinement meshRefiner,
const labelList globalToMasterPatch,
const labelList globalToSlavePatch,
const scalarField snapDist,
const indirectPrimitivePatch pp,
pointField nearestPoint,
vectorField nearestNormal 
)
static

◆ smoothDisplacement()

void smoothDisplacement ( const snapParameters snapParams,
motionSmoother meshMover 
) const

◆ scaleMesh()

bool scaleMesh ( const snapParameters snapParams,
const label  nInitErrors,
const List< labelPair > &  baffles,
motionSmoother meshMover 
)

◆ repatchToSurface()

Foam::autoPtr< Foam::mapPolyMesh > repatchToSurface ( const snapParameters snapParams,
const labelList adaptPatchIDs,
const labelList preserveFaces 
)

◆ doSnap()

void doSnap ( const dictionary snapDict,
const dictionary motionDict,
const meshRefinement::FaceMergeType  mergeType,
const scalar  featureCos,
const scalar  planarAngle,
const snapParameters snapParams 
)

◆ getFacePoints()

Foam::labelList getFacePoints ( const indirectPrimitivePatch pp,
const FaceList &  faces 
)

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