Harmony
HARMONic stabilitY assessment of PE-penetrated power systems
Loading...
Searching...
No Matches
Writer.h File Reference

CSV file output for time-series simulation data. More...

#include "../../Constants.h"
Include dependency graph for Writer.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void write_file (const std::vector< double > &time, const std::vector< Eigen::MatrixXd > &values, const std::vector< std::string > &headers, const std::string &filename)
 Writes time-series matrix data to a CSV file.
 

Detailed Description

CSV file output for time-series simulation data.

Function Documentation

◆ write_file()

void write_file ( const std::vector< double > &  time,
const std::vector< Eigen::MatrixXd > &  values,
const std::vector< std::string > &  headers,
const std::string &  filename 
)
extern

Writes time-series matrix data to a CSV file.

Parameters
timeTime axis values (one per row).
valuesOne matrix per column group; row count must match time.
headersColumn header strings (one per column in each matrix block).
filenameOutput file path.

Referenced by example_DQsym_DSSS2(), example_DQsym_RLC(), and DQsym::exportCSV().