preCICE v3.1.2
|
provides Mesh, Data and primitives. More...
Classes | |
class | BoundingBox |
An axis-aligned bounding box around a (partition of a) mesh. More... | |
struct | Chain |
class | Data |
Describes a set of data values belonging to the vertices of a mesh. More... | |
class | DataConfiguration |
Performs and provides configuration for Data objects from XML files. More... | |
class | Edge |
Linear edge of a mesh, defined by two Vertex objects. More... | |
class | IndexRangeIterator |
class | Mesh |
Container and creator for meshes. More... | |
class | MeshConfiguration |
class | Tetrahedron |
Tetrahedron of a mesh, defined by 4 vertices. More... | |
class | Triangle |
Triangle of a mesh, defined by three vertices. More... | |
class | Vertex |
Vertex of a mesh. More... | |
Typedefs | |
using | PtrData = std::shared_ptr<Data> |
using | PtrGroup = std::shared_ptr<Group> |
using | PtrMesh = std::shared_ptr<Mesh> |
using | PtrDataConfiguration = std::shared_ptr<DataConfiguration> |
using | PtrMeshConfiguration = std::shared_ptr<MeshConfiguration> |
Functions | |
std::ostream & | operator<< (std::ostream &os, const BoundingBox &bb) |
std::ostream & | operator<< (std::ostream &stream, const Edge &edge) |
template<typename UnaryPredicate > | |
void | filterMesh (Mesh &destination, const Mesh &source, UnaryPredicate p) |
std::ostream & | operator<< (std::ostream &os, const Mesh &m) |
std::ostream & | operator<< (std::ostream &os, const Tetrahedron &t) |
BOOST_CONCEPT_ASSERT ((boost::RandomAccessIteratorConcept< Triangle::iterator >)) | |
BOOST_CONCEPT_ASSERT ((boost::RandomAccessIteratorConcept< Triangle::const_iterator >)) | |
BOOST_CONCEPT_ASSERT ((boost::RandomAccessRangeConcept< Triangle >)) | |
std::ostream & | operator<< (std::ostream &os, const Triangle &t) |
Eigen::VectorXd | integrateSurface (const PtrMesh &mesh, const Eigen::VectorXd &input) |
Given the data and the mesh, this function returns the surface integral. Assumes no overlap exists for the mesh. | |
Eigen::VectorXd | integrateVolume (const PtrMesh &mesh, const Eigen::VectorXd &input) |
Given the data and the mesh, this function returns the volume integral. Assumes no overlap exists for the mesh. | |
Vertex * | sharedVertex (Edge &a, Edge &b) |
double | edgeLength (const Edge &e) |
template<std::size_t n> | |
Chain< n > | asChain (std::array< mesh::Edge *, n > edges) |
template<std::size_t n> | |
std::array< Vertex *, n > | vertexPtrsFor (Mesh &mesh, const std::array< int, n > &vertexIDs) |
Given a mesh and an array of vertexIDS, this function returns an array of pointers to vertices. | |
template<std::size_t n> | |
std::array< Eigen::VectorXd, n > | coordsFor (const Mesh &mesh, const std::array< int, n > &vertexIDs) |
Given a mesh and an array of vertexIDS, this function returns an array of coordinates of the vertices. | |
template<std::size_t n> | |
std::array< Eigen::VectorXd, n > | coordsFor (const std::array< Vertex *, n > &vertexPtrs) |
Given an array of vertex pointers, this function returns an array of coordinates of the vertices. | |
template<typename Container > | |
std::optional< std::size_t > | locateInvalidVertexID (const Mesh &mesh, const Container &container) |
std::ostream & | operator<< (std::ostream &os, const Vertex &v) |
Make Vertex printable. | |
using precice::mesh::PtrData = std::shared_ptr<Data> |
Definition at line 14 of file SharedPointer.hpp.
Definition at line 17 of file SharedPointer.hpp.
using precice::mesh::PtrGroup = std::shared_ptr<Group> |
Definition at line 15 of file SharedPointer.hpp.
using precice::mesh::PtrMesh = std::shared_ptr<Mesh> |
Definition at line 16 of file SharedPointer.hpp.
Definition at line 18 of file SharedPointer.hpp.
Chain< n > precice::mesh::asChain | ( | std::array< mesh::Edge *, n > | edges | ) |
Generates a chain for an array of edges.
The resulting verices and edges are undefined if the chain is not connected. If the edges form a chain, then the first edge of the resulting chain is the first edge of the argument. Also, the first and last vertex of the chain will be the vertices of the first edge of the argument.
[in] | edges | an array of pointers to edges to chain together |
Definition at line 73 of file Utils.hpp.
precice::mesh::BOOST_CONCEPT_ASSERT | ( | (boost::RandomAccessIteratorConcept< Triangle::const_iterator >) | ) |
precice::mesh::BOOST_CONCEPT_ASSERT | ( | (boost::RandomAccessIteratorConcept< Triangle::iterator >) | ) |
precice::mesh::BOOST_CONCEPT_ASSERT | ( | (boost::RandomAccessRangeConcept< Triangle >) | ) |
std::array< Eigen::VectorXd, n > precice::mesh::coordsFor | ( | const Mesh & | mesh, |
const std::array< int, n > & | vertexIDs ) |
std::array< Eigen::VectorXd, n > precice::mesh::coordsFor | ( | const std::array< Vertex *, n > & | vertexPtrs | ) |
|
inline |
void precice::mesh::filterMesh | ( | Mesh & | destination, |
const Mesh & | source, | ||
UnaryPredicate | p ) |
filters the source Mesh and adds it to the destination Mesh
[in,out] | destination | the destination mesh to append the filtered Mesh to |
[in] | source | the source Mesh to filter |
[in] | p | the filter as a UnaryPredicate on mesh::Vertex |
Definition at line 17 of file Filter.hpp.
Eigen::VectorXd precice::mesh::integrateSurface | ( | const PtrMesh & | mesh, |
const Eigen::VectorXd & | input ) |
Eigen::VectorXd precice::mesh::integrateVolume | ( | const PtrMesh & | mesh, |
const Eigen::VectorXd & | input ) |
std::optional< std::size_t > precice::mesh::locateInvalidVertexID | ( | const Mesh & | mesh, |
const Container & | container ) |
std::ostream & precice::mesh::operator<< | ( | std::ostream & | os, |
const BoundingBox & | bb ) |
std::ostream & precice::mesh::operator<< | ( | std::ostream & | os, |
const Mesh & | m ) |
std::ostream & precice::mesh::operator<< | ( | std::ostream & | os, |
const Tetrahedron & | t ) |
std::ostream & precice::mesh::operator<< | ( | std::ostream & | os, |
const Triangle & | t ) |
std::ostream & precice::mesh::operator<< | ( | std::ostream & | os, |
Vertex const & | v ) |
Make Vertex printable.
Definition at line 42 of file Vertex.cpp.
std::ostream & precice::mesh::operator<< | ( | std::ostream & | stream, |
const Edge & | edge ) |
std::array< Vertex *, n > precice::mesh::vertexPtrsFor | ( | Mesh & | mesh, |
const std::array< int, n > & | vertexIDs ) |