psim  1.0
Generalized 2D phonon transport using a Monte Carlo method
OutputManager Class Reference

#include <outputManager.h>

Public Member Functions

 OutputManager ()=default
 
void steadyStateExport (const fs::path &filepath, double time) const
 
void periodicExport (const fs::path &filepath, double time) const
 
void addMeasurement (SensorMeasurements &&measurement) noexcept
 
void sortMeasurements () noexcept
 
void setStepInterval (std::size_t interval) noexcept
 

Constructor & Destructor Documentation

◆ OutputManager()

OutputManager::OutputManager ( )
default

Member Function Documentation

◆ addMeasurement()

void OutputManager::addMeasurement ( SensorMeasurements &&  measurement)
noexcept

◆ periodicExport()

void OutputManager::periodicExport ( const fs::path &  filepath,
double  time 
) const

Exports results from each measurement step so the evolution of the system can be visualized. Step intervals of 1 will write every measurement to file. If there are 100 measurements, then there will bee 100 * num_sensors entries written. Step intervals greater than 1 will write the average of the measurements to file. Step intervals of 10 with 100 measurements -> 10 * num_sensors entries. First entry is the avg of steps 1-10, second is avg of steps 11-20, etc.

Parameters
filepath- path and filename where the results will be written - existing file will be overwritten
time-The time taken to run the simulation.
Here is the caller graph for this function:

◆ setStepInterval()

void OutputManager::setStepInterval ( std::size_t  interval)
inlinenoexcept
Here is the caller graph for this function:

◆ sortMeasurements()

void OutputManager::sortMeasurements ( )
noexcept

◆ steadyStateExport()

void OutputManager::steadyStateExport ( const fs::path &  filepath,
double  time 
) const
Here is the caller graph for this function:

The documentation for this class was generated from the following files: