/home/runner/work/kynema/kynema/kynema/src/utilities/netcdf/node_state_writer.hpp Source File
|
Kynema API
A flexible multibody structural dynamics code for wind turbines
|
Loading...
Searching...
No Matches
node_state_writer.hpp
Go to the documentation of this file.
Definition netcdf_file.hpp:18
Class for writing Kynema nodal state data to NetCDF-based output files.
Definition node_state_writer.hpp:30
NodeStateWriter(NodeStateWriter &&)=delete
NodeStateWriter & operator=(const NodeStateWriter &)=delete
NodeStateWriter & operator=(NodeStateWriter &&)=delete
size_t GetNumNodes() const
Get the number of nodes with state data in output file.
Definition node_state_writer.cpp:134
static constexpr size_t kDefaultBufferSize
Default buffer size (number of timesteps to accumulate before auto-flush, 0 = no buffering)
Definition node_state_writer.hpp:33
~NodeStateWriter()
Destructor to flush any remaining buffered data.
Definition node_state_writer.cpp:65
void WriteStateDataAtTimestep(size_t timestep, const std::string &component_prefix, const std::vector< double > &x, const std::vector< double > &y, const std::vector< double > &z, const std::vector< double > &i, const std::vector< double > &j, const std::vector< double > &k, const std::vector< double > &w=std::vector< double >())
Writes state data for a specific timestep.
Definition node_state_writer.cpp:72
NodeStateWriter(const NodeStateWriter &)=delete
void Open()
Manually (re)open the underlying NetCDF file.
Definition node_state_writer.cpp:146
void Close()
Manually flush and close the underlying NetCDF file.
Definition node_state_writer.cpp:138
const NetCdfFile & GetFile() const
Get the NetCDF file object.
Definition node_state_writer.cpp:130
Definition aerodyn_inflow.hpp:14
Generated by