anufrievroman / freepaths

Monte Carlo simulator of phonon and heat transport in nanostructures
https://anufrievroman.gitbook.io/freepaths
Other
14 stars 4 forks source link

Separate post-run analysis #24

Open anufrievroman opened 7 months ago

anufrievroman commented 7 months ago

In the future, I plan to separate the running of the simulation from the analysis so that the analysis could be performed separately with many different parameters. This will free the config files from unnecessary options, and will allow creating pretty plots without rerunning the entire simulations. Example of things that could be redone after the simulation:

Most of this can be achieved just by user re-plotting things from raw data. I am not sure what would be the best way to do it? Create a separate command, or just provide a bunch of scripts for analysis, or keep all the settings in the config and allow rerunning freepaths without rerunning the simulation, like with --idle flag.

phigas commented 7 months ago

One challenge with this are the timeframes. The information is put into the timeframes at runtime and so it would be difficult to chantge the timeframes after the run. I propose to use a high number of timeframes during the run so that they can be summed together into different lenghts at the plotting stage. The TC calculation would then also fall into the plotting stage.

anufrievroman commented 7 months ago

Yes, that's precisely my current vision. Let's say we always have NUMBER_OF_TIMEFRAMES, which is supposed to be about 10 or so. And all profiles for each timeframe are saved. Then, we can do all: