-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5a0e522
commit a7220a7
Showing
8 changed files
with
90 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
# 2D Rayleigh Benard Convection | ||
|
||
This example problem is lifted directly from the dedalus repository. The types of plots you can make with plotpal are shown below: | ||
|
||
# 2D slices | ||
|
||
Plotpal can plot movies of 2D slices including multiple frames, using e.g., | ||
|
||
```sh | ||
python3 plot_all_slices.py | ||
``` | ||
|
||
Producing images like this one: | ||
|
||
![Lots of slices](./example_figs/frames_000190.png) | ||
|
||
Plotpal can also just do a movie of a single field if you want something less cluttered: | ||
|
||
```sh | ||
python3 plot_b_slices.py | ||
``` | ||
|
||
Producing images like this one: | ||
|
||
![A buoyancy slice](./example_figs/b_frames_000190.png) | ||
|
||
# 1D Profiles | ||
|
||
Plotpal can plot instantaneous 1D profiles from dedalus simulations: | ||
|
||
```sh | ||
python3 plot_instantaneous_profiles.py | ||
``` | ||
|
||
Producing images like this one: | ||
|
||
![A profile from a single Dedalus output](./example_figs/instantaneous_profiles_000190.png) | ||
|
||
Plotpal can also plot a rolling average of profiles: | ||
|
||
```sh | ||
python3 plot_rolled_profiles.py | ||
``` | ||
|
||
Producing less jittery images like this one: | ||
|
||
![A profile averaged over multiple outputs](./example_figs/rolled_profiles_000190.png) | ||
|
||
# PDFs | ||
|
||
Plotpal can plot the PDFs of 2D flow fields: | ||
|
||
```sh | ||
python3 plot_b_pdf.py | ||
``` | ||
|
||
Producing an image like this one: | ||
|
||
![a PDF of the buoyancy field](./example_figs/b_pdf.png) | ||
|
||
# Scalar Traces | ||
|
||
Plotpal can plot the evolution over time of scalar outputs: | ||
|
||
```sh | ||
python3 plot_scalar_traces.py | ||
``` | ||
|
||
Producing images like the one below: | ||
|
||
![A trace of Nu and Re](./plot_scalar_traces.py) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters