/home/runner/work/kynema/kynema/kynema/src/utilities/netcdf/time_series_writer.hpp Source File
|
Kynema API
A flexible multibody structural dynamics code for wind turbines
|
Loading...
Searching...
No Matches
time_series_writer.hpp
Go to the documentation of this file.
Definition netcdf_file.hpp:18
Class for writing time-series data to NetCDF file.
Definition time_series_writer.hpp:14
void Close()
Manually closes the underlying NetCDF file and flush any remaining buffered rows.
Definition time_series_writer.cpp:192
void Flush()
Flushes any remaining buffered rows.
Definition time_series_writer.cpp:187
size_t GetBufferSize() const
Gets the buffer size.
Definition time_series_writer.cpp:220
const std::vector< std::string > & GetChannelNames() const
Gets the channel names.
Definition time_series_writer.cpp:208
TimeSeriesWriter(const TimeSeriesWriter &)=delete
TimeSeriesWriter & operator=(const TimeSeriesWriter &)=delete
const NetCdfFile & GetFile() const
Gets the NetCDF file object.
Definition time_series_writer.cpp:204
static constexpr size_t kDefaultBufferSize
Default buffer size (number of rows to accumulate before auto-flush, 0 = no buffering)
Definition time_series_writer.hpp:17
void WriteValuesAtTimestep(const std::string &variable_name, size_t timestep, std::span< const double > values)
Writes multiple values for a time-series variable at a specific timestep.
Definition time_series_writer.cpp:90
void Open()
Manually (re)opens the underlying NetCDF file.
Definition time_series_writer.cpp:200
TimeSeriesWriter(TimeSeriesWriter &&)=delete
size_t GetNumChannels() const
Gets the number of channels.
Definition time_series_writer.cpp:216
~TimeSeriesWriter()
Destructor flushes any remaining buffered rows.
Definition time_series_writer.cpp:85
const std::vector< std::string > & GetChannelUnits() const
Gets the channel units.
Definition time_series_writer.cpp:212
TimeSeriesWriter & operator=(TimeSeriesWriter &&)=delete
void WriteValueAtTimestep(const std::string &variable_name, size_t timestep, const double &value)
Writes a single value for a time-series variable at a specific timestep.
Definition time_series_writer.cpp:120
void WriteRowAtTimestep(size_t timestep, std::span< const double > row)
Writes a full row (all channels) at a specific timestep.
Definition time_series_writer.cpp:126
Definition aerodyn_inflow.hpp:14
Generated by