/home/runner/work/kynema/kynema/kynema/src/interfaces/components/outputs_config.hpp Source File

Kynema API: /home/runner/work/kynema/kynema/kynema/src/interfaces/components/outputs_config.hpp Source File
Kynema API
A flexible multibody structural dynamics code for wind turbines
Loading...
Searching...
No Matches
outputs_config.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4#include <vector>
5
7
9
15 std::string output_file_path;
16
18 std::vector<std::string> output_state_prefixes{"x", "u", "v", "a", "f"};
19
22
24 [[nodiscard]] bool Enabled() const { return !this->output_file_path.empty(); }
25};
26
27} // namespace kynema::interfaces::components
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
Definition aerodynamics.cpp:5
A configuration object used to create the Outputs object.
Definition outputs_config.hpp:13
size_t buffer_size
Number of timesteps to buffer before auto-flush.
Definition outputs_config.hpp:21
std::vector< std::string > output_state_prefixes
Vector of state component prefixes to enable for writing.
Definition outputs_config.hpp:18
bool Enabled() const
Check if outputs are enabled.
Definition outputs_config.hpp:24
std::string output_file_path
Output file path for NetCDF results (empty = no outputs will be written)
Definition outputs_config.hpp:15