Skip to content

Output global monitoring quantities to a csv file#300

Open
ia267 wants to merge 2 commits intoxcompact3d:mainfrom
ia267:295_global_monitoring_quantities
Open

Output global monitoring quantities to a csv file#300
ia267 wants to merge 2 commits intoxcompact3d:mainfrom
ia267:295_global_monitoring_quantities

Conversation

@ia267
Copy link
Copy Markdown
Collaborator

@ia267 ia267 commented Mar 31, 2026

This PR adds global monitoring output to a csv file so that some key quantities can be tracked during the simulation.

Change

  • add a new m_monitoring module that computes and writes:
    • time
    • enstrophy
    • kinetic energy
    • dissipation rate
    • maximum divergence
    • mean divergence
  • write these quantities to monitoring.csv on output steps (it will still print to stdout)
  • move the monitoring lifecycle into the base case so setup/finalisation is handled centrally
  • replace the per-case enstrophy/divergence print helpers in the case implementations with the shared monitoring writer
  • add user documentation for the new csv output, including column descriptions and a simple plotting example
  • move postprocess.f90 into src/postprocess/ and update CMake accordingly

Closes #295

@ia267 ia267 added this to the Enhancing IO functionality milestone Mar 31, 2026
@ia267 ia267 requested a review from kaanolgu March 31, 2026 21:05
@ia267 ia267 self-assigned this Mar 31, 2026
@ia267 ia267 added the enhancement New feature or request label Mar 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Write global monitoring quantities to file

1 participant