45 #ifndef Foam_blockEdge_H 46 #define Foam_blockEdge_H 168 mutable label index_;
252 virtual scalar
length() const = 0;
270 #include "blockEdgeI.H"
A list of keyword definitions, which are a keyword followed by a number of values (eg...
blockEdge(const pointField &points, const label from, const label to)
Construct from components.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
const pointField & points_
The referenced point field.
bool good() const noexcept
True if first/last indices are unique and non-negative.
label end() const noexcept
Index of end (last) point.
virtual ~blockEdge()=default
Destructor.
Class used for the read-construction of.
point linearPosition(const scalar lambda) const
The point position in the straight line.
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.
const dimensionedScalar e
Elementary charge.
int compare(const blockEdge &e) const
Compare the given start/end points with this block edge.
virtual point position(const scalar lambda) const =0
The point position corresponding to the curve parameter.
An edge is a list of two vertex labels. This can correspond to a directed graph edge or an edge on a ...
dimensionedScalar lambda("lambda", dimTime/sqr(dimLength), laminarTransport)
static pointField appendEndPoints(const pointField &p, const label from, const label to, const pointField &intermediate)
Return a complete point field by appending the start/end points to the given list.
autoPtr< blockEdge > operator()(Istream &is) const
iNew(const dictionary &dict, const searchableSurfaces &geometry, const pointField &points)
bool valid() const noexcept
Same as good()
Container for searchableSurfaces. The collection is specified as a dictionary. For example...
void write(Ostream &os, const dictionary &dict) const
Write edge with variable back-substitution.
declareRunTimeSelectionTable(autoPtr, blockEdge, Istream,(const dictionary &dict, const label index, const searchableSurfaces &geometry, const pointField &points, Istream &is),(dict, index, geometry, points, is))
const point & lastPoint() const
The location of the last point.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
virtual autoPtr< blockEdge > clone() const
Clone function.
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
OBJstream os(runTime.globalPath()/outputName)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
virtual scalar length() const =0
The length of the curve.
Define a curved edge that is parameterized for 0<lambda<1 between the start/end points.
TypeName("blockEdge")
Runtime type information.
const label start_
Index of the first point.
label start() const noexcept
Index of start (first) point.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
const point & firstPoint() const
The location of the first point.
A class for managing temporary objects.
const label end_
Index of the last point.