HDF5Output Class Reference#
|
DiFfRG
|
DiFfRG::HDF5Output Class Reference
A class to output data to a CSV file. More...
#include <hdf5_output.hh>
Public Member Functions | |
| HDF5Output (const std::string top_folder, const std::string output_name, const JSONValue &json) | |
| Construct a new Csv Output object. | |
| ~HDF5Output () | |
| void | write_series_record (DiFfRG::hdf5::Group &group, const int series_number) |
| template<typename T > | |
| void | scalar (const std::string &name, const T value) |
| Add a value to the output. | |
| void | scalar (const std::string &name, const char *value) |
| template<typename COORD > requires is_coordinates<COORD> | |
| void | map (const std::string &name, const COORD &coordinates) |
| template<typename COORD , typename T > requires is_coordinates<COORD> | |
| void | map (const std::string &name, const COORD &coordinates, T *data) |
| template<typename INTERP > requires is_interpolator<INTERP> | |
| void | map (const std::string &name, const INTERP &_interpolator) |
| template<typename INTERP > requires is_interpolator<INTERP> | |
| void | map (const std::string &name, const std::string &coord_name, const INTERP &_interpolator) |
| DiFfRG::hdf5::File & | get_file () |
| void | flush (const double time) |
| void | open_file () |
| void | close_file () |
Private Member Functions | |
| template<typename COORD > | |
| void | check_coordinates (const std::string &coord_name, const COORD &coordinates) |
Private Attributes | |
| const JSONValue & | json |
| const std::string | top_folder |
| const std::string | output_name |
| bool | opened |
| std::list< std::string > | written_scalars |
| std::list< std::string > | written_maps |
| std::map< std::string, size_t > | map_series_numbers |
| std::map< std::string, std::string > | coord_identifiers |
| std::list< std::string > | initial_scalars |
| DiFfRG::hdf5::File | h5_file |
| DiFfRG::hdf5::Group | scalars |
| DiFfRG::hdf5::Group | maps |
| DiFfRG::hdf5::Group | coords |
| std::filesystem::path | path |
Detailed Description
A class to output data to a CSV file.
In every time step, the user can add values to the output, which will be written to the file when flush is called. Every timestep has to contain the same values, but the order in which they are added can change.
Constructor & Destructor Documentation
◆ HDF5Output()
| DiFfRG::HDF5Output::HDF5Output | ( | const std::string | top_folder, |
| const std::string | output_name, | ||
| const JSONValue & | json ) |
Construct a new Csv Output object.
- Parameters
-
top_folder The top folder to store the output in. output_name The name of the output file. json The JSON object containing the parameters.
◆ ~HDF5Output()
| DiFfRG::HDF5Output::~HDF5Output | ( | ) |
Member Function Documentation
◆ check_coordinates()
template<typename COORD >
|
inlineprivate |
◆ close_file()
| void DiFfRG::HDF5Output::close_file | ( | ) |
◆ flush()
| void DiFfRG::HDF5Output::flush | ( | const double | time | ) |
◆ get_file()
| DiFfRG::hdf5::File & DiFfRG::HDF5Output::get_file | ( | ) |
◆ map() [1/4]
template<typename COORD >
requires is_coordinates<COORD>
requires is_coordinates<COORD>
|
inline |
◆ map() [2/4]
template<typename COORD , typename T >
requires is_coordinates<COORD>
requires is_coordinates<COORD>
|
inline |
◆ map() [3/4]
template<typename INTERP >
requires is_interpolator<INTERP>
requires is_interpolator<INTERP>
|
inline |
◆ map() [4/4]
template<typename INTERP >
requires is_interpolator<INTERP>
requires is_interpolator<INTERP>
|
inline |
◆ open_file()
| void DiFfRG::HDF5Output::open_file | ( | ) |
◆ scalar() [1/2]
|
inline |
◆ scalar() [2/2]
template<typename T >
|
inline |
Add a value to the output.
- Parameters
-
name The name of the value. value The value to add.
◆ write_series_record()
|
inline |
Member Data Documentation
◆ coord_identifiers
|
private |
◆ coords
|
private |
◆ h5_file
|
private |
◆ initial_scalars
|
private |
◆ json
|
private |
◆ map_series_numbers
|
private |
◆ maps
|
private |
◆ opened
|
private |
◆ output_name
|
private |
◆ path
|
private |
◆ scalars
|
private |
◆ top_folder
|
private |
◆ written_maps
|
private |
◆ written_scalars
|
private |
The documentation for this class was generated from the following file:
- /home/runner/work/DiFfRG_current/DiFfRG_current/DiFfRG/include/DiFfRG/discretization/data/hdf5_output.hh
Generated by