Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

plot analytic solution in the plotting script for thermal diffusion unit test #3041

Merged
merged 6 commits into from
Mar 5, 2025

Conversation

zhichen3
Copy link
Collaborator

@zhichen3 zhichen3 commented Mar 4, 2025

PR summary

plot analytic solution in profile analysis.

PR motivation

PR checklist

  • test suite needs to be run on this PR
  • this PR will change answers in the test suite to more than roundoff level
  • all newly-added functions have docstrings as per the coding conventions
  • the CHANGES file has been updated, if appropriate
  • if appropriate, this change is described in the docs

@@ -22,6 +22,30 @@ def rgba_to_hex(rgba):
b = int(rgba[2]*255.0)
return '#{:02X}{:02X}{:02X}'.format(r, g, b)

def get_analytic_profile(x_coord, time, problo, probhi,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the analytic solution is a derived variable for this problem, so can't we just read it from the plotfile?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yah, you're right. Didn't realize about that.

@zingale zingale merged commit 21fb297 into AMReX-Astro:development Mar 5, 2025
26 checks passed
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