trixi-framework / trixi-framework/TrixiParticles.jl
Plot quantities like pressure
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 83
- Forks
- 24
- Avg merge
- 8d 18h
- Merged PRs (30d)
- 3
Description
So far, we can only plot all particles of a system with a constant color in Plots.jl. The next step is to add different quantities.
Maybe something like
plot(sol, c=pressure)
where pressure is a function exported by TrixiParticles.jl? Idk if that is possible.
Or the way it is done in Trixi.jl. By default, you get a plot of all quantities:
Then, you can work with PlotData2D structs to plot a single quantity:
Since this is not trivial, and the API is not clear yet, I suggest we do this in 0.2. @LasNikas @svchb ?
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 by reviewing the existing Plots.jl integration and compare it with Trixi.jl's PlotData2D approach. Clarify how quantities such as pressure should be selected and whether an exported function can be passed through plot(sol, c=pressure). Done means the API supports plotting a selected quantity and has a clear default behavior for plotting all quantities.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- data-visualization
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100