Loading...
Searching...
No Matches
PDRmeshArrays Class Reference

OpenFOAM/PDRblock addressing information. More...

#include <PDRmeshArrays.H>

Collaboration diagram for PDRmeshArrays:

Public Member Functions

 PDRmeshArrays ()=default
 Default construct.
 ~PDRmeshArrays ()=default
 Destructor.
label nCells () const
 The number of cells.
label nFaces () const
 The number of faces.
void classify (const polyMesh &mesh, const PDRblock &pdrBlock)
 Determine i-j-k indices for faces/cells.
void read (const Time &runTime, const PDRblock &pdrBlock)
 Read OpenFOAM mesh and determine i-j-k indices for faces/cells.

Public Attributes

labelVector cellDims
 The cell i-j-k addressing range.
labelVector faceDims
 The face i-j-k addressing range.
List< labelVectorcellIndex
 For each cell, the corresponding i-j-k address.
List< labelVectorfaceIndex
 For each face, the corresponding i-j-k address.
List< directionfaceOrient
 For each face, the x/y/z orientation.

Static Public Attributes

static scalar gridPointRelTol
 Relative tolerance when matching grid points. Default = 0.02.

Detailed Description

OpenFOAM/PDRblock addressing information.

Provides mapping for a rectilinear OpenFOAM mesh in terms of i-j-k indices for faces and cells.

The mesh points are first binned according to their i-j-k locations. Next the faces are classified according to their lowest x/y/z coordinates and the face orientation as x/y/z. Orientation in the sense +x or -x is not noted. The cell faces are then examined to determine the appropriate i-j-k location.

Source files

Definition at line 61 of file PDRmeshArrays.H.

Constructor & Destructor Documentation

◆ PDRmeshArrays()

PDRmeshArrays ( )
default

Default construct.

◆ ~PDRmeshArrays()

~PDRmeshArrays ( )
default

Destructor.

Member Function Documentation

◆ nCells()

label nCells ( ) const
inline

The number of cells.

Definition at line 115 of file PDRmeshArrays.H.

References cellIndex.

◆ nFaces()

label nFaces ( ) const
inline

The number of faces.

Definition at line 123 of file PDRmeshArrays.H.

References faceIndex.

◆ classify()

void classify ( const polyMesh & mesh,
const PDRblock & pdrBlock )

Determine i-j-k indices for faces/cells.

References mesh.

◆ read()

void read ( const Time & runTime,
const PDRblock & pdrBlock )

Read OpenFOAM mesh and determine i-j-k indices for faces/cells.

References runTime.

Member Data Documentation

◆ gridPointRelTol

scalar gridPointRelTol
static

Relative tolerance when matching grid points. Default = 0.02.

Definition at line 68 of file PDRmeshArrays.H.

◆ cellDims

labelVector cellDims

The cell i-j-k addressing range.

Definition at line 73 of file PDRmeshArrays.H.

◆ faceDims

labelVector faceDims

The face i-j-k addressing range.

Definition at line 78 of file PDRmeshArrays.H.

◆ cellIndex

List<labelVector> cellIndex

For each cell, the corresponding i-j-k address.

Definition at line 83 of file PDRmeshArrays.H.

Referenced by nCells().

◆ faceIndex

List<labelVector> faceIndex

For each face, the corresponding i-j-k address.

Definition at line 88 of file PDRmeshArrays.H.

Referenced by nFaces().

◆ faceOrient

List<direction> faceOrient

For each face, the x/y/z orientation.

Definition at line 93 of file PDRmeshArrays.H.


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