|
openPMD-api
|
Container for N-dimensional, homogeneous Records. More...
#include <Mesh.hpp>


Public Types | |
| enum | Geometry { cartesian, thetaMode, cylindrical, spherical, other } |
| Enumerated datatype for the geometry of the mesh. More... | |
| enum | DataOrder : char { C = 'C', F = 'F' } |
| Enumerated datatype for the memory layout of N-dimensional data. | |
Public Types inherited from openPMD::BaseRecord< MeshRecordComponent > | |
| using | key_type = typename Container< MeshRecordComponent >::key_type |
| using | mapped_type = typename Container< MeshRecordComponent >::mapped_type |
| using | value_type = typename Container< MeshRecordComponent >::value_type |
| using | size_type = typename Container< MeshRecordComponent >::size_type |
| using | difference_type = typename Container< MeshRecordComponent >::difference_type |
| using | allocator_type = typename Container< MeshRecordComponent >::allocator_type |
| using | reference = typename Container< MeshRecordComponent >::reference |
| using | const_reference = typename Container< MeshRecordComponent >::const_reference |
| using | pointer = typename Container< MeshRecordComponent >::pointer |
| using | const_pointer = typename Container< MeshRecordComponent >::const_pointer |
| using | iterator = typename Container< MeshRecordComponent >::iterator |
| using | const_iterator = typename Container< MeshRecordComponent >::const_iterator |
Public Types inherited from openPMD::Container< MeshRecordComponent > | |
| using | key_type = typename InternalContainer::key_type |
| using | mapped_type = typename InternalContainer::mapped_type |
| using | value_type = typename InternalContainer::value_type |
| using | size_type = typename InternalContainer::size_type |
| using | difference_type = typename InternalContainer::difference_type |
| using | allocator_type = typename InternalContainer::allocator_type |
| using | reference = typename InternalContainer::reference |
| using | const_reference = typename InternalContainer::const_reference |
| using | pointer = typename InternalContainer::pointer |
| using | const_pointer = typename InternalContainer::const_pointer |
| using | iterator = typename InternalContainer::iterator |
| using | const_iterator = typename InternalContainer::const_iterator |
Public Types inherited from openPMD::Attributable | |
| enum | ReadMode { IgnoreExisting, OverrideExisting, FullyReread } |
Public Member Functions | |
| Mesh (Mesh const &)=default | |
| Mesh & | operator= (Mesh const &)=default |
| Geometry | geometry () const |
| std::string | geometryString () const |
| Mesh & | setGeometry (Geometry g) |
| Set the geometry of the mesh of the mesh record. More... | |
| Mesh & | setGeometry (std::string geometry) |
| Set the geometry of the mesh of the mesh record. More... | |
| std::string | geometryParameters () const |
| Mesh & | setGeometryParameters (std::string const &geometryParameters) |
| Set additional parameters for the geometry, separated by a. More... | |
| DataOrder | dataOrder () const |
| Mesh & | setDataOrder (DataOrder dor) |
| Set the memory layout of N-dimensional data. More... | |
| std::vector< std::string > | axisLabels () const |
| Mesh & | setAxisLabels (std::vector< std::string > const &axisLabels) |
| Set the ordering of the labels for the Mesh::geometry of the mesh. More... | |
| template<typename T > | |
| std::vector< T > | gridSpacing () const |
| template<typename T , typename = std::enable_if_t<std::is_floating_point<T>::value>> | |
| Mesh & | setGridSpacing (std::vector< T > const &gridSpacing) |
| Set the spacing of the grid points along each dimension (in the units of the simulation). More... | |
| std::vector< double > | gridGlobalOffset () const |
| Mesh & | setGridGlobalOffset (std::vector< double > const &gridGlobalOffset) |
| Set the start of the current domain of the simulation (position of the beginning of the first cell) in simulation units. More... | |
| double | gridUnitSI () const |
| Mesh & | setGridUnitSI (double gridUnitSI) |
| Set the unit-conversion factor to multiply each value in Mesh::gridSpacing and Mesh::gridGlobalOffset, in order to convert from simulation units to SI units. More... | |
| Mesh & | setUnitDimension (std::map< UnitDimension, double > const &unitDimension) |
| Set the powers of the 7 base measures characterizing the record's unit in SI. More... | |
| template<typename T > | |
| T | timeOffset () const |
| template<typename T , typename = std::enable_if_t<std::is_floating_point<T>::value>> | |
| Mesh & | setTimeOffset (T timeOffset) |
| Set the offset between the time at which this record is defined and the Iteration::time attribute of the Series::basePath level. More... | |
Public Member Functions inherited from openPMD::BaseRecord< MeshRecordComponent > | |
| mapped_type & | operator[] (key_type const &key) override |
| mapped_type & | operator[] (key_type &&key) override |
| BaseRecord< RecordComponent >::mapped_type & | operator[] (std::string &&key) |
| size_type | erase (key_type const &key) override |
| iterator | erase (iterator res) override |
| std::array< double, 7 > | unitDimension () const |
| Return the physical dimension (quantity) of a record. More... | |
| bool | scalar () const |
| Returns true if this record only contains a single component. More... | |
Public Member Functions inherited from openPMD::Container< MeshRecordComponent > | |
| iterator | begin () noexcept |
| const_iterator | begin () const noexcept |
| const_iterator | cbegin () const noexcept |
| iterator | end () noexcept |
| const_iterator | end () const noexcept |
| const_iterator | cend () const noexcept |
| bool | empty () const noexcept |
| size_type | size () const noexcept |
| void | clear () |
| Remove all objects from the container and (if written) from disk. More... | |
| std::pair< iterator, bool > | insert (value_type const &value) |
| std::pair< iterator, bool > | insert (P &&value) |
| iterator | insert (const_iterator hint, value_type const &value) |
| iterator | insert (const_iterator hint, P &&value) |
| void | insert (InputIt first, InputIt last) |
| void | insert (std::initializer_list< value_type > ilist) |
| void | swap (Container &other) |
| mapped_type & | at (key_type const &key) |
| mapped_type const & | at (key_type const &key) const |
| virtual mapped_type & | operator[] (key_type const &key) |
| Access the value that is mapped to a key equivalent to key, creating it if such key does not exist already. More... | |
| virtual mapped_type & | operator[] (key_type &&key) |
| Access the value that is mapped to a key equivalent to key, creating it if such key does not exist already. More... | |
| iterator | find (key_type const &key) |
| const_iterator | find (key_type const &key) const |
| size_type | count (key_type const &key) const |
| This returns either 1 if the key is found in the container of 0 if not. More... | |
| bool | contains (key_type const &key) const |
| Checks if there is an element with a key equivalent to an exiting key in the container. More... | |
| virtual size_type | erase (key_type const &key) |
| Remove a single element from the container and (if written) from disk. More... | |
| virtual iterator | erase (iterator res) |
| auto | emplace (Args &&...args) -> decltype(InternalContainer().emplace(std::forward< Args >(args)...)) |
| protected | Container (std::shared_ptr< ContainerData > containerData) |
| void | clear_unchecked () |
Public Member Functions inherited from openPMD::Attributable | |
| Attribute | getAttribute (std::string const &key) const |
| Retrieve value of Attribute stored with provided key. More... | |
| bool | deleteAttribute (std::string const &key) |
| Remove Attribute of provided value both logically and physically. More... | |
| std::vector< std::string > | attributes () const |
| List all currently stored Attributes' keys. More... | |
| size_t | numAttributes () const |
| Count all currently stored Attributes. More... | |
| bool | containsAttribute (std::string const &key) const |
| Check whether am Attribute with a given key exists. More... | |
| std::string | comment () const |
| Retrieve a user-supplied comment associated with the object. More... | |
| Attributable & | setComment (std::string const &comment) |
| Populate Attribute corresponding to a comment with the user-supplied comment. More... | |
| void | seriesFlush (std::string backendConfig="{}") |
| Flush the corresponding Series object. More... | |
| MyPath | myPath () const |
| The path to this object within its containing Series. More... | |
| protected Series | retrieveSeries () const |
| void | seriesFlush (internal::FlushParams) |
| void | flushAttributes (internal::FlushParams const &) |
| void | readAttributes (ReadMode) |
| template<typename T > | |
| T | readFloatingpoint (std::string const &key) const |
| Retrieve the value of a floating point Attribute of user-defined precision with ensured type-safety. More... | |
| template<typename T > | |
| std::vector< T > | readVectorFloatingpoint (std::string const &key) const |
| Retrieve a vector of values of a floating point Attributes of user-defined precision with ensured type-safety. More... | |
| AbstractIOHandler * | IOHandler () |
| AbstractIOHandler const * | IOHandler () const |
| Writable *& | parent () |
| Writable const * | parent () const |
| Writable & | writable () |
| Writable const & | writable () const |
| void | setData (std::shared_ptr< internal::AttributableData > attri) |
| internal::AttributableData & | get () |
| internal::AttributableData const & | get () const |
| bool | dirty () const |
| bool & | dirty () |
| bool | written () const |
| bool & | written () |
| template<typename T > | |
| bool | setAttribute (std::string const &key, T value) |
| Populate Attribute of provided name with provided value. More... | |
| bool | setAttribute (std::string const &key, char const value[]) |
| Iteration const & | containingIteration () const |
| Returns the corresponding Iteration. More... | |
| Iteration & | containingIteration () |
Friends | |
| class | Container< Mesh > |
| class | Iteration |
Additional Inherited Members | |
Protected Types inherited from openPMD::Container< MeshRecordComponent > | |
| using | ContainerData = internal::ContainerData< MeshRecordComponent, std::string, std::map< std::string, MeshRecordComponent > > |
| using | InternalContainer = std::map< std::string, MeshRecordComponent > |
Protected Member Functions inherited from openPMD::BaseRecord< MeshRecordComponent > | |
| BaseRecord (std::shared_ptr< internal::BaseRecordData< MeshRecordComponent > >) | |
| BaseRecord (internal::BaseRecordData< MeshRecordComponent > *) | |
| void | setData (internal::BaseRecordData< MeshRecordComponent > *data) |
| void | readBase () |
Protected Member Functions inherited from openPMD::Container< MeshRecordComponent > | |
| void | setData (std::shared_ptr< ContainerData > containerData) |
| InternalContainer const & | container () const |
| InternalContainer & | container () |
Protected Member Functions inherited from openPMD::Attributable | |
| Attributable (std::shared_ptr< internal::AttributableData >) | |
Protected Attributes inherited from openPMD::Container< MeshRecordComponent > | |
| std::shared_ptr< ContainerData > | m_containerData |
Protected Attributes inherited from openPMD::Attributable | |
| std::shared_ptr< internal::AttributableData > | m_attri |
Container for N-dimensional, homogeneous Records.
|
strong |
Enumerated datatype for the geometry of the mesh.
| std::vector< std::string > openPMD::Mesh::axisLabels | ( | ) | const |
| Mesh::DataOrder openPMD::Mesh::dataOrder | ( | ) | const |
| Mesh::Geometry openPMD::Mesh::geometry | ( | ) | const |
| std::string openPMD::Mesh::geometryParameters | ( | ) | const |
| no_such_attribute_error | If Mesh::geometry is not Mesh::Geometry::thetaMode. |
| std::string openPMD::Mesh::geometryString | ( | ) | const |
| std::vector< double > openPMD::Mesh::gridGlobalOffset | ( | ) | const |
|
inline |
| T | Floating point type of user-selected precision (e.g. float, double). |
| double openPMD::Mesh::gridUnitSI | ( | ) | const |
| Mesh & openPMD::Mesh::setAxisLabels | ( | std::vector< std::string > const & | axisLabels | ) |
Set the ordering of the labels for the Mesh::geometry of the mesh.
| axisLabels | vector containing N (string) elements, where N is the number of dimensions in the simulation. |
| Mesh & openPMD::Mesh::setDataOrder | ( | Mesh::DataOrder | dor | ) |
Set the memory layout of N-dimensional data.
| dor | memory layout of N-dimensional data. |
| Mesh & openPMD::Mesh::setGeometry | ( | Mesh::Geometry | g | ) |
Set the geometry of the mesh of the mesh record.
| g | geometry of the mesh of the mesh record. |
| Mesh & openPMD::Mesh::setGeometry | ( | std::string | geometry | ) |
Set the geometry of the mesh of the mesh record.
If the geometry is unknown to the openPMD-api, the string is prefixed with "other:" automatically unless the prefix is already present.
| geometry | geometry of the mesh of the mesh record, as string |
| Mesh & openPMD::Mesh::setGeometryParameters | ( | std::string const & | geometryParameters | ) |
Set additional parameters for the geometry, separated by a.
.
| geometryParameters | additional parameters for the geometry, separated by a ; |
| Mesh & openPMD::Mesh::setGridGlobalOffset | ( | std::vector< double > const & | gridGlobalOffset | ) |
Set the start of the current domain of the simulation (position of the beginning of the first cell) in simulation units.
| gridGlobalOffset | vector containing N (double) elements, where N is the number of dimensions in the simulation. |
| template Mesh & openPMD::Mesh::setGridSpacing | ( | std::vector< T > const & | gridSpacing | ) |
Set the spacing of the grid points along each dimension (in the units of the simulation).
| T | Floating point type of user-selected precision (e.g. float, double). |
| gridSpacing | vector containing N (T) elements, where N is the number of dimensions in the simulation. |
| Mesh & openPMD::Mesh::setGridUnitSI | ( | double | gridUnitSI | ) |
Set the unit-conversion factor to multiply each value in Mesh::gridSpacing and Mesh::gridGlobalOffset, in order to convert from simulation units to SI units.
| gridUnitSI | unit-conversion factor to multiply each value in Mesh::gridSpacing and Mesh::gridGlobalOffset, in order to convert from simulation units to SI units. |
Set the offset between the time at which this record is defined and the Iteration::time attribute of the Series::basePath level.
| T | Floating point type of user-selected precision (e.g. float, double). |
| timeOffset | Offset between the time at which this record is defined and the Iteration::time attribute of the Series::basePath level. |
| Mesh & openPMD::Mesh::setUnitDimension | ( | std::map< UnitDimension, double > const & | unitDimension | ) |
Set the powers of the 7 base measures characterizing the record's unit in SI.
| unitDimension | map containing pairs of (UnitDimension, double) that represent the power of the particular base. |
|
inline |
| T | Floating point type of user-selected precision (e.g. float, double). |
1.8.13