OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

autoSnapDriver Class Reference

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

Collaboration diagram for autoSnapDriver:

List of all members.


Classes

class  minMagEqOp
 Combine operator class for equalizing displacements.

Public Member Functions

 ClassName ("autoSnapDriver")
 Runtime type information.
 autoSnapDriver (meshRefinement &meshRefiner, const labelList &globalToPatch)
 Construct from components.
autoPtr< mapPolyMeshcreateZoneBaffles (List< labelPair > &)
 Create baffles for faces straddling zoned surfaces. Return.
autoPtr< mapPolyMeshmergeZoneBaffles (const List< labelPair > &)
 Merge baffles.
scalarField calcSnapDistance (const snapParameters &snapParams, const indirectPrimitivePatch &) const
 Calculate edge length per patch point.
void preSmoothPatch (const snapParameters &snapParams, const label nInitErrors, const List< labelPair > &baffles, motionSmoother &) const
 Smooth the mesh (patch and internal) to increase visibility.
labelList getZoneSurfacePoints (const indirectPrimitivePatch &, const word &zoneName) const
 Get points both on patch and facezone.
vectorField calcNearestSurface (const scalarField &snapDist, motionSmoother &meshMover) const
 Per patch point calculate point on nearest surface. Set as.
void smoothDisplacement (const snapParameters &snapParams, motionSmoother &) const
 Smooth the displacement field to the internal.
void scaleMesh (const snapParameters &snapParams, const label nInitErrors, const List< labelPair > &baffles, motionSmoother &)
 Do the hard work: move the mesh according to displacement,.
autoPtr< mapPolyMeshrepatchToSurface (const snapParameters &snapParams, const labelList &adaptPatchIDs)
 Repatch faces according to surface nearest the face centre.
void doSnap (const dictionary &snapDict, const dictionary &motionDict, const snapParameters &snapParams)

Detailed Description

All to do with snapping to surface.

Source files

Definition at line 48 of file autoSnapDriver.H.


Constructor & Destructor Documentation

autoSnapDriver ( meshRefinement meshRefiner,
const labelList globalToPatch 
)

Construct from components.

Definition at line 659 of file autoSnapDriver.C.


Member Function Documentation

ClassName ( "autoSnapDriver"   ) 

Runtime type information.

Foam::autoPtr< Foam::mapPolyMesh > createZoneBaffles ( List< labelPair > &  baffles  ) 

Create baffles for faces straddling zoned surfaces. Return.

baffles.

Definition at line 672 of file autoSnapDriver.C.

Foam::autoPtr< Foam::mapPolyMesh > mergeZoneBaffles ( const List< labelPair > &  baffles  ) 

Merge baffles.

Definition at line 757 of file autoSnapDriver.C.

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

Calculate edge length per patch point.

Definition at line 785 of file autoSnapDriver.C.

Referenced by autoSnapDriver::repatchToSurface().

Here is the caller graph for this function:

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

Smooth the mesh (patch and internal) to increase visibility.

of surface points (on castellated mesh) w.r.t. surface.

Definition at line 826 of file autoSnapDriver.C.

Foam::labelList getZoneSurfacePoints ( const indirectPrimitivePatch pp,
const word zoneName 
) const

Get points both on patch and facezone.

Definition at line 907 of file autoSnapDriver.C.

Foam::vectorField calcNearestSurface ( const scalarField snapDist,
motionSmoother meshMover 
) const

Per patch point calculate point on nearest surface. Set as.

boundary conditions of motionSmoother displacement field. Return displacement of patch points.

Definition at line 958 of file autoSnapDriver.C.

void smoothDisplacement ( const snapParameters snapParams,
motionSmoother meshMover 
) const

Smooth the displacement field to the internal.

Definition at line 1153 of file autoSnapDriver.C.

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

Do the hard work: move the mesh according to displacement,.

locally relax the displacement.

Definition at line 1215 of file autoSnapDriver.C.

void doSnap ( const dictionary snapDict,
const dictionary motionDict,
const snapParameters snapParams 
)

Definition at line 1429 of file autoSnapDriver.C.


The documentation for this class was generated from the following files:
Copyright © 2000-2009 OpenCFD Ltd