Skip to content

Commit b3fa85d

Browse files
committed
Reduced macroscopic verification plot size slightly
1 parent 51c77da commit b3fa85d

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

pySDC/projects/RayleighBenard/README.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,16 @@ The, just run
7575
python analysis_scripts/RBC3D_spectrum.py
7676
7777
to make the plot.
78+
79+
80+
Plotting macroscopic verification
81+
---------------------------------
82+
Macroscopic verification is done via comparison with data from https://doi.org/10.5281/zenodo.14205874.
83+
You need to download this reference dataset and copy it to `pySDC/projects/RayleighBenard/data/Nek5000`.
84+
Apart from that you need the pySDC simulation data prepared in the microscopic verification step.
85+
Then you simply run
86+
87+
.. code-block:: bash
88+
python analysis_scripts/compare_Nek5000.py
89+
90+
to make the plot.

pySDC/projects/RayleighBenard/analysis_scripts/compare_Nek5000.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,11 @@ def plot_T_rms_profile(ax): # pragma: no cover
159159
def plot_verification(): # pragma: no cover
160160
from pySDC.projects.RayleighBenard.analysis_scripts.plotting_utils import savefig, figsize
161161

162-
fig, axs = plt.subplots(1, 2, figsize=figsize(scale=1, ratio=0.5))
162+
fig, axs = plt.subplots(1, 2, figsize=figsize(scale=1, ratio=0.45))
163163
plot_Nu_scaling(axs[0])
164164
plot_T_profile(axs[1])
165+
for ax in axs:
166+
ax.set_box_aspect(1)
165167
fig.tight_layout()
166168
fig.savefig('plots/verification.pdf')
167169

0 commit comments

Comments
 (0)