OGS
Mesh.h File Reference

Detailed Description

Definition of the Mesh class.

Author
Karsten Rink
Date
2012-05-02

Definition in file Mesh.h.

#include <cstdlib>
#include <memory>
#include <range/v3/view/transform.hpp>
#include <string>
#include <vector>
#include "BaseLib/Error.h"
#include "MeshEnums.h"
#include "Properties.h"
Include dependency graph for Mesh.h:

Go to the source code of this file.

Classes

class  MeshLib::Mesh
 

Namespaces

namespace  ApplicationUtils
 
namespace  MeshLib
 
namespace  MeshLib::views
 MeshLib specific, lazy, non-owning, non-mutating, composable range views.
 

Functions

std::vector< std::vector< Node * > > MeshLib::calculateNodesConnectedByElements (Mesh const &mesh)
 
bool MeshLib::operator== (Mesh const &a, Mesh const &b)
 Meshes are equal if their id's are equal.
 
bool MeshLib::operator!= (Mesh const &a, Mesh const &b)
 
void MeshLib::scaleMeshPropertyVector (MeshLib::Mesh &mesh, std::string const &property_name, double factor)
 
template<typename T >
void MeshLib::addPropertyToMesh (Mesh &mesh, std::string_view name, MeshItemType item_type, std::size_t number_of_components, std::vector< T > const &values)
 
template<typename T >
PropertyVector< T > * MeshLib::getOrCreateMeshProperty (Mesh &mesh, std::string const &property_name, MeshItemType const item_type, int const number_of_components)
 
PropertyVector< int > const * MeshLib::materialIDs (Mesh const &mesh)
 
std::unique_ptr< Mesh > MeshLib::createMeshFromElementSelection (std::string mesh_name, std::vector< Element * > const &elements)
 
bool MeshLib::isBaseNode (Node const &node, std::vector< Element const * > const &elements_connected_to_node)
 
std::pair< double, double > MeshLib::minMaxEdgeLength (std::vector< Element * > const &elements)
 Returns the minimum and maximum edge length for given elements.
 

Variables

constexpr ranges::views::view_closure MeshLib::views::ids
 For an element of a range view return its id.
 
constexpr ranges::views::view_closure MeshLib::views::names
 For an element of a range view return its name.