Skip to content

Commit 09a7eb6

Browse files
committed
Fixed Rayleigh number
1 parent 6f5b584 commit 09a7eb6

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

pySDC/implementations/problem_classes/RayleighBenard.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,10 @@ def __init__(
131131
self.Dz = S1 @ Dz
132132
self.Dzz = S2 @ Dzz
133133

134-
kappa = (Rayleigh * Prandtl) ** (-1 / 2.0)
135-
nu = (Rayleigh / Prandtl) ** (-1 / 2.0)
134+
# compute rescaled Rayleigh number to extract viscosity and thermal diffusivity
135+
Ra = Rayleigh / (abs(BCs['T_top'] - BCs['T_bottom']) * self.axes[1].L ** 3)
136+
kappa = (Ra * Prandtl) ** (-1 / 2.0)
137+
nu = (Ra / Prandtl) ** (-1 / 2.0)
136138

137139
# construct operators
138140
L_lhs = {

pySDC/projects/GPU/configs/RBC_configs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ def get_controller_params(self, *args, **kwargs):
385385
class RayleighBenard_large(RayleighBenardRegular):
386386
# res_per_plume = 256
387387
# vertical_res = 1024
388-
Ra = 2e7
388+
Ra = 3.2e8
389389
relaxation_steps = 5
390390

391391
def get_description(self, *args, **kwargs):

pySDC/projects/Resilience/RBC.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
import numpy as np
1616

17-
PROBLEM_PARAMS = {'Rayleigh': 2e4, 'nx': 256, 'nz': 128, 'max_cached_factorizations': 30}
17+
PROBLEM_PARAMS = {'Rayleigh': 3.2e5, 'nx': 256, 'nz': 128, 'max_cached_factorizations': 30}
1818

1919

2020
def u_exact(self, t, u_init=None, t_init=None, recompute=False, _t0=None):

0 commit comments

Comments
 (0)