dune-vtk
0.2
|
Classes | |
class | DataCollectorInterface |
Base class for data collectors in a CRTP style. More... | |
class | ContinuousDataCollector |
Implementation of DataCollector for linear cells, with continuous data. More... | |
class | DiscontinuousDataCollector |
Implementation of DataCollector for linear cells, with discontinuous data. More... | |
class | LagrangeDataCollector |
Implementation of DataCollector for lagrange cells. More... | |
class | QuadraticDataCollector |
Implementation of DataCollector for quadratic cells, with continuous data. More... | |
class | StructuredDataCollectorInterface |
The Interface for structured data-collectors. More... | |
struct | Cells |
class | UnstructuredDataCollectorInterface |
class | YaspDataCollector |
class | LocalFunctionWrapper |
Type erasure for dune-functions LocalFunction interface. More... | |
class | FileReader |
class | FileWriter |
class | Function |
Wrapper class for functions allowing local evaluations. More... | |
class | GridCreatorInterface |
Base class for grid creators in a CRTP style. More... | |
struct | ContinuousGridCreator |
struct | AssociatedGridFunction< ContinuousGridCreator< GridType >, FieldType, Context > |
struct | DerivedGridCreator |
struct | DiscontinuousGridCreator |
class | LagrangeGridCreator |
struct | AssociatedGridFunction< LagrangeGridCreator< GridType >, FieldType, Context > |
struct | ParallelGridCreator |
struct | SerialGridCreator |
struct | PointContext |
Context indicating that a GridFunction generates a local-function from point data. More... | |
struct | CellContext |
Context indicating that a GridFunction generates a local-function from cell data. More... | |
struct | AssociatedGridFunction |
Type-Traits to associate a GridFunction to a GridCreator. More... | |
class | ContinuousGridFunction |
A GridFunction representing data stored on the grid vertices in a continuous manner. More... | |
class | LagrangeGridFunction |
Grid-function representing values from a VTK file with local Lagrange interpolation of the values stored on the Lagrange nodes. More... | |
class | VTKLocalFunctionWrapper |
Type erasure for Legacy VTKFunction. More... | |
class | LocalFunction |
A Vtk::LocalFunction is a function-like object that can be bound to a grid element an that provides an evaluate method with a component argument. More... | |
class | LocalFunctionInterface |
An abstract base class for LocalFunctions that can be bound to an element and evaluated in local coordinates w.r.t. to a component of its value. More... | |
struct | NoConstraint |
class | CellType |
Mapping of Dune geometry types to VTK cell types. More... | |
class | FieldInfo |
class | Path |
class | LagrangePointSet |
A set of lagrange points compatible with the numbering of VTK and Gmsh. More... | |
Typedefs | |
template<class GridView > | |
using | StructuredDataCollector = typename Impl::StructuredDataCollectorImpl< GridView, typename GridView::Grid >::type |
template<class Factory , class... Args> | |
using | HasInsertVertex = decltype(std::declval< Factory >().insertVertex(std::declval< Args >()...)) |
template<class GF > | |
using | VertexId_t = typename Impl::VertexIdType< GF >::type |
Enumerations | |
enum | FormatTypes { ASCII = 1<<0 , BINARY = 1<<1 , COMPRESSED = 1<<2 , APPENDED = BINARY | COMPRESSED } |
Type used for representing the output format. More... | |
enum class | RangeTypes { UNSPECIFIED , AUTO , SCALAR , VECTOR , TENSOR } |
Type used to determine whether to limit output components to e.g. 3 (vector), or 9 (tensor) More... | |
enum | DataTypes { UNKNOWN = 0 , INT8 , UINT8 , INT16 , UINT16 , INT32 , UINT32 , INT64 , UINT64 , FLOAT32 = 32 , FLOAT64 = 64 } |
enum | CompressorTypes { NONE = 0 , ZLIB , LZ4 , LZMA } |
enum | CellParametrization { LINEAR , QUADRATIC , LAGRANGE } |
enum | CellTypes : std::uint8_t { VERTEX = 1 , LINE = 3 , TRIANGLE = 5 , POLYGON = 7 , QUAD = 9 , TETRA = 10 , HEXAHEDRON = 12 , WEDGE = 13 , PYRAMID = 14 , QUADRATIC_EDGE = 21 , QUADRATIC_TRIANGLE = 22 , QUADRATIC_QUAD = 23 , QUADRATIC_TETRA = 24 , QUADRATIC_HEXAHEDRON = 25 , LAGRANGE_CURVE = 68 , LAGRANGE_TRIANGLE = 69 , LAGRANGE_QUADRILATERAL = 70 , LAGRANGE_TETRAHEDRON = 71 , LAGRANGE_HEXAHEDRON = 72 , LAGRANGE_WEDGE = 73 , LAGRANGE_PYRAMID = 74 } |
Functions | |
template<class Grid > | |
ContinuousGridCreator (GridFactory< Grid > &) -> ContinuousGridCreator< Grid > | |
template<class Grid > | |
DiscontinuousGridCreator (GridFactory< Grid > &) -> DiscontinuousGridCreator< Grid > | |
template<class Grid > | |
LagrangeGridCreator (GridFactory< Grid > &) -> LagrangeGridCreator< Grid > | |
template<class Grid > | |
ParallelGridCreator (GridFactory< Grid > &) -> ParallelGridCreator< Grid > | |
template<class Grid > | |
SerialGridCreator (GridFactory< Grid > &) -> SerialGridCreator< Grid > | |
std::string | to_string (Vtk::FormatTypes type) |
Vtk::FormatTypes | formatTypeOf (Dune::VTK::OutputType) |
Map the dune-grid OutputType to FormatTypes. More... | |
std::string | to_string (Vtk::RangeTypes type) |
Vtk::RangeTypes | rangeTypeOf (Dune::VTK::FieldInfo::Type t) |
Vtk::RangeTypes | rangeTypeOf (int ncomps) |
std::string | to_string (Vtk::DataTypes type) |
Vtk::DataTypes | dataTypeOf (Dune::VTK::Precision p) |
Vtk::DataTypes | dataTypeOf (std::string s) |
std::string | to_string (CompressorTypes type) |
GeometryType | to_geometry (std::uint8_t cell) |
template<class T > | |
Vtk::DataTypes | dataTypeOf () |
template<template< class > class C = NoConstraint, class Caller > | |
void | mapDataTypes (Vtk::DataTypes t, Caller caller) |
Map a given enum DataType to a type passed to Caller as MetaType. More... | |
template<template< class > class Constraint1 = NoConstraint, template< class > class Constraint2 = NoConstraint, class Caller > | |
void | mapDataTypes (Vtk::DataTypes t1, Vtk::DataTypes t2, Caller caller) |
Map two DataTypes as type parameters to the Caller. More... | |
template<template< class > class Constraint1 = NoConstraint, template< class > class Constraint2 = NoConstraint, template< class > class Constraint3 = NoConstraint, class Caller > | |
void | mapDataTypes (Vtk::DataTypes t1, Vtk::DataTypes t2, Vtk::DataTypes t3, Caller caller) |
Map three DataTypes as type parameters to the Caller. More... | |
template<class... T, class Arg0 , class... Args> | |
decltype(auto) | getArg (Arg0 &&arg0, Args &&... args) |
template<class E , class Integer , std::enable_if_t< std::is_enum< E >::value, int > = 0> | |
constexpr bool | is_a (E a, Integer b) |
Path | currentPath () |
Returns the current path. More... | |
bool | exists (Path const &) |
Test whether the path is a valid (existing and accessible) file / directory. More... | |
bool | createDirectories (Path const &) |
Create directory and non existing parent directories. More... | |
Path | relative (Path const &a, Path const &b) |
Find the path of a relative to directory of b More... | |
std::string | to_upper (std::string input) |
convert all characters in a string to upper case More... | |
std::string | to_lower (std::string input) |
convert all characters in a string to upper case More... | |
std::string & | ltrim (std::string &str) |
trim a string from the left More... | |
std::string & | rtrim (std::string &str) |
trim a string from the right More... | |
std::string & | trim (std::string &str) |
trim a string from both sides More... | |
std::string | trim_copy (std::string const &str) |
trim a (copy of the) string from both sides More... | |
template<class InputIter , class T , class Func > | |
void | split (InputIter first, InputIter end, T const &t, Func f) |
template<class InputIter , class SeparatorIter , class Func > | |
void | split (InputIter first, InputIter end, SeparatorIter s_first, SeparatorIter s_end, Func f) |
void | replaceAll (std::string &str, std::string const &from, std::string const &to) |
Replace all occurences of substring from with to in source str . More... | |
template<class InputIter > | |
std::string | join (InputIter first, InputIter end, std::string sep=" ") |
std::string | uid (std::size_t len=8) |
using Dune::Vtk::HasInsertVertex = typedef decltype( std::declval<Factory>().insertVertex(std::declval<Args>()...) ) |
using Dune::Vtk::StructuredDataCollector = typedef typename Impl::StructuredDataCollectorImpl<GridView, typename GridView::Grid>::type |
using Dune::Vtk::VertexId_t = typedef typename Impl::VertexIdType<GF>::type |
enum Dune::Vtk::CellTypes : std::uint8_t |
enum Dune::Vtk::DataTypes |
|
strong |
Dune::Vtk::ContinuousGridCreator | ( | GridFactory< Grid > & | ) | -> ContinuousGridCreator< Grid > |
bool Dune::Vtk::createDirectories | ( | Path const & | p | ) |
Create directory and non existing parent directories.
Path Dune::Vtk::currentPath | ( | ) |
Returns the current path.
Vtk::DataTypes Dune::Vtk::dataTypeOf | ( | ) |
Vtk::DataTypes Dune::Vtk::dataTypeOf | ( | Dune::VTK::Precision | p | ) |
Vtk::DataTypes Dune::Vtk::dataTypeOf | ( | std::string | s | ) |
Dune::Vtk::DiscontinuousGridCreator | ( | GridFactory< Grid > & | ) | -> DiscontinuousGridCreator< Grid > |
bool Dune::Vtk::exists | ( | Path const & | p | ) |
Test whether the path is a valid (existing and accessible) file / directory.
Vtk::FormatTypes Dune::Vtk::formatTypeOf | ( | Dune::VTK::OutputType | o | ) |
Map the dune-grid OutputType to FormatTypes.
decltype(auto) Dune::Vtk::getArg | ( | Arg0 && | arg0, |
Args &&... | args | ||
) |
Extract the first argument of the variadic list that is the same as one of the types {T,...} and return its value. This utility can be used to implement function parameters with flexible order.
Example:
The arguments are tested from first to last. Thus, a default parmaeter could be given at end of the variadic list that is chosen if no argument matches the requested type.
|
constexpr |
std::string Dune::Vtk::join | ( | InputIter | first, |
InputIter | end, | ||
std::string | sep = " " |
||
) |
Dune::Vtk::LagrangeGridCreator | ( | GridFactory< Grid > & | ) | -> LagrangeGridCreator< Grid > |
|
inline |
trim a string from the left
void Dune::Vtk::mapDataTypes | ( | Vtk::DataTypes | t, |
Caller | caller | ||
) |
Map a given enum DataType to a type passed to Caller as MetaType.
void Dune::Vtk::mapDataTypes | ( | Vtk::DataTypes | t1, |
Vtk::DataTypes | t2, | ||
Caller | caller | ||
) |
Map two DataTypes as type parameters to the Caller.
void Dune::Vtk::mapDataTypes | ( | Vtk::DataTypes | t1, |
Vtk::DataTypes | t2, | ||
Vtk::DataTypes | t3, | ||
Caller | caller | ||
) |
Map three DataTypes as type parameters to the Caller.
Dune::Vtk::ParallelGridCreator | ( | GridFactory< Grid > & | ) | -> ParallelGridCreator< Grid > |
Vtk::RangeTypes Dune::Vtk::rangeTypeOf | ( | Dune::VTK::FieldInfo::Type | t | ) |
Vtk::RangeTypes Dune::Vtk::rangeTypeOf | ( | int | ncomps | ) |
Find the path of a
relative to directory of b
|
inline |
Replace all occurences of substring from
with to
in source str
.
|
inline |
trim a string from the right
Dune::Vtk::SerialGridCreator | ( | GridFactory< Grid > & | ) | -> SerialGridCreator< Grid > |
void Dune::Vtk::split | ( | InputIter | first, |
InputIter | end, | ||
SeparatorIter | s_first, | ||
SeparatorIter | s_end, | ||
Func | f | ||
) |
void Dune::Vtk::split | ( | InputIter | first, |
InputIter | end, | ||
T const & | t, | ||
Func | f | ||
) |
GeometryType Dune::Vtk::to_geometry | ( | std::uint8_t | cell | ) |
|
inline |
convert all characters in a string to upper case
std::string Dune::Vtk::to_string | ( | CompressorTypes | type | ) |
std::string Dune::Vtk::to_string | ( | Vtk::DataTypes | type | ) |
std::string Dune::Vtk::to_string | ( | Vtk::FormatTypes | type | ) |
std::string Dune::Vtk::to_string | ( | Vtk::RangeTypes | type | ) |
|
inline |
convert all characters in a string to upper case
|
inline |
trim a string from both sides
|
inline |
trim a (copy of the) string from both sides
|
inline |