Loading [MathJax]/extensions/tex2jax.js
OGS
MeshLib::views Namespace Reference

Detailed Description

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

Functions

auto meshLocations (Mesh const &mesh, MeshItemType const item_type)
 
auto meshLocations (MeshSubset const &mesh_subset, MeshItemType const item_type)
 

Variables

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

Function Documentation

◆ meshLocations() [1/2]

◆ meshLocations() [2/2]

auto MeshLib::views::meshLocations ( MeshSubset const & mesh_subset,
MeshItemType const item_type )
inline

Definition at line 102 of file MeshSubset.h.

104{
105 return mesh_subset.getNodes() | ids |
106 ranges::views::transform(
107 [mesh_id = mesh_subset.getMeshID(),
108 item_type](std::size_t const node_id)
109 { return Location{mesh_id, item_type, node_id}; });
110}
constexpr ranges::views::view_closure ids
For an element of a range view return its id.
Definition Mesh.h:227

References MeshLib::MeshSubset::getMeshID(), MeshLib::MeshSubset::getNodes(), ids, and meshLocations().

Variable Documentation

◆ coords

ranges::views::view_closure MeshLib::views::coords
inlineconstexpr
Initial value:
=
ranges::views::transform([](MathLib::Point3d const* n)
{ return std::span(n->data(), n->data() + 3); })
const double * data() const
Definition Point3d.h:60

Definition at line 234 of file Mesh.h.

Referenced by OGSMesh::getPointCoordinates().

◆ ids

ranges::views::view_closure MeshLib::views::ids
inlineconstexpr
Initial value:
=
ranges::views::transform([](auto const& a) { return a->getID(); })

For an element of a range view return its id.

Definition at line 227 of file Mesh.h.

Referenced by MeshLib::Mesh::Mesh(), ProcessLib::LIE::SmallDeformation::SmallDeformationProcess< DisplacementDim >::SmallDeformationProcess(), MaterialPropertyLib::checkMaterialSpatialDistributionMap(), MaterialPropertyLib::checkMPLPhasesForSinglePhaseFlow(), ProcessLib::ComponentTransport::checkMPLProperties(), ProcessLib::RichardsComponentTransport::anonymous_namespace{CreateRichardsComponentTransportProcess.cpp}::checkMPLProperties(), ProcessLib::StokesFlow::anonymous_namespace{CreateStokesFlowProcess.cpp}::checkMPLProperties(), MeshLib::computeGhostBaseNodeGlobalNodeIDsOfSubDomainPartition(), MeshLib::computeNumberOfRegularNodes(), ApplicationUtils::computePartitionIDPerElement(), MeshLib::computeRegularBaseNodeGlobalNodeIDsOfSubDomainPartition(), ProcessLib::createDeactivatedSubdomainMesh(), ProcessLib::LIE::HydroMechanics::createHydroMechanicsProcess(), MeshLib::createMeshFromElementSelection(), NumLib::MeshComponentMap::createSerialMeshComponentMap(), ProcessLib::extractElementsAlongOuterNodes(), ProcessLib::extractInnerAndOuterNodes(), MeshLib::filter(), MeshLib::findElementsConnectedToNodes(), MeshToolsLib::BoundaryExtraction::getBoundaryElementsAsMesh(), OGSMesh::getCells(), ProcessLib::getEssentialBCValuesLocal(), MeshToolsLib::MeshSurfaceExtraction::getMeshSurface(), anonymous_namespace{IdentifySubdomainMesh.cpp}::identifySubdomainMeshElements(), ProcessLib::HeatTransportBHE::HeatTransportBHEProcess::initializeConcreteProcess(), meshLocations(), ProcessLib::ConstraintDirichletBoundaryCondition::preTimestep(), and MeshLib::IO::transformToXDMFTopology().

◆ names

ranges::views::view_closure MeshLib::views::names
inlineconstexpr
Initial value:
=
ranges::views::transform([](auto const& a) { return a->getName(); })

For an element of a range view return its name.

Definition at line 231 of file Mesh.h.

Referenced by anonymous_namespace{ProjectData.cpp}::readMeshes().