Exporter for host-only data related to general-purpose simulation data (e.g., concentration, parameters, and other global data).
More...
|
| MainExporter ()=default |
| Default constructor for MainExporter.
|
|
| MainExporter (const ExecInfo &info, std::string_view _filename, std::optional< export_metadata_t > user_description=std::nullopt) |
| Constructs a MainExporter instance.
|
|
void | write_initial (double weight, const Core::SimulationParameters ¶ms) |
| Writes initial simulation data to the output.
|
|
void | write_final (Simulation::SimulationUnit &simulation, std::size_t number_particles) |
| Writes final simulation data to the output.
|
|
void | init_fields (uint64_t n_iter, uint64_t n_compartments, uint64_t n_species, bool is_two_phase_flow) |
| Initializes fields required for simulation export.
|
|
void | update_fields (double t, std::span< double > concentration_liquid, std::span< const double > liquid_volume, std::optional< std::span< const double > > concentration_gas, std::optional< std::span< const double > > volume_gas, std::optional< std::span< const double > > mtr) |
| Updates fields with the current simulation state.
|
|
| DataExporter (const DataExporter &)=delete |
|
| DataExporter (DataExporter &&)=delete |
|
DataExporter & | operator= (const DataExporter &)=delete |
|
DataExporter & | operator= (DataExporter &&)=delete |
|
| DataExporter ()=default |
|
void | do_link (std::string_view filename, std::string_view link_name, std::string_view groupname) |
| Creates a link to a specified file.
|
|
|
using | export_metadata_t |
| Metadata types for export.
|
|
using | export_metadata_kv |
| Key-value pairs for metadata.
|
|
using | ViewParticleProperties |
| View for particle properties.
|
|
using | simple_export_t |
|
using | export_initial_kv |
| Initial export key-value pairs.
|
|
using | matrix_variant_t |
| Variant for matrix data types.
|
|
| DataExporter (const ExecInfo &info, std::string_view _filename, std::optional< export_metadata_t > user_description=std::nullopt) |
|
| ~DataExporter () |
|
void | write_matrix (std::string_view name, std::span< const double > values, bool compress=false) |
|
void | write_matrix (std::string_view name, std::span< const double > values, size_t n_row, size_t n_col, bool compress=false) |
|
void | prepare_matrix (MultiMatrixDescription description) |
|
void | append_matrix (std::string_view name, matrix_variant_t data) |
|
void | append_array (std::string_view name, std::span< const double > data, uint64_t last_size=0) |
|
void | write_properties (std::optional< std::string > specific_dataspace, const export_metadata_kv &values) |
|
void | write_simple (const export_initial_kv &values, std::string_view root) |
|
void | write_simple (std::string specific_dataspace, const simple_export_t &values) |
|
export_metadata_kv | metadata |
|
uint64_t | export_counter = 0 |
|
Exporter for host-only data related to general-purpose simulation data (e.g., concentration, parameters, and other global data).
This class is responsible for exporting simulation data at both the initial and final stages, as well as for managing field updates during the simulation. It provides functionalities to handle both single-phase and two-phase flow simulations.