Skip to content
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

Plot quantities like pressure #400

Open
efaulhaber opened this issue Feb 27, 2024 · 2 comments
Open

Plot quantities like pressure #400

efaulhaber opened this issue Feb 27, 2024 · 2 comments

Comments

@efaulhaber
Copy link
Member

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 ?

@efaulhaber efaulhaber added this to the 0.2 milestone Feb 27, 2024
@efaulhaber
Copy link
Member Author

The following would be easy to implement, but not very flexible/modular in the long run:

plot(sol, quantity=:pressure)

Then we only support a fixed set of quantities, and it's not clear what happens in multiphysics simulations when we have different systems. But at least we have a (very experimental) way to easily plot pressure, density and so on.

@LasNikas
Copy link
Collaborator

I'm fine with doing this in 0.2. IMO, plotting of quantities is usually done in paraview.

@efaulhaber efaulhaber removed this from the 0.2 milestone Mar 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants