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