1D Heat Equation Solver 1.0
Computational Methods Assignment 2025
Loading...
Searching...
No Matches
io.hpp File Reference

CSV utilities. More...

#include <string>
#include <vector>
Include dependency graph for io.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void save_profile_csv (const std::string &path, const std::vector< double > &x, const std::vector< double > &T)
 Save a temperature profile (x, T) to a CSV file.

Detailed Description

CSV utilities.

Definition in file io.hpp.

Function Documentation

◆ save_profile_csv()

void save_profile_csv ( const std::string & path,
const std::vector< double > & x,
const std::vector< double > & T )

Save a temperature profile (x, T) to a CSV file.

This function automatically creates the directory structure if missing. Example output path: "result/dufort_frankel/t_0.10.csv"

Parameters
pathRelative or absolute path to the file.
xSpatial coordinates [cm].
TTemperature values [°C].

Definition at line 20 of file io.cpp.

Here is the caller graph for this function: