-
Notifications
You must be signed in to change notification settings - Fork 114
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
Refactor pre-defined initial & boundary conditions from src/equations/ into examples/.../ #685
Comments
Good suggestion. We've already discussed this in #237. The consensus was to use the following rough guideline.
If |
Should we maybe add this to https://trixi-framework.github.io/Trixi.jl/stable/conventions/? |
It seems like almost every elixir in
...while there are dozens that use predefined ICs:
It seems as if the full grid of verification tests would be better-located in the |
That was discussed and decided in #569.
There are plans to make the examples more searchable (#610) and create tutorials (#204, #169) in the documentation. These tutorials would basically serve the purpose of pedagogical examples. We just need more time and people to work on these issue. There's always a tension between keeping code for a specific task in one place vs. avoiding code duplication. Based on #237 (comment), we might decide to move more "standard application" setups to the elixirs. For example, given your 1D list above, these could be
However, that would be a breaking change, so we need to be careful when deprecating stuff etc. |
We moved quite a lot of initial and boundary conditions to the elixirs in |
When creating a new simulation from scratch, I had to bounce between the
equations/
folder and theexamples/
folder to figure out the syntax for a new set of initial & boundary conditions. Ideally, the examples would be self-contained; from the user's point of view, there's nothing special aboutboundary_condition_two_interacting_blast_waves
, which is exported as part of Trixi's API - it's only useful in the context of the associated elixir in theexamples/.../
folder.TODO
initial_condition_weak_blast_wave
? → Keep it insrc
since it's really just an academic test case used for EC verificationTODO: ICs
The text was updated successfully, but these errors were encountered: