trixi-framework / trixi-framework/Trixi.jl
Converting StructuredMesh to uniform grid
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 731
- Forks
- 167
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 25
Description
I am conducting a comparison between Trixi.jl and an analytical solution for a simple 2D advection problem.
I have succesfully ran _examples/structured_2d_dgsem/elixir_advection_basic.jl_ and obtained the solution file. However when reading the file I obtain 16 times more values than expected(4096 instead of 256). I am assuming the factor of 16 comes from the argument polydeg=3 in DGSEM solver.
How would I go about converting the resulting vector of 4096 values into a 16x16 grid for my comparison?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with examples/structured_2d_dgsem/elixir_advection_basic.jl and inspect how the solution file is written and read. Check how polydeg=3 accounts for the 4096 values, then determine how those values should be represented as a 16x16 grid for comparison with the analytical advection solution. Done means documenting or demonstrating the conversion clearly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- data
- Issue type
- Documentation
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100