trixi-framework / trixi-framework/TrixiParticles.jl

Plot quantities like pressure

Open
#400 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

visualization
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:
grafik
Then, you can work with PlotData2D structs to plot a single quantity:
grafik

Since this is not trivial, and the API is not clear yet, I suggest we do this in 0.2. @LasNikas @svchb ?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.