LEX v1.6.0: نموذج محاكاة جديد للدوامات الكبيرة في JAX مع تسريع GPU والتفريق التلقائي
LEX v1.6.0: a new large-eddy simulation model in JAX with GPU acceleration and automatic differentiation

شارك:
المجلة: Geoscientific model development، المجلد: 19، العدد: 3
DOI: https://doi.org/10.5194/gmd-19-1103-2026
تاريخ النشر: 2026-02-03
المؤلف: Xingyu Zhu وآخرون
الموضوع الرئيسي: الظواهر الجوية والمحاكاة

نظرة عامة

تقدم البحث نموذج محاكاة كبير الدوامات (LES) جديد، LEX، تم تطويره باستخدام مكتبة JAX بايثون، بهدف معالجة تحديات معلمات الاضطراب على مقياس تحت الشبكة (SGS) في المنطقة الرمادية لنماذج الطقس العددية. مع اقتراب هذه النماذج من دقة مقياس الكيلومتر، تصبح مخططات المعلمات التقليدية غير كافية، مما يستلزم استخدام أساليب متقدمة. توضح الدراسة أنه بينما يكافح نموذج سماغورينسكي التقليدي لالتقاط ديناميات حالة الفقاعة الدافئة بدقة، فإن نموذج SGS المعتمد على التعلم العميق المدرب باستخدام مشفر تلقائي يحسن بشكل كبير من محاكاة توسع الفقاعة الحرارية وتطور الدوار المحيط عند دقة المنطقة الرمادية.

يتم التحقق من صحة LEX مقابل نموذج CM1 التقليدي، مما يظهر موثوقيته وكفاءته الحاسوبية، خاصة مع تسريع GPU، مما يسمح بإجراء محاكاة على مجالات كبيرة بسرعات قابلة للمقارنة مع تشغيل CM1 على 600 نواة CPU. على الرغم من أوقات التجميع الأطول المرتبطة بالنموذج الهجين، تصبح مزاياه واضحة خلال المحاكاة الممتدة. تم تصميم النموذج لتعزيزات مستقبلية، بما في ذلك دمج الفيزياء الدقيقة ومخططات الإشعاع، ويدعم الحوسبة المتوازية من خلال قدرات JAX. بشكل عام، يمثل LEX v1.6.0 تقدمًا واعدًا في نمذجة LES، مما يسهل تحسين معلمات SGS ويساهم في فهم أعمق لعمليات الاضطراب الجوي على المقياس الصغير.

مقدمة

تناقش مقدمة الورقة أهمية محاكاة كبير الدوامات (LES) في علم الأرصاد الجوية، لا سيما لتطوير معلمات الاضطراب على مقياس تحت الشبكة (SGS) في نماذج التنبؤ بالطقس العددي (NWP) ونماذج المناخ. تعتبر LES أداة مهمة في تعزيز فهم آليات تغذية السحب وتفاعلاتها مع اضطراب طبقة الحدود، والتي تعتبر حاسمة لحساسية المناخ. على الرغم من التقدم في الحوسبة الفائقة، لا يزال التنبؤ بالطقس التشغيلي باستخدام LES على مجالات كبيرة يمثل تحديًا، خاصة في “المنطقة الرمادية” حيث يتم حل الاضطراب والكونفكشن جزئيًا فقط. تعقد هذه المنطقة الرمادية تطبيق مخططات المعلمات التقليدية، مما يستلزم نماذج LES جديدة يمكنها معالجة هذه التعقيدات بفعالية.

تقدم الورقة LEX، وهو كود LES جديد سريع وقابل للاشتقاق تم تنفيذه بلغة بايثون باستخدام مكتبة JAX. يوفر LEX عدة مزايا، بما في ذلك الاستقرار العددي، والحساب السريع من خلال XLA (الجبر الخطي المعجل)، وعدم التحيز للمنصة، والقدرة على الاشتقاق التلقائي، مما يسهل دمج معلمات التعلم العميق (DL). تسلط المقدمة الضوء على إمكانيات LES القابلة للاشتقاق في تعزيز معلمات SGS، مع التأكيد على قدرتها على تحسين أداء النموذج ودقة التنبؤ من خلال أساليب الفيزياء الهجينة-DL. يحدد هيكل الورقة الأقسام اللاحقة التي تفصل الإعداد والتحقق والكفاءة الحاسوبية لـ LEX، بالإضافة إلى أداء نموذج ML المرتبط.

نقاش

في هذا القسم، يناقش المؤلفون تطوير والتحقق من نموذج LEX، الذي يستخدم معادلات مصفاة الموجات الصوتية لتدفق الطبقات القابلة للضغط، كما تم تأسيسه بواسطة دوران (2008). تتضمن المعادلات الحاكمة كثافة زائفة $\rho^*$ للقضاء على الموجات الصوتية مع ضمان الحفاظ على الكتلة. يتضمن النموذج درجة حرارة محتملة معدلة $\theta_\rho$ تأخذ في الاعتبار متغيرات الرطوبة، مما يمكّن من محاكاة الظروف الجوية الرطبة. يوضح المؤلفون الطرق العددية المستخدمة، بما في ذلك مخطط Runge-Kutta للحفاظ على الاستقرار القوي (SSPRK3) للتكامل الزمني ومخططات WENO (غير التذبذبية بشكل أساسي) لحل ميول النقل، مما يعزز الاستقرار العددي والدقة.

يتم التحقق من صحة LEX من خلال محاكاة عددية ثلاثية الأبعاد لحرارة صاعدة، مقارنة النتائج بمحاكاة عالية الدقة من نموذج السحاب 1 (CM1). تشير النتائج إلى أن LEX يعيد إنتاج اضطرابات درجة الحرارة المحتملة بدقة ويحافظ على معاملات ارتباط عالية وأخطاء مربعة متوسطة منخفضة عبر ظروف ابتدائية متنوعة. علاوة على ذلك، يقدم المؤلفون نموذج تعلم عميق (DL) لتحديد معلمات العمليات على مقياس تحت الشبكة (SGS)، موضحين فعاليته في تصحيح الميول وتحسين نتائج المحاكاة مقارنة بالطرق التقليدية مثل مخطط سماغورينسكي. يظهر نموذج DL وعدًا في التقاط ديناميات الاضطراب بدقة في المنطقة الرمادية، مما يبرز إمكانيته كبديل قوي لتحديد معلمات SGS في نمذجة الغلاف الجوي.

Journal: Geoscientific model development, Volume: 19, Issue: 3
DOI: https://doi.org/10.5194/gmd-19-1103-2026
Publication Date: 2026-02-03
Author(s): Xingyu Zhu et al.
Primary Topic: Meteorological Phenomena and Simulations

Overview

The research presents a novel large-eddy simulation (LES) model, LEX, developed using the JAX Python library, aimed at addressing the challenges of subgrid-scale (SGS) turbulence parameterization in the gray zone of numerical weather models. As these models approach kilometer-scale resolution, traditional parameterization schemes become inadequate, necessitating advanced approaches. The study demonstrates that while the conventional Smagorinsky model struggles to accurately capture the dynamics of a warm bubble case, a deep learning-based SGS model trained using an autoencoder significantly improves the simulation of thermal bubble expansion and surrounding rotor development at gray-zone resolutions.

LEX is validated against the traditional CM1 model, showcasing its reliability and computational efficiency, particularly with GPU acceleration, allowing simulations on large domains at speeds comparable to running CM1 on 600 CPU cores. Despite the longer compilation times associated with the hybrid model, its advantages become pronounced during extended simulations. The model is designed for future enhancements, including the integration of microphysics and radiation schemes, and supports parallel computing through JAX’s capabilities. Overall, LEX v1.6.0 represents a promising advancement in LES modeling, facilitating improved SGS parameterizations and contributing to a deeper understanding of small-scale atmospheric turbulence processes.

Introduction

The introduction of the paper discusses the significance of large-eddy simulation (LES) in atmospheric science, particularly for developing subgrid-scale (SGS) turbulence parameterizations in numerical weather prediction (NWP) and climate models. LES is instrumental in enhancing the understanding of cloud feedback mechanisms and their interactions with boundary layer turbulence, which are crucial for climate sensitivity. Despite advancements in supercomputing, operational NWP using LES on large domains remains challenging, particularly in the “gray zone” where turbulence and convection are only partially resolved. This gray zone complicates the application of conventional parameterization schemes, necessitating new LES models that can effectively address these complexities.

The paper introduces LEX, a new fast and differentiable LES code implemented in Python using the JAX library. LEX offers several advantages, including numerical stability, rapid computation through XLA (accelerated linear algebra), platform agnosticism, and auto-differentiability, which facilitates the integration of deep learning (DL) parameterizations. The introduction highlights the potential of differentiable LES for advancing SGS parameterizations, emphasizing its capability to improve model performance and forecast accuracy through hybrid physics-DL approaches. The structure of the paper outlines subsequent sections that detail the setup, validation, and computational efficiency of LEX, as well as the performance of the associated ML model.

Discussion

In this section, the authors discuss the development and validation of the LEX model, which utilizes acoustic-wave-filtered equations for compressible stratified flow, as established by Durran (2008). The governing equations incorporate a pseudodensity $\rho^*$ to eliminate sound waves while ensuring mass conservation. The model includes a modified potential temperature $\theta_\rho$ that accounts for moisture variables, enabling the simulation of moist atmospheric conditions. The authors detail the numerical methods employed, including the Strong Stability-Preserving Runge-Kutta (SSPRK3) scheme for time integration and the Weighted Essentially Non-Oscillatory (WENO) schemes for solving advection tendencies, which enhance numerical stability and accuracy.

Validation of LEX is performed through three-dimensional numerical simulations of a rising thermal, comparing results against high-fidelity simulations from the Cloud Model 1 (CM1). The findings indicate that LEX accurately reproduces potential temperature perturbations and maintains high correlation coefficients and low mean squared errors across various initial conditions. Furthermore, the authors introduce a deep learning (DL) model to parameterize subgrid-scale (SGS) processes, demonstrating its effectiveness in correcting tendencies and improving simulation outcomes compared to traditional methods like the Smagorinsky scheme. The DL model shows promise in accurately capturing the dynamics of turbulence in the gray zone, highlighting its potential as a robust alternative for SGS parameterization in atmospheric modeling.