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

revert to first-order space+time flux when RK2 flux fails #221

Merged
merged 22 commits into from
Sep 12, 2023

Conversation

BenWibking
Copy link
Collaborator

@BenWibking BenWibking commented Dec 27, 2022

This improves the first-order flux correction so that it reverts to forward Euler with a donor cell flux (i.e., Godunov's method) for cells that produce negative densities with the RK2+PPM/PLM update. This replaces the fluxes surrounding problem cells, so that the overall method remains conservative.

This causes a tiny difference in the output of the HydroHighMach test. The solution looks no better or worse than before by eye, but the error tolerance is just slightly too stringent for it to pass, so it's updated here.

Fixes #218.

@BenWibking
Copy link
Collaborator Author

/azp run

@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

1 similar comment
@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@BenWibking
Copy link
Collaborator Author

/azp run

@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@BenWibking
Copy link
Collaborator Author

/azp run

@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

1 similar comment
@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@github-actions
Copy link
Contributor

github-actions bot commented Jan 2, 2023

clang-tidy review says "All clean, LGTM! 👍"

@github-actions
Copy link
Contributor

github-actions bot commented Jan 2, 2023

clang-tidy review says "All clean, LGTM! 👍"

@BenWibking
Copy link
Collaborator Author

/azp run

@github-actions
Copy link
Contributor

github-actions bot commented Jan 4, 2023

clang-tidy review says "All clean, LGTM! 👍"

@BenWibking
Copy link
Collaborator Author

/azp run

markkrumholz
markkrumholz previously approved these changes Jan 31, 2023
@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@github-actions
Copy link
Contributor

github-actions bot commented Feb 1, 2023

clang-tidy review says "All clean, LGTM! 👍"

@github-actions
Copy link
Contributor

github-actions bot commented Feb 8, 2023

clang-tidy review says "All clean, LGTM! 👍"

@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@BenWibking BenWibking changed the title revert to first-order space+time flux when RK2 flux fails [WIP] revert to first-order space+time flux when RK2 flux fails May 5, 2023
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

clang-tidy made some suggestions

src/RadhydroSimulation.hpp Outdated Show resolved Hide resolved
src/RadhydroSimulation.hpp Outdated Show resolved Hide resolved
BenWibking and others added 3 commits August 14, 2023 13:54
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@BenWibking
Copy link
Collaborator Author

/azp run

@BenWibking
Copy link
Collaborator Author

/azp run

@BenWibking BenWibking marked this pull request as ready for review September 12, 2023 00:35
@BenWibking BenWibking changed the title [WIP] revert to first-order space+time flux when RK2 flux fails revert to first-order space+time flux when RK2 flux fails Sep 12, 2023
@BenWibking
Copy link
Collaborator Author

@markkrumholz here's the first FOFC fix. The boundary box consistency will go in the next PR.

@BenWibking
Copy link
Collaborator Author

@markkrumholz All tests now pass. Please review at your convenience.

@markkrumholz markkrumholz added this pull request to the merge queue Sep 12, 2023
Merged via the queue into development with commit 6b0e0c8 Sep 12, 2023
8 checks passed
@BenWibking BenWibking deleted the fofc-llf branch September 12, 2023 14:45
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.

first-order flux correction should revert to forward Euler
2 participants