FreeFOAM The Cross-Platform CFD Toolkit
surfaceToCell Class Reference

A topoSetSource to select cells based on relation to surface. More...

#include <meshTools/surfaceToCell.H>


Detailed Description

A topoSetSource to select cells based on relation to surface.

Selects:

  • all cells inside/outside/cut by surface
  • cells with centre nearer than XXX to surface
  • cells with centre nearer than XXX to surface and with normal at nearest point to centre and cell-corners differing by more than YYY (i.e., point of high curvature)
Source files

Definition at line 59 of file surfaceToCell.H.

+ Inheritance diagram for surfaceToCell:
+ Collaboration diagram for surfaceToCell:

List of all members.

Public Member Functions

 TypeName ("surfaceToCell")
 Runtime type information.
 surfaceToCell (const polyMesh &mesh, const fileName &surfName, const pointField &outsidePoints, const bool includeCut, const bool includeInside, const bool includeOutside, const scalar nearDist, const scalar curvature)
 Construct from components.
 surfaceToCell (const polyMesh &mesh, const fileName &surfName, const triSurface &surf, const triSurfaceSearch &querySurf, const pointField &outsidePoints, const bool includeCut, const bool includeInside, const bool includeOutside, const scalar nearDist, const scalar curvature)
 Construct from components (supplied surface, surfaceSearch)
 surfaceToCell (const polyMesh &mesh, const dictionary &dict)
 Construct from dictionary.
 surfaceToCell (const polyMesh &mesh, Istream &)
 Construct from Istream.
virtual ~surfaceToCell ()
virtual void applyToSet (const topoSetSource::setAction action, topoSet &) const
- Public Member Functions inherited from topoSetSource
 TypeName ("topoSetSource")
 Runtime type information.
 declareRunTimeSelectionTable (autoPtr, topoSetSource, word,(const polyMesh &mesh, const dictionary &dict),(mesh, dict))
 declareRunTimeSelectionTable (autoPtr, topoSetSource, istream,(const polyMesh &mesh, Istream &is),(mesh, is))
 topoSetSource (const polyMesh &mesh)
 Construct from components.
autoPtr< topoSetSourceclone () const
 Clone.
virtual ~topoSetSource ()
const polyMeshmesh () const

Additional Inherited Members

- Public Types inherited from topoSetSource
enum  setAction {
  CLEAR, NEW, INVERT, ADD,
  DELETE, SUBSET, LIST, REMOVE
}
 Enumeration defining the valid actions. More...
- Static Public Member Functions inherited from topoSetSource
static setAction toAction (const word &actionName)
 Convert string to action.
static IstreamcheckIs (Istream &is)
 Check state of stream.
static const stringusage (const word &name)
static autoPtr< topoSetSourceNew (const word &topoSetSourceType, const polyMesh &mesh, const dictionary &dict)
 Return a reference to the selected topoSetSource.
static autoPtr< topoSetSourceNew (const word &topoSetSourceType, const polyMesh &mesh, Istream &is)
 Return a reference to the selected topoSetSource.
- Protected Member Functions inherited from topoSetSource
void addOrDelete (topoSet &set, const label cellI, const bool) const
 Add (if bool) cellI to set or delete cellI from set.
- Protected Attributes inherited from topoSetSource
const polyMeshmesh_
- Static Protected Attributes inherited from topoSetSource
static HashTable< string > * usageTablePtr_ = NULL
 A table of usage strings.

Constructor & Destructor Documentation

surfaceToCell ( const polyMesh mesh,
const fileName surfName,
const pointField outsidePoints,
const bool  includeCut,
const bool  includeInside,
const bool  includeOutside,
const scalar  nearDist,
const scalar  curvature 
)

Construct from components.

Definition at line 335 of file surfaceToCell.C.

surfaceToCell ( const polyMesh mesh,
const fileName surfName,
const triSurface surf,
const triSurfaceSearch querySurf,
const pointField outsidePoints,
const bool  includeCut,
const bool  includeInside,
const bool  includeOutside,
const scalar  nearDist,
const scalar  curvature 
)

Construct from components (supplied surface, surfaceSearch)

Definition at line 364 of file surfaceToCell.C.

surfaceToCell ( const polyMesh mesh,
const dictionary dict 
)

Construct from dictionary.

Definition at line 395 of file surfaceToCell.C.

surfaceToCell ( const polyMesh mesh,
Istream is 
)

Construct from Istream.

Definition at line 418 of file surfaceToCell.C.

~surfaceToCell ( )
virtual

Definition at line 441 of file surfaceToCell.C.


Member Function Documentation

TypeName ( "surfaceToCell"  )

Runtime type information.

void applyToSet ( const topoSetSource::setAction  action,
topoSet set 
) const
virtual

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