GridFormat 0.2.1
I/O-Library for grid-like data structures
Loading...
Searching...
No Matches
dune.hpp File Reference

Traits specializations for dune grid views More...

#include <ranges>
#include <cassert>
#include <algorithm>
#include <tuple>
#include <cstdint>
#include <dune/common/fmatrix.hh>
#include <dune/common/fvector.hh>
#include <dune/geometry/type.hh>
#include <dune/grid/common/gridview.hh>
#include <dune/grid/common/gridenums.hh>
#include <dune/grid/common/gridfactory.hh>
#include <dune/grid/yaspgrid.hh>
#include <gridformat/common/ranges.hpp>
#include <gridformat/common/exceptions.hpp>
#include <gridformat/common/type_traits.hpp>
#include <gridformat/grid/cell_type.hpp>
#include <gridformat/grid/traits.hpp>
#include <iterator>
#include <utility>
#include <type_traits>
#include <unordered_map>
#include <map>
#include <dune/geometry/referenceelements.hh>
#include <dune/grid/common/mcmgmapper.hh>
#include <dune/localfunctions/lagrange/equidistantpoints.hh>
#include <gridformat/common/reserved_vector.hpp>
#include <gridformat/common/precision.hpp>
#include <gridformat/common/concepts.hpp>
#include <gridformat/common/field.hpp>
#include <gridformat/grid.hpp>

Go to the source code of this file.

Classes

struct  GridFormat::Traits::StaticSize< Dune::FieldMatrix< T, R, C > >
 
struct  GridFormat::Traits::Points< Dune::GridView< Traits > >
 
struct  GridFormat::Traits::Cells< Dune::GridView< Traits > >
 
struct  GridFormat::Traits::NumberOfPoints< Dune::GridView< Traits > >
 
struct  GridFormat::Traits::NumberOfCells< Dune::GridView< Traits > >
 
struct  GridFormat::Traits::NumberOfCellPoints< Dune::GridView< Traits >, DuneDetail::Element< Dune::GridView< Traits > > >
 
struct  GridFormat::Traits::CellPoints< Dune::GridView< Traits >, DuneDetail::Element< Dune::GridView< Traits > > >
 
struct  GridFormat::Traits::CellType< Dune::GridView< Traits >, DuneDetail::Element< Dune::GridView< Traits > > >
 
struct  GridFormat::Traits::PointCoordinates< Dune::GridView< Traits >, DuneDetail::Vertex< Dune::GridView< Traits > > >
 
struct  GridFormat::Traits::PointId< Dune::GridView< Traits >, DuneDetail::Vertex< Dune::GridView< Traits > > >
 
struct  GridFormat::Traits::Extents< Dune::GridView< Traits > >
 
struct  GridFormat::Traits::Location< Dune::GridView< Traits >, Entity >
 
struct  GridFormat::Traits::Origin< Dune::GridView< Traits > >
 
struct  GridFormat::Traits::Spacing< Dune::GridView< Traits > >
 
struct  GridFormat::Traits::Ordinates< Dune::GridView< Traits > >
 
class  GridFormat::Dune::LagrangePolynomialGrid< GV >
 Exposes a Dune::GridView as a grid composed of lagrange cells with the given order. Can be used to conveniently write Dune::Functions into grid files. More...
 
struct  GridFormat::Dune::Traits::GridView< GV >
 
struct  GridFormat::Dune::Traits::GridView< LagrangePolynomialGrid< GV > >
 
struct  GridFormat::Traits::Points< Dune::LagrangePolynomialGrid< GridView > >
 
struct  GridFormat::Traits::Cells< Dune::LagrangePolynomialGrid< GridView > >
 
struct  GridFormat::Traits::NumberOfPoints< Dune::LagrangePolynomialGrid< GridView > >
 
struct  GridFormat::Traits::NumberOfCells< Dune::LagrangePolynomialGrid< GridView > >
 
struct  GridFormat::Traits::NumberOfCellPoints< Dune::LagrangePolynomialGrid< GridView >, typename Dune::LagrangePolynomialGrid< GridView >::Cell >
 
struct  GridFormat::Traits::CellPoints< Dune::LagrangePolynomialGrid< GridView >, typename Dune::LagrangePolynomialGrid< GridView >::Cell >
 
struct  GridFormat::Traits::CellType< Dune::LagrangePolynomialGrid< GridView >, typename Dune::LagrangePolynomialGrid< GridView >::Cell >
 
struct  GridFormat::Traits::PointCoordinates< Dune::LagrangePolynomialGrid< GridView >, typename Dune::LagrangePolynomialGrid< GridView >::Point >
 
struct  GridFormat::Traits::PointId< Dune::LagrangePolynomialGrid< GridView >, typename Dune::LagrangePolynomialGrid< GridView >::Point >
 
class  GridFormat::Dune::FunctionField< _Function, Grid, T >
 Implements the field interface for a Dune::Function defined on a (wrapped) Dune::GridView. More...
 
class  GridFormat::Dune::GridFactoryAdapter< Grid >
 Adapter around a Dune::GridFactory to be compatible with GridFormat::Concepts::GridFactory. Can be used to export a grid from a reader directly into a Dune::GridFactory. For instance: More...
 

Concepts

concept  GridFormat::Dune::Concepts::Function
 

Functions

template<typename F , typename G , typename T = FunctionDetail::RangeScalar<F, typename Traits::GridView<G>::type>>
requires (std::is_lvalue_reference_v<F>)
 GridFormat::Dune::FunctionField (F &&, const G &, const Precision< T > &={}, bool=false) -> FunctionField< std::add_lvalue_reference_t< std::add_const_t< std::remove_reference_t< F > > >, G, T >
 
template<typename F , typename G , typename T = FunctionDetail::RangeScalar<F, typename Traits::GridView<G>::type>>
requires (!std::is_lvalue_reference_v<F>)
 GridFormat::Dune::FunctionField (F &&, const G &, const Precision< T > &={}, bool=false) -> FunctionField< std::remove_cvref_t< F >, G, T >
 
template<typename Function , typename Writer >
void GridFormat::Dune::set_point_function (Function &&f, Writer &writer, const std::string &name)
 Insert the given Dune::Function to the writer as point field.
 
template<typename Function , typename Writer , GridFormat::Concepts::Scalar T>
void GridFormat::Dune::set_point_function (Function &&f, Writer &writer, const std::string &name, const Precision< T > &prec)
 Insert the given Dune::Function to the writer as point field with the given precision.
 
template<typename Writer , typename Function >
void GridFormat::Dune::set_cell_function (Function &&f, Writer &writer, const std::string &name)
 Insert the given Dune::Function to the writer as cell field.
 
template<typename Writer , typename Function , GridFormat::Concepts::Scalar T>
void GridFormat::Dune::set_cell_function (Function &&f, Writer &writer, const std::string &name, const Precision< T > &prec)
 Insert the given Dune::Function to the writer as cell field with the given precision.
 
constexpr ::Dune::GeometryType GridFormat::Dune::to_dune_geometry_type (const CellType &ct)
 
template<std::integral TargetType, std::integral T>
auto GridFormat::Dune::to_dune (const CellType &ct, const std::vector< T > &corners)