38#ifndef Foam_coordSet_H
39#define Foam_coordSet_H
182 static_cast<pointField&
>(*this) = std::move(newPoints);
writer write("magLe", fld)
Enum is a wrapper around a list of names/values that represent particular enumeration (or int) values...
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
label size() const noexcept
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Holds list of sampling positions.
label nPoints() const noexcept
Return the number of points.
scalarList distance_
Cumulative distance for "distance" write specifier.
const scalarList & curveDist() const noexcept
Return the cumulative distance.
void setDistance(scalarList &&dist, const bool check=true)
Move assign the cumulative distance.
const vector & vectorCoord(const label index) const
Get point according to axis="xyz" specification.
const word & axis() const
The sort axis name.
coordFormat axis_
Axis type.
autoPtr< coordSet > gatherSort(labelList &sortOrder) const
Gather and sort.
bool hasVectorAxis() const noexcept
True if axis specification is a vector.
Ostream & write(Ostream &os) const
Write to stream.
const scalarList & distance() const noexcept
Return the cumulative distance.
coordSet(const word &name, const coordFormat axisType)
Default construct with name and axis type.
void setPoints(const List< point > &newPoints)
Copy assign new points.
const word & name() const noexcept
The coord-set name.
void checkDimensions() const
Check for consistent dimensions of points and curve distance.
const pointField & points() const noexcept
Return the points.
void setPoints(List< point > &&newPoints)
Move assign new points.
void setCurveDist(const scalarList &dist)
Copy assign the cumulative distance.
static const Enum< coordFormat > coordFormatNames
String representation of coordFormat enum.
void setDistance(const scalarList &dist, const bool check=true)
Copy assign the cumulative distance.
scalar scalarCoord(const label index) const
Get coordinate of point according to axis specification.
void rename(const word &newName)
Rename the coordinate set.
coordFormat
Enumeration defining the output format for coordinates.
@ X
Use 'x' component of points for (scalar) axis.
@ Z
Use 'z' component of points for (scalar) axis.
@ RADIUS
Use mag of points for (scalar) axis.
@ DISTANCE
Use additional distance field for (scalar) axis.
A class for handling words, derived from Foam::string.
PtrList< volScalarField > & Y
OBJstream os(runTime.globalPath()/outputName)
List< label > labelList
A List of labels.
static void check(const int retVal, const char *what)
vectorField pointField
pointField is a vectorField.
List< scalar > scalarList
List of scalar.