-
Notifications
You must be signed in to change notification settings - Fork 115
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
Reorganize elixir files #569
Comments
I definitely agree with you that it's becoming quite messy... Thanks for opening this issue and making some good suggestions! Here are some of my thoughts.
|
Thank you @erik-f for bringing this up! As @ranocha pointed out, this is a non-trivial issue since everyone can have an opinion (high risk of bikeshedding) and everyone has a slightly different perspective on this. Thus, also some thoughts from my side:
|
The main thing that annoyed me was searching for structured/curved elixirs in the bulk of Euler tests. So, if we create a folder for each equation, I'd suggest file names like Otherwise, I'd suggest creating a folder for each mesh type and keeping the file names as they are. |
Hah, and so the division on opinions begins! |
Let's try to think about some (likely to be) common scenarios. For example:
For this user, it would probably be most helpful if they could browse the existing elixirs by Another scenario:
This user likely does not care much either way, but since we do not have truly different solvers at the moment, they probably best served by browsing by Thus, it's 2:0 for @erik-f 's suggestion to go by mesh instead of equations. However, I still feel like Now, are there other typical workflows that I missed that could tilt this in a different direction? |
Well, if I were your first user, I would know that I want to simulation the MHD equations but I don't really care about the mesh - it should just work, that's what I am interested in. But I'm fine either way - we should discuss it at the next Trixi meeting and just pick whatever the majority of people likes. |
After today's discussion, I put forward the following initial concrete proposal for renaming the directories:
Open questions:
|
I prefer using the same character |
Sounds reasonable to me. |
I agree with this name change as well. It leaves room for the natural growth of the unstructured solver to 3d instead of having a new mesh type called This naming convention would also allow the triangular mesh elixirs to live in the |
We should also include the basic solver type if we want to extend Trixi, e.g.
|
The
examples
folder is starting to become a bit messy. There are too many files in a single folder (especially in 2D), and it's hard to find the elixirs you're looking for. Also, it's not always clear what the purpose of a specific example file is by the name, and sometimes not even by looking into it (we may have contributed our part there).I created this issue to discuss new ways to organize example files.
Suggestions we have so far to organize and clean up the examples:
tree-mesh
,structured-curved-mesh
,unstructured-quad-mesh
,paper-self-gravitating-gas-dynamics
and create folders[123]d
inside (because quad mesh and self gravitating gas dynamics only have 2d examples).elixir_advection_amr_refine_twice
).Depending on the philosophy, this could be combined with the suggestion above to only have two folders “testing examples” and “introductory examples”.
elixir_file
as variable that can be replaced with kwargs oftrixi_include
. Maybe there's even a way to extract the number of time steps of the first simulation, so that the elixir can find the correct restart file automatically.The text was updated successfully, but these errors were encountered: