Skip to content

Commit a505828

Browse files
committed
Auto-sync: 2026-02-14T03:42:31.217Z
1 parent b2abcb5 commit a505828

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

content/gfd/_index.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -573,11 +573,13 @@ sections:
573573
if (currentModel === 'rayleigh-benard') {
574574
const Ra = params.rayleighNumber;
575575
const Pr = params.prandtlNumber;
576-
const nu = Math.sqrt(Pr / Ra) * 0.1;
576+
// Fix nu to give stable tau_f ≈ 0.8, derive kappa and g_beta from Ra, Pr
577+
const nu = 0.1;
577578
const kappa = nu / Pr;
578-
const tau_f = 3 * nu + 0.5;
579+
const tau_f = 3 * nu + 0.5; // 0.8
579580
const tau_g = 3 * kappa + 0.5;
580-
const g_beta = Ra * nu * kappa / (LBM_NY * LBM_NY * LBM_NY);
581+
const H = LBM_NY;
582+
const g_beta = Ra * nu * kappa / (H * H * H);
581583
const steps = Math.round(params.stepsPerFrame);
582584
for (let s = 0; s < steps; s++) {
583585
lbmStep(tau_f, tau_g, g_beta);

0 commit comments

Comments
 (0)