Go to the documentation of this file.
39 { coordFormat::XYZ,
"xyz" },
40 { coordFormat::X,
"x" },
42 { coordFormat::Z,
"z" },
43 { coordFormat::DISTANCE,
"distance" },
49 void Foam::coordSet::checkDimensions()
const
54 <<
"Size of points and curve distance must be the same" <<
nl
55 <<
" points size : " << size()
67 const coordFormat axisType
85 axis_(coordFormatNames[axis]),
100 axis_(coordFormatNames[axis]),
101 curveDist_(curveDist)
117 axis_(coordFormatNames[axis]),
118 curveDist_(std::move(curveDist))
128 return axis_ == coordFormat::XYZ;
134 const point&
p = operator[](index);
150 case coordFormat::DISTANCE:
155 if (curveDist_.empty())
158 <<
"Axis type '" << coordFormatNames[axis_]
159 <<
"' requested but curve distance has not been set"
163 return curveDist_[index];
168 <<
"Illegal axis specification '" << coordFormatNames[axis_]
169 <<
"' for sampling line " << name_
180 const point&
p = operator[](index);
188 os <<
"name:" << name_ <<
" axis:" << coordFormatNames[axis_]
193 for (
const point& pt : *
this)
vectorField pointField
pointField is a vectorField.
Enum is a wrapper around a list of names/values that represent particular enumeration (or int) values...
A class for handling words, derived from Foam::string.
scalar scalarCoord(const label index) const
Ostream & endl(Ostream &os)
coordSet(const word &name, const coordFormat axisType)
Generic templated field type.
OBJstream os(runTime.globalPath()/outputName)
errorManip< error > abort(error &err)
PtrList< volScalarField > & Y
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
static const Enum< coordFormat > coordFormatNames
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
word name(const expressions::valueTypeCode typeCode)
bool hasVectorAxis() const
An Ostream is an abstract base class for all output systems (streams, files, token lists,...