Public Types | Public Member Functions | Private Member Functions | Static Private Member Functions | Static Private Attributes
directions Class Reference

Set of directions for each cell in the mesh. Either uniform and size=1 or one set of directions per cell. More...

Inheritance diagram for directions:
Inheritance graph
[legend]
Collaboration diagram for directions:
Collaboration graph
[legend]

Public Types

enum  directionType { TAN1, TAN2, NORMAL }
 Enumeration listing the possible coordinate directions. More...
 
- Public Types inherited from List< vectorField >
typedef SubList< TsubList
 Declare type of subList. More...
 

Public Member Functions

 directions (const polyMesh &mesh, const dictionary &dict, const twoDPointCorrector *correct2DPtr=NULL)
 Construct from mesh and dictionary and optional 2D corrector. More...
 
- Public Member Functions inherited from List< vectorField >
label size () const
 Return the number of elements in the UList. More...
 
 List ()
 Null constructor. More...
 
 List (const label)
 Construct with given size. More...
 
 List (const label, const T &)
 Construct with given size and value for all elements. More...
 
 List (const List< T > &)
 Copy constructor. More...
 
 List (const Xfer< List< T > > &)
 Construct by transferring the parameter contents. More...
 
 List (List< T > &, bool reUse)
 Construct as copy or re-use as specified. More...
 
 List (const UList< T > &, const labelUList &mapAddressing)
 Construct as subset. More...
 
 List (InputIterator first, InputIterator last)
 Construct given start and end iterators. More...
 
 List (const FixedList< T, Size > &)
 Construct as copy of FixedList<T, Size> More...
 
 List (const PtrList< T > &)
 Construct as copy of PtrList<T> More...
 
 List (const SLList< T > &)
 Construct as copy of SLList<T> More...
 
 List (const UIndirectList< T > &)
 Construct as copy of UIndirectList<T> More...
 
 List (const BiIndirectList< T > &)
 Construct as copy of BiIndirectList<T> More...
 
 List (Istream &)
 Construct from Istream. More...
 
 List (const label s)
 
 List (const label s, const T &a)
 
 List (const List< T > &a)
 
 List (const Xfer< List< T > > &lst)
 
 List (List< T > &a, bool reUse)
 
 List (const UList< T > &a, const labelUList &map)
 
 List (const PtrList< T > &lst)
 
 List (const SLList< T > &lst)
 
 List (const UIndirectList< T > &lst)
 
 List (const BiIndirectList< T > &lst)
 
 List ()
 
 List (Istream &is)
 
autoPtr< List< T > > clone () const
 Clone. More...
 
 ~List ()
 Destructor. More...
 
void resize (const label)
 Alias for setSize(const label) More...
 
void resize (const label, const T &)
 Alias for setSize(const label, const T&) More...
 
void setSize (const label)
 Reset size of List. More...
 
void setSize (const label, const T &)
 Reset size of List and value for new elements. More...
 
void clear ()
 Clear the list, i.e. set size to zero. More...
 
void append (const T &)
 Append an element at the end of the list. More...
 
void append (const UList< T > &)
 Append a List at the end of this list. More...
 
void append (const UIndirectList< T > &)
 Append a UIndirectList at the end of this list. More...
 
void transfer (List< T > &)
 Transfer the contents of the argument List into this list. More...
 
void transfer (DynamicList< T, SizeInc, SizeMult, SizeDiv > &)
 Transfer the contents of the argument List into this list. More...
 
void transfer (SortableList< T > &)
 Transfer the contents of the argument List into this list. More...
 
void transfer (List< T > &a)
 
void transfer (SortableList< T > &a)
 
Xfer< List< T > > xfer ()
 Transfer contents to the Xfer container. More...
 
TnewElmt (const label)
 Return subscript-checked element of UList. More...
 
void operator= (const UList< T > &)
 Assignment from UList operator. Takes linear time. More...
 
void operator= (const List< T > &)
 Assignment operator. Takes linear time. More...
 
void operator= (const SLList< T > &)
 Assignment from SLList operator. Takes linear time. More...
 
void operator= (const UIndirectList< T > &)
 Assignment from UIndirectList operator. Takes linear time. More...
 
void operator= (const BiIndirectList< T > &)
 Assignment from BiIndirectList operator. Takes linear time. More...
 
void operator= (const T &)
 Assignment of all entries to the given value. More...
 

Private Member Functions

 directions (const directions &)
 Disallow default bitwise copy construct. More...
 
void operator= (const directions &)
 Disallow default bitwise assignment. More...
 

Static Private Member Functions

static void writeOBJ (Ostream &os, const point &pt)
 For debugging. Write point coordinate. More...
 
static void writeOBJ (Ostream &os, const point &pt0, const point &pt1, label &vertI)
 For debugging. Write edge between two points. More...
 
static void writeOBJ (const fileName &fName, const primitiveMesh &mesh, const vectorField &dirs)
 For debugging. Write hedgehog display of vectorField as obj file. More...
 
static void check2D (const twoDPointCorrector *correct2DPtr, const vector &vec)
 Check if vec has no component in 2D normal direction. Exits if. More...
 
static vectorField propagateDirection (const polyMesh &mesh, const bool useTopo, const polyPatch &pp, const vectorField &ppField, const vector &defaultDir)
 Get coordinate direction for all cells in mesh by propagating from. More...
 

Static Private Attributes

static const NamedEnum< directionType, 3 > directionTypeNames_
 

Additional Inherited Members

- Static Public Member Functions inherited from List< vectorField >
static const List< T > & null ()
 Return a null List. More...
 
- Protected Member Functions inherited from List< vectorField >
void size (const label)
 Override size to be inconsistent with allocated storage. More...
 

Detailed Description

Set of directions for each cell in the mesh. Either uniform and size=1 or one set of directions per cell.

Used in splitting cells. Either all cells have similar refinement direction ('global') or direction is dependent on local cell geometry. Controlled by dictionary.

Source files

Definition at line 63 of file directions.H.

Member Enumeration Documentation

◆ directionType

Enumeration listing the possible coordinate directions.

Enumerator
TAN1 
TAN2 
NORMAL 

Definition at line 71 of file directions.H.

Constructor & Destructor Documentation

◆ directions() [1/2]

directions ( const directions )
private

Disallow default bitwise copy construct.

◆ directions() [2/2]

directions ( const polyMesh mesh,
const dictionary dict,
const twoDPointCorrector correct2DPtr = NULL 
)

Member Function Documentation

◆ writeOBJ() [1/3]

void writeOBJ ( Ostream os,
const point pt 
)
staticprivate

For debugging. Write point coordinate.

Definition at line 61 of file directions.C.

References Foam::endl(), Vector< Cmpt >::x(), Vector< Cmpt >::y(), and Vector< Cmpt >::z().

Here is the call graph for this function:

◆ writeOBJ() [2/3]

void writeOBJ ( Ostream os,
const point pt0,
const point pt1,
label vertI 
)
staticprivate

For debugging. Write edge between two points.

Definition at line 68 of file directions.C.

References Foam::endl(), and writeOBJ().

Here is the call graph for this function:

◆ writeOBJ() [3/3]

void writeOBJ ( const fileName fName,
const primitiveMesh mesh,
const vectorField dirs 
)
staticprivate

For debugging. Write hedgehog display of vectorField as obj file.

Definition at line 86 of file directions.C.

References primitiveMesh::cellCells(), primitiveMesh::cellCentres(), Foam::endl(), forAll, Foam::mag(), mesh, Foam::min(), Foam::Pout, and writeOBJ().

Here is the call graph for this function:

◆ check2D()

void check2D ( const twoDPointCorrector correct2DPtr,
const vector vec 
)
staticprivate

Check if vec has no component in 2D normal direction. Exits if.

so.

Definition at line 121 of file directions.C.

References Foam::e, Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::mag(), and twoDPointCorrector::planeNormal().

Here is the call graph for this function:

◆ propagateDirection()

Foam::vectorField propagateDirection ( const polyMesh mesh,
const bool  useTopo,
const polyPatch pp,
const vectorField ppField,
const vector defaultDir 
)
staticprivate

◆ operator=()

void operator= ( const directions )
private

Disallow default bitwise assignment.

Field Documentation

◆ directionTypeNames_

const Foam::NamedEnum< Foam::directions::directionType, 3 > directionTypeNames_
staticprivate

Definition at line 80 of file directions.H.


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