Go to the documentation of this file.
168 mutable label index_;
199 inline bool valid() const noexcept;
202 inline label
start() const noexcept;
205 inline label
end() const noexcept;
249 virtual scalar
length() const = 0;
267 #include "blockEdgeI.H"
TypeName("blockEdge")
Runtime type information.
iNew(const dictionary &dict, const searchableSurfaces &geometry, const pointField &points)
A class for managing temporary objects.
An edge is a list of two point labels. The functionality it provides supports the discretisation on a...
static autoPtr< blockEdge > New(const dictionary &dict, const label index, const searchableSurfaces &geometry, const pointField &points, Istream &is)
New function which constructs and returns pointer to a blockEdge.
declareRunTimeSelectionTable(autoPtr, blockEdge, Istream,(const dictionary &dict, const label index, const searchableSurfaces &geometry, const pointField &points, Istream &is),(dict, index, geometry, points, is))
Define a curved edge that is parameterized for 0<lambda<1 between the start/end points.
const point & lastPoint() const
The location of the last point.
blockEdge(const pointField &points, const label from, const label to)
Construct from components.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
virtual ~blockEdge()=default
Destructor.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
const pointField & points_
The referenced point field.
point linearPosition(const scalar lambda) const
The point position in the straight line.
autoPtr< blockEdge > operator()(Istream &is) const
virtual scalar length() const =0
The length of the curve.
label end() const noexcept
Index of end (last) point.
const label start_
Index of the first point.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
dimensionedScalar lambda("lambda", dimTime/sqr(dimLength), laminarTransport)
OBJstream os(runTime.globalPath()/outputName)
virtual point position(const scalar lambda) const =0
The point position corresponding to the curve parameter.
static pointField appendEndPoints(const pointField &p, const label from, const label to, const pointField &intermediate)
const label end_
Index of the last point.
label start() const noexcept
Index of start (first) point.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
int compare(const blockEdge &e) const
Compare the given start/end points with this block edge.
const point & firstPoint() const
The location of the first point.
Class used for the read-construction of.
bool valid() const noexcept
True if first/last indices are unique and non-negative.
Container for searchableSurfaces. The collection is specified as a dictionary. For example,...
virtual autoPtr< blockEdge > clone() const
Clone function.
void write(Ostream &os, const dictionary &dict) const
Write edge with variable back-substitution.
const dimensionedScalar e
Elementary charge.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...