Skip to content

Conversation

@connor-powers
Copy link
Owner

Context

I wanted to add support for saving data from simulations to data files as well as 2D and 3D plotting from data files.

Changes

  • Added function to run simulations and save data to data files
  • Added 2D and 3D plotting functions that pull from saved data files
  • Added usage examples of this functionality to example project
  • Added rotational kinetic energy to total energy calculation
  • Added some tests related to this new functionality

Testing

Needs to pass existing and new tests.

Added function to write simulation data to files
Added functions to make 2D and 3D plots from data files
Added examples of those functionalities to simulation_setup file
Committing sim profiling code I made earlier
Moving total energy calculation implementation to src file and adding rotational kinetic energy
Added small y-direction gnuplot offsets to 2D plots to avoid data being right on the bottom or top edges of plots
Removed pause commands from 2D plot (/sim+plot) function calls
Added some tests relating to saving data files and plotting from data files
Reran test coverage script
Taking the code profiling file out of the example file
@connor-powers connor-powers self-assigned this May 28, 2025
Removing lines related to code profiling from CMakeLists.txt
@connor-powers
Copy link
Owner Author

Also added small vertical offset to 2D sim+vis functions to try to prevent data from being plotted directly on bottom or top of graph

@connor-powers connor-powers merged commit 2de124a into main May 28, 2025
1 check passed
@connor-powers connor-powers deleted the dev branch May 28, 2025 04:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants