OpenFOAM logo
The Open Source CFD Toolbox
  Programmer’s C++ Doxygen OpenCFD Solutions Contact OpenFOAM

addPatchCellLayer Class Reference

Collaboration diagram for addPatchCellLayer:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 95 of file addPatchCellLayer.H.


Public Member Functions

 ClassName ("addPatchCellLayer")
 Runtime type information.
 addPatchCellLayer (const polyMesh &mesh)
 Construct from mesh.
const labelListList & addedPoints () const
 Added points per patch point.
const labelListList & layerFaces () const
 Layer faces per patch face. See above.
labelListList addedCells () const
 added cells given current mesh & layerfaces.
void setRefinement (const scalar expansionRatio, const indirectPrimitivePatch &pp, const labelList &nLayers, const vectorField &firstDisplacement, polyTopoChange &)
 Play commands into polyTopoChange to create layers on top.
void setRefinement (const label nLayers, const indirectPrimitivePatch &pp, const vectorField &overallDisplacement, polyTopoChange &meshMod)
 Add with constant expansion ratio.
void updateMesh (const mapPolyMesh &, const labelList &faceMap, const labelList &pointMap)
 Update any locally stored mesh information. Gets additional.

Static Public Member Functions

static labelListList addedCells (const polyMesh &, const labelListList &layerFaces)
 Helper: get added cells per patch face.

Constructor & Destructor Documentation

addPatchCellLayer ( const polyMesh &  mesh  ) 

Construct from mesh.


Member Function Documentation

ClassName ( "addPatchCellLayer"   ) 

Runtime type information.

const labelListList& addedPoints (  )  const [inline]

Added points per patch point.

Definition at line 190 of file addPatchCellLayer.H.

const labelListList& layerFaces (  )  const [inline]

Layer faces per patch face. See above.

Definition at line 196 of file addPatchCellLayer.H.

static labelListList addedCells ( const polyMesh &  ,
const labelListList &  layerFaces 
) [static]

Helper: get added cells per patch face.

addedCells[patchFace] is list of cells added. Last element is the top cells (i.e. the boundary cell)

labelListList addedCells (  )  const

added cells given current mesh & layerfaces.

void setRefinement ( const scalar  expansionRatio,
const indirectPrimitivePatch &  pp,
const labelList &  nLayers,
const vectorField &  firstDisplacement,
polyTopoChange &   
)

Play commands into polyTopoChange to create layers on top.

of indirectPrimitivePatch (have to be outside faces). Gets displacement per patch point.

  • nLayers : number of layers
  • firstDisplacement : displacement per point for first layer of points. If zero do not add point. Layer thicknesses are calculated to constant geometric expansion. Use expansionRatio for constant size. Sets addedPoints_ which is per pp point a list of points added. Note: firstDisplacement has to be parallel synchronised before calling this routine. Only if all procs sharing a point get a cell should firstDisplacement be <> 0

void setRefinement ( const label  nLayers,
const indirectPrimitivePatch &  pp,
const vectorField &  overallDisplacement,
polyTopoChange &  meshMod 
) [inline]

Add with constant expansion ratio.

Definition at line 244 of file addPatchCellLayer.H.

void updateMesh ( const mapPolyMesh &  ,
const labelList &  faceMap,
const labelList &  pointMap 
)

Update any locally stored mesh information. Gets additional.

map from new to old patch (since patch needs to be recreated since has to be on outside).


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