Go to the documentation of this file.
119 inline bool valid()
const;
122 inline label
nCells()
const;
128 inline bool contains(
const scalar
p)
const;
131 inline const scalar&
min()
const;
134 inline const scalar&
max()
const;
137 inline scalar
centre()
const;
143 inline scalar
width(
const label i)
const;
147 inline scalar
C(
const label i)
const;
156 label
findIndex(
const scalar
p,
const scalar tol)
const;
161 inline const scalar&
clip(
const scalar& val)
const;
213 static bool checkMonotonic
227 const scalar scaleFactor = -1,
240 label addInternalFaces
242 faceList::iterator& faceIter,
243 labelList::iterator& ownIter,
244 labelList::iterator& neiIter
250 label addBoundaryFaces
253 faceList::iterator& faceIter,
254 labelList::iterator& ownIter
325 inline scalar
dx(
const label i)
const;
331 inline scalar
dy(
const label j)
const;
337 inline scalar
dz(
const label
k)
const;
343 inline vector span(
const label i,
const label j,
const label
k)
const;
349 inline point grid(
const label i,
const label j,
const label
k)
const;
355 inline point C(
const label i,
const label j,
const label
k)
const;
361 inline scalar
V(
const label i,
const label j,
const label
k)
const;
368 inline scalar
width(
const label i,
const label j,
const label
k)
const;
List< label > labelList
A List of labels.
scalar width(const label i, const label j, const label k) const
Characteristic cell size at i,j,k position.
vectorField pointField
pointField is a vectorField.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
scalar dz(const label k) const
Cell size in z-direction at k position.
List< scalar > scalarList
A List of scalars.
bool valid() const
The locations are valid if they contain 2 or more points.
Relative expansion ratio.
A class for handling words, derived from Foam::string.
scalar dy(const label j) const
Cell size in y-direction at j position.
bool contains(const scalar p) const
True if the location is within the range.
const scalar & minEdgeLen() const
The min edge length.
void checkIndex(const label i) const
Check that element index is within valid range.
const scalar & min() const
The first() value is considered the min value.
const boundBox & bounds() const
The mesh bounding box.
expansionType
The expansion type.
const scalar & clip(const scalar &val) const
Vector< label > labelVector
Vector of labels.
void reset(const UList< scalar > &xgrid, const UList< scalar > &ygrid, const UList< scalar > &zgrid)
Reset grid locations and mesh i-j-k sizing.
label findCell(const scalar p) const
Find the cell index enclosing this location.
autoPtr< polyMesh > mesh(const IOobject &io) const
Create polyMesh for grid definition and patch information.
scalar dx(const label i) const
Cell size in x-direction at i position.
A simple i-j-k (row-major order) to linear addressing for a rectilinear mesh. Since the underlying me...
point C(const label i, const label j, const label k) const
Cell centre at i,j,k position.
scalar centre() const
Mid-point location, zero for an empty list.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
scalar V(const label i, const label j, const label k) const
Cell volume at i,j,k position.
const Vector< location > & grid() const
The grid point locations in the i,j,k (x,y,z) directions.
label nPoints() const
The number of points in this direction.
Vector< scalar > vector
A scalar version of the templated Vector.
A single block x-y-z rectilinear mesh addressable as i,j,k with simplified creation....
scalar width(const label i) const
Cell size at element position.
vector span(const label i, const label j, const label k) const
Cell dimensions at i,j,k position.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Templated 3D Vector derived from VectorSpace adding construction from 3 components,...
label findIndex(const scalar p, const scalar tol) const
Find the grid index, within the given tolerance.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
label k
Boltzmann constant.
A bounding box defined in terms of min/max extrema points.
Uniform expansion (ie, no expansion)
vector point
Point is a vector.
label nCells() const
The number of cells in this direction.
bool read(const dictionary &dict)
Read dictionary.
const scalar & max() const
The last() value is considered the max value.
PDRblock()
Construct zero-size.
dimensionedScalar pos(const dimensionedScalar &ds)
scalar C(const label i) const
Cell centre at element position.