Skip to main content
QUICK REVIEW

[Paper Review] MyCrunchGPT: A chatGPT assisted framework for scientific machine learning

Varun Kumar, Leonard Gleyzer|arXiv (Cornell University)|Jun 27, 2023
Lattice Boltzmann Simulation StudiesEngineering5 citations
TL;DR

MyCrunchGPT is a ChatGPT-powered framework that automates scientific machine learning (SciML) workflows in computational mechanics by orchestrating end-to-end tasks like airfoil design optimization and physics-informed neural network (PINN) simulation through natural language prompts. It integrates surrogate modeling (DeepONet), CFD validation, and interactive code generation, achieving high-fidelity results with minimal user input and enabling rapid prototyping for fluid dynamics and future applications in solid mechanics and materials science.

ABSTRACT

Scientific Machine Learning (SciML) has advanced recently across many different areas in computational science and engineering. The objective is to integrate data and physics seamlessly without the need of employing elaborate and computationally taxing data assimilation schemes. However, preprocessing, problem formulation, code generation, postprocessing and analysis are still time consuming and may prevent SciML from wide applicability in industrial applications and in digital twin frameworks. Here, we integrate the various stages of SciML under the umbrella of ChatGPT, to formulate MyCrunchGPT, which plays the role of a conductor orchestrating the entire workflow of SciML based on simple prompts by the user. Specifically, we present two examples that demonstrate the potential use of MyCrunchGPT in optimizing airfoils in aerodynamics, and in obtaining flow fields in various geometries in interactive mode, with emphasis on the validation stage. To demonstrate the flow of the MyCrunchGPT, and create an infrastructure that can facilitate a broader vision, we built a webapp based guided user interface, that includes options for a comprehensive summary report. The overall objective is to extend MyCrunchGPT to handle diverse problems in computational mechanics, design, optimization and controls, and general scientific computing tasks involved in SciML, hence using it as a research assistant tool but also as an educational tool. While here the examples focus in fluid mechanics, future versions will target solid mechanics and materials science, geophysics, systems biology and bioinformatics.

Motivation & Objective

  • To streamline time-consuming stages of scientific machine learning—such as preprocessing, code generation, and postprocessing—by integrating them into a single LLM-driven interface.
  • To enable non-expert users to perform complex SciML tasks, including 2D NACA airfoil optimization and PINN-based flow simulations, via simple natural language prompts.
  • To develop a web-based GUI that supports interactive, guided workflows with real-time logging, visualization, and automated report generation.
  • To validate MyCrunchGPT’s outputs against high-fidelity CFD solvers (e.g., Nektar++) and published literature, ensuring accuracy and reliability.
  • To extend the framework to future domains such as solid mechanics, materials science, geophysics, and systems biology through modular integration of neural operators and PINN variants.

Proposed method

  • MyCrunchGPT uses a large language model (ChatGPT) as a central orchestrator to interpret user prompts and dynamically invoke backend functions for design, simulation, and analysis.
  • For airfoil optimization, it generates NACA 2D airfoil geometries based on user-defined camber (m) and position (p), using parametric equations and DeepONet as a surrogate model trained on CFD data.
  • The framework employs DeepONet to predict flow fields around new airfoil designs, enabling fast evaluation without full CFD re-simulation.
  • For fluid mechanics, MyCrunchGPT generates and trains PINNs to solve the Navier-Stokes equations for benchmark problems like lid-driven cavity flow, with automatic hyperparameter tuning and visualization.
  • A webapp GUI enables real-time interaction, log tracking, figure rendering, and exportable summary reports that include comparisons to CFD and literature benchmarks.
  • The system supports iterative refinement through prompting, including requests for validation, uncertainty quantification, and multimodal solution interpretation, with plans to extend to distributed computation and advanced neural operators.

Experimental results

Research questions

  • RQ1Can a large language model like ChatGPT be effectively used to automate and orchestrate end-to-end scientific machine learning workflows in computational fluid dynamics?
  • RQ2To what extent can a LLM-powered assistant generate accurate, validated, and reproducible results in airfoil design and flow simulation using surrogate models and PINNs?
  • RQ3How can natural language prompting be leveraged to dynamically modify simulation parameters, geometry, and hyperparameters in a physics-informed deep learning pipeline?
  • RQ4Can the integration of LLMs with scientific computing tools reduce the barrier to entry for non-experts in computational mechanics and accelerate research and design cycles?
  • RQ5What are the key technical and architectural challenges in building a scalable, interactive, and auditable LLM-based research assistant for scientific computing?

Key findings

  • MyCrunchGPT successfully generated optimized 2D NACA airfoils with improved lift-to-drag ratios by automating the design, surrogate evaluation, and optimization pipeline using DeepONet predictions.
  • The DeepONet-predicted flow fields for optimized airfoils showed small absolute errors (on the order of 10^-3 to 10^-4) when compared to high-fidelity CFD results from Nektar++.
  • The PINN-based simulation of the lid-driven cavity flow achieved high accuracy, with solutions closely matching direct numerical simulation (DNS) data and published benchmarks.
  • Users could interactively modify problem geometry, training hyperparameters, and request visualizations and validation checks through simple text prompts, demonstrating the system’s adaptability.
  • The webapp GUI enabled real-time logging, figure rendering, and automated report generation, including comparative summaries of results against CFD and literature.
  • The framework demonstrated feasibility for extension to other domains, with plans to incorporate advanced neural operators (FNO, WNO, ViTO) and probabilistic design methods in future versions.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.