43 #ifndef Foam_structuredRenumber_H 44 #define Foam_structuredRenumber_H 52 template<
class Type>
class topoDistanceData;
69 const bool depthFirst_;
77 const bool depthFirst,
82 depthFirst_(depthFirst),
87 bool operator()(
const label a,
const label
b)
const;
101 const bool depthFirst_;
136 virtual bool needs_mesh()
const {
return true; }
Renumbering according to mesh layers. depthFirst = true: first column gets ids 0..nLayer-1, second nLayers..2*nLayers-1 etc. depthFirst = false: first layer gets ids 0,1,2 etc.
bool operator()(const label a, const label b) const
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Function class for sorting according to column and layer.
scalar distance(const vector &p1, const vector &p2)
virtual labelList renumber(const polyMesh &mesh) const
Return the cell visit order (from ordered back to original cell id)
Abstract base class for renumbering.
TypeName("structured")
Runtime type information.
layerLess(const bool depthFirst, const labelList &order, const List< topoDistanceData< label >> &distance)
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
A List of wordRe with additional matching capabilities.
A packed storage of objects of type <T> using an offset table for access.
virtual ~structuredRenumber()=default
Destructor.
virtual bool needs_mesh() const
Renumbering method requires a polyMesh!
For use with FaceCellWave. Determines topological distance to starting faces. Templated on passive tr...
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
Mesh consisting of general polyhedral cells.
List< label > labelList
A List of labels.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.