Holds list of sampling positions. More...
Public Types | |
| enum | coordFormat { XYZ, X, Y, Z, DISTANCE } |
| Enumeration defining the output format for coordinates. More... | |
Public Types inherited from Field< vector > | |
| typedef pTraits< vector >::cmptType | cmptType |
| Component type. More... | |
| typedef SubField< vector > | subField |
| Declare type of subField. More... | |
Public Member Functions | |
| coordSet (const word &name, const coordFormat axisType) | |
| Construct from components. More... | |
| coordSet (const word &name, const word &axis) | |
| Construct from components. More... | |
| coordSet (const word &name, const word &axis, const List< point > &points, const scalarList &curveDist) | |
| Copy construct from components. More... | |
| coordSet (const word &name, const word &axis, List< point > &&points, scalarList &&curveDist) | |
| Move construct from components. More... | |
| const word & | name () const |
| word | axis () const |
| void | setPoints (const List< point > &newPoints) |
| Set the points. More... | |
| void | setPoints (List< point > &&newPoints) |
| Set the points. More... | |
| const scalarList & | curveDist () const |
| Return the cumulative distance. More... | |
| void | setCurveDist (const scalarList &curveDist) |
| Set the cumulative distance. More... | |
| void | setCurveDist (scalarList &&curveDist) |
| Set the cumulative distance. More... | |
| bool | hasVectorAxis () const |
| Is axis specification a vector. More... | |
| scalar | scalarCoord (const label index) const |
| Get coordinate of point according to axis specification. More... | |
| vector | vectorCoord (const label index) const |
| Get point according to axis="xyz" specification. More... | |
| Ostream & | write (Ostream &os) const |
| Write to stream. More... | |
Public Member Functions inherited from Field< vector > | |
| constexpr | Field () noexcept |
| Construct null. More... | |
| Field (const label len) | |
| Construct given size. More... | |
| Field (const label len, const vector &val) | |
| Construct given size and initial value. More... | |
| Field (const label len, const zero) | |
| Construct given size and initial values of zero. More... | |
| Field (const Field< vector > &fld) | |
| Copy construct. More... | |
| Field (const UList< vector > &list) | |
| Copy construct from UList<Type> More... | |
| Field (const IndirectListBase< vector, Addr > &list) | |
| Copy construct from IndirectList. More... | |
| Field (Field< vector > &&fld) | |
| Move construct from Field. More... | |
| Field (List< vector > &&list) | |
| Move construct from List. More... | |
| Field (DynamicList< vector, SizeMin > &&list) | |
| Move construct from DynamicList. More... | |
| Field (const UList< vector > &mapF, const labelUList &mapAddressing) | |
| Construct by 1 to 1 mapping from the given field. More... | |
| Field (const tmp< Field< vector >> &tmapF, const labelUList &mapAddressing) | |
| Construct by 1 to 1 mapping from the given tmp field. More... | |
| Field (const UList< vector > &mapF, const labelListList &mapAddressing, const scalarListList &weights) | |
| Construct by interpolative mapping from the given field. More... | |
| Field (const tmp< Field< vector >> &tmapF, const labelListList &mapAddressing, const scalarListList &weights) | |
| Construct by interpolative mapping from the given tmp field. More... | |
| Field (const UList< vector > &mapF, const FieldMapper &map, const bool applyFlip=true) | |
| Construct by mapping from the given field. More... | |
| Field (const UList< vector > &mapF, const FieldMapper &map, const vector &defaultValue, const bool applyFlip=true) | |
| Construct by mapping from the given field. More... | |
| Field (const UList< vector > &mapF, const FieldMapper &map, const UList< vector > &defaultValues, const bool applyFlip=true) | |
| Construct by mapping from the given field. More... | |
| Field (const tmp< Field< vector >> &tmapF, const FieldMapper &map, const bool applyFlip=true) | |
| Construct by mapping from the given tmp field. More... | |
| Field (const tmp< Field< vector >> &tmapF, const FieldMapper &map, const vector &defaultValue, const bool applyFlip=true) | |
| Field (const tmp< Field< vector >> &tmapF, const FieldMapper &map, const UList< vector > &defaultValues, const bool applyFlip=true) | |
| Field (Field< vector > &fld, bool reuse) | |
| Copy construct or re-use as specified. More... | |
| Field (const tmp< Field< vector >> &tfld) | |
| Copy or move construct from tmp. More... | |
| Field (Istream &is) | |
| Construct from Istream. More... | |
| Field (const word &keyword, const dictionary &dict, const label len) | |
| Construct from a dictionary entry. More... | |
| tmp< Field< vector > > | clone () const |
| Clone. More... | |
| void | map (const UList< vector > &mapF, const labelUList &mapAddressing) |
| 1 to 1 map from the given field More... | |
| void | map (const tmp< Field< vector >> &tmapF, const labelUList &mapAddressing) |
| 1 to 1 map from the given tmp field More... | |
| void | map (const UList< vector > &mapF, const labelListList &mapAddressing, const scalarListList &weights) |
| Interpolative map from the given field. More... | |
| void | map (const tmp< Field< vector >> &tmapF, const labelListList &mapAddressing, const scalarListList &weights) |
| Interpolative map from the given tmp field. More... | |
| void | map (const UList< vector > &mapF, const FieldMapper &map, const bool applyFlip=true) |
| Map from the given field. More... | |
| void | map (const tmp< Field< vector >> &tmapF, const FieldMapper &map, const bool applyFlip=true) |
| Map from the given tmp field. More... | |
| void | autoMap (const FieldMapper &map, const bool applyFlip=true) |
| Map from self. More... | |
| void | rmap (const UList< vector > &mapF, const labelUList &mapAddressing) |
| 1 to 1 reverse-map from the given field More... | |
| void | rmap (const tmp< Field< vector >> &tmapF, const labelUList &mapAddressing) |
| 1 to 1 reverse-map from the given tmp field More... | |
| void | rmap (const UList< vector > &mapF, const labelUList &mapAddressing, const UList< scalar > &weights) |
| Interpolative reverse map from the given field. More... | |
| void | rmap (const tmp< Field< vector >> &tmapF, const labelUList &mapAddressing, const UList< scalar > &weights) |
| Interpolative reverse map from the given tmp field. More... | |
| void | negate () |
| Negate this field (negative). More... | |
| tmp< Field< cmptType > > | component (const direction) const |
| Return a component field of the field. More... | |
| void | replace (const direction, const UList< cmptType > &) |
| Replace a component field of the field. More... | |
| void | replace (const direction, const tmp< Field< cmptType >> &) |
| Replace a component field of the field. More... | |
| void | replace (const direction, const cmptType &) |
| Replace a component field of the field. More... | |
| VSForm | block (const label start) const |
| tmp< Field< vector > > | T () const |
| Return the field transpose (only defined for second rank tensors) More... | |
| void | writeEntry (const word &keyword, Ostream &os) const |
| Write the field as a dictionary entry. More... | |
| void | operator= (const Field< vector > &) |
| Copy assignment. More... | |
| void | operator= (const tmp< Field< vector >> &) |
| void | operator= (const UList< vector > &) |
| void | operator= (const SubField< vector > &) |
| void | operator= (Field< vector > &&rhs) |
| Move assignment. More... | |
| void | operator= (List< vector > &&rhs) |
| void | operator= (DynamicList< vector, SizeMin > &&rhs) |
| void | operator= (const vector &val) |
| Value assignment. More... | |
| void | operator= (const zero) |
| void | operator= (const VectorSpace< Form, Cmpt, nCmpt > &) |
| void | operator= (const tmp< Field > &rhs) |
| void | operator+= (const UList< vector > &) |
| void | operator+= (const tmp< Field< vector >> &) |
| void | operator+= (const vector &) |
| void | operator-= (const UList< vector > &) |
| void | operator-= (const tmp< Field< vector >> &) |
| void | operator-= (const vector &) |
| void | operator*= (const UList< scalar > &) |
| void | operator*= (const tmp< Field< scalar >> &) |
| void | operator*= (const scalar &) |
| void | operator/= (const UList< scalar > &) |
| void | operator/= (const tmp< Field< scalar >> &) |
| void | operator/= (const scalar &) |
Static Public Attributes | |
| static const Enum< coordFormat > | coordFormatNames |
| String representation of coordFormat enum. More... | |
Protected Attributes | |
| const word | name_ |
| Name. More... | |
| const coordFormat | axis_ |
| Axis write type. More... | |
| scalarList | curveDist_ |
| Cumulative distance "distance" write specifier. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from Field< vector > | |
| static const Field< vector > & | null () |
| Return nullObject reference field. More... | |
| static autoPtr< Field< vector > > | New (Istream &is) |
| Return a pointer to a new Field created on freestore. More... | |
| static tmp< Field< vector > > | NewCalculatedType (const Field< Type2 > &f) |
|
strong |
Enumeration defining the output format for coordinates.
| Enumerator | |
|---|---|
| XYZ | |
| X | |
| Y | |
| Z | |
| DISTANCE | |
Definition at line 62 of file coordSet.H.
| coordSet | ( | const word & | name, |
| const coordFormat | axisType | ||
| ) |
| coordSet | ( | const word & | name, |
| const word & | axis, | ||
| const List< point > & | points, | ||
| const scalarList & | curveDist | ||
| ) |
Copy construct from components.
Definition at line 91 of file coordSet.C.
Move construct from components.
Definition at line 108 of file coordSet.C.
|
inline |
Definition at line 125 of file coordSet.H.
References coordSet::name_.
Referenced by sampledSet::iNew::operator()().
|
inline |
Definition at line 130 of file coordSet.H.
References coordSet::axis_, and coordSet::coordFormatNames.
Set the points.
Definition at line 136 of file coordSet.H.
Set the points.
Definition at line 142 of file coordSet.H.
|
inline |
Return the cumulative distance.
Definition at line 148 of file coordSet.H.
References coordSet::curveDist_.
Referenced by coordSet::setCurveDist().
|
inline |
Set the cumulative distance.
Definition at line 154 of file coordSet.H.
References coordSet::curveDist(), and coordSet::curveDist_.
|
inline |
Set the cumulative distance.
Definition at line 161 of file coordSet.H.
References coordSet::curveDist(), and coordSet::curveDist_.
| bool hasVectorAxis | ( | ) | const |
Is axis specification a vector.
Definition at line 126 of file coordSet.C.
| Foam::scalar scalarCoord | ( | const label | index | ) | const |
Get coordinate of point according to axis specification.
If axis="distance" is the curveDist[index]
Definition at line 132 of file coordSet.C.
References Foam::abort(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, p, and Y.
| Foam::point vectorCoord | ( | const label | index | ) | const |
Get point according to axis="xyz" specification.
Definition at line 178 of file coordSet.C.
References p.
| Foam::Ostream & write | ( | Ostream & | os | ) | const |
Write to stream.
Definition at line 186 of file coordSet.C.
References Foam::endl(), and Foam::nl.
Referenced by sampledSet::write().
|
static |
String representation of coordFormat enum.
Definition at line 72 of file coordSet.H.
Referenced by coordSet::axis(), and meshRefinement::findRegions().
|
protected |
|
protected |
|
protected |
Cumulative distance "distance" write specifier.
Definition at line 89 of file coordSet.H.
Referenced by sampledSet::checkDimensions(), coordSet::curveDist(), and coordSet::setCurveDist().