49 Foam::coordSet::coordFormatNames_;
62 axis_(coordFormatNames_[axis]),
77 axis_(coordFormatNames_[axis]),
95 const point&
p = operator[](index);
109 else if (axis_ == DISTANCE)
112 return curveDist_[index];
117 <<
"Illegal axis specification " << axis_
118 <<
" for sampling line " << name_
128 const point&
p = operator[](index);
136 os <<
"name:" << name_ <<
" axis:" << axis_
138 <<
endl <<
"\t(coord)" 143 os <<
'\t' << operator[](sampleI) <<
endl;
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Ostream & endl(Ostream &os)
Add newline and flush stream.
bool hasVectorAxis() const
Is axis specification a vector.
Initialise the NamedEnum HashTable from the static list of names.
vectorField pointField
pointField is a vectorField.
vector vectorCoord(const label index) const
Get point according to axis="xyz" specification.
A class for handling words, derived from string.
Ostream & write(Ostream &os) const
coordFormat
Enumeration defining the output format for coordinates.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
coordSet(const word &name, const word &axis)
Construct from components.
PtrList< volScalarField > & Y
scalar scalarCoord(const label index) const
Get coordinate of point according to axis specification.