Skip to content

convergence utility tools #165

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 6 commits into from
Apr 26, 2023

Conversation

zhichen3
Copy link
Collaborator

This pr makes convergence.py more general so that it takes any variable we want with the arbitrary multiplicative factor of resolutions apart between plot files. The default is still density and twice the resolution between the fine plot files and the coarse plot files.

convergence_plot.py allows users to give 3 or more output files which the corresponding resolution differs by a constant multiplicative constant.
The goal here is to duplicate the Richardson utility tool that we had in castro/amrex. It outputs the table that tells us the convergence rate as well as a plot.

I think this is different from what Simon had, since Simon had a routine comparing solutions to an analytical solution, whereas here I'm comparing the solution by averaging down a solution with higher resolution.

@zingale
Copy link
Collaborator

zingale commented Apr 24, 2023

can you add documentation on these tools here:
https://python-hydro.github.io/pyro2/analysis.html

@zingale zingale merged commit cc7d883 into python-hydro:main Apr 26, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants