|
preCICE v3.3.0
|
#include <Vertex.hpp>
Public Types | |
| using | RawCoords = std::array<double, 3> |
Public Member Functions | |
| template<typename VECTOR_T> | |
| Vertex (const VECTOR_T &coordinates, VertexID id) | |
| Constructor for vertex. | |
| int | getDimensions () const |
| Returns spatial dimensionality of vertex. | |
| template<typename VECTOR_T> | |
| void | setCoords (const VECTOR_T &coordinates) |
| Sets the coordinates of the vertex. | |
| VertexID | getID () const |
| Returns the unique (among vertices of one mesh on one processor) ID of the vertex. | |
| Eigen::VectorXd | getCoords () const |
| Returns the coordinates of the vertex. | |
| const RawCoords & | rawCoords () const |
| Direct access to the coordinates. | |
| int | getGlobalIndex () const |
| Globally unique index. | |
| void | setGlobalIndex (int globalIndex) |
| bool | isOwner () const |
| void | setOwner (bool owner) |
| bool | isTagged () const |
| void | tag () |
| double | coord (int index) const |
| Returns a coordinate of a vertex. | |
| bool | operator== (const Vertex &rhs) const |
| bool | operator!= (const Vertex &rhs) const |
| bool | operator< (const Vertex &rhs) const |
| Implements partial ordering by ID. | |
Private Attributes | |
| std::array< double, 3 > | _coords |
| Coordinates of the vertex. | |
| short | _dim |
| Dimension of the coordinates. 3D or 2D. | |
| VertexID | _id |
| Unique (among vertices in one mesh) ID of the vertex. | |
| int | _globalIndex = -1 |
| global (unique) index for parallel simulations | |
| bool | _owner = true |
| true if this processors is the owner of the vertex (for parallel simulations) | |
| bool | _tagged = false |
| true if this vertex is tagged for partition | |
Vertex of a mesh.
Definition at line 16 of file Vertex.hpp.
| using precice::mesh::Vertex::RawCoords = std::array<double, 3> |
Definition at line 19 of file Vertex.hpp.
| precice::mesh::Vertex::Vertex | ( | const VECTOR_T & | coordinates, |
| VertexID | id ) |
Constructor for vertex.
Definition at line 89 of file Vertex.hpp.
|
inline |
Returns a coordinate of a vertex.
Definition at line 126 of file Vertex.hpp.
|
inline |
Returns the coordinates of the vertex.
Definition at line 114 of file Vertex.hpp.
| int precice::mesh::Vertex::getDimensions | ( | ) | const |
Returns spatial dimensionality of vertex.
Definition at line 7 of file Vertex.cpp.
| int precice::mesh::Vertex::getGlobalIndex | ( | ) | const |
Globally unique index.
Definition at line 12 of file Vertex.cpp.
|
inline |
Returns the unique (among vertices of one mesh on one processor) ID of the vertex.
Definition at line 109 of file Vertex.hpp.
| bool precice::mesh::Vertex::isOwner | ( | ) | const |
Definition at line 22 of file Vertex.cpp.
| bool precice::mesh::Vertex::isTagged | ( | ) | const |
Definition at line 32 of file Vertex.cpp.
|
inline |
|
inline |
Implements partial ordering by ID.
Definition at line 142 of file Vertex.hpp.
|
inline |
|
inline |
Direct access to the coordinates.
Definition at line 121 of file Vertex.hpp.
| void precice::mesh::Vertex::setCoords | ( | const VECTOR_T & | coordinates | ) |
Sets the coordinates of the vertex.
Definition at line 101 of file Vertex.hpp.
| void precice::mesh::Vertex::setGlobalIndex | ( | int | globalIndex | ) |
Definition at line 17 of file Vertex.cpp.
| void precice::mesh::Vertex::setOwner | ( | bool | owner | ) |
Definition at line 27 of file Vertex.cpp.
| void precice::mesh::Vertex::tag | ( | ) |
Definition at line 37 of file Vertex.cpp.
|
private |
Coordinates of the vertex.
Definition at line 68 of file Vertex.hpp.
|
private |
Dimension of the coordinates. 3D or 2D.
Definition at line 71 of file Vertex.hpp.
|
private |
global (unique) index for parallel simulations
Definition at line 77 of file Vertex.hpp.
|
private |
Unique (among vertices in one mesh) ID of the vertex.
Definition at line 74 of file Vertex.hpp.
|
private |
true if this processors is the owner of the vertex (for parallel simulations)
Definition at line 80 of file Vertex.hpp.
|
private |
true if this vertex is tagged for partition
Definition at line 83 of file Vertex.hpp.