-
Notifications
You must be signed in to change notification settings - Fork 910
Open
Description
Problem Description
The current Python Wrapper examples primarily focus on shape optimization (FADO) or basic fluid driver execution. However, with the growing interest in Physics-Informed Machine Learning (PIML) and the integration of MLPCpp, there are no clear examples demonstrating how to couple the SU2 solver with external ML libraries (like PyTorch) in a single process.
Users currently have to guess how to extract field variables (e.g., RMS_DENSITY) from memory and pass them to a training loop in real-time.
Proposed Solution
I propose adding a dedicated example directory SU2_PY/examples/hybrid_ml_coupling/ containing a script that demonstrates:
- Initializing the
CSinglezoneDriverwithmpi4py. - Running a time-stepping loop where the solver runs alongside a lightweight surrogate model.
- Extracting flow data from memory (using
GetOutputValue) to train the model online.
I have prototyped a working script using PyTorch and would like to submit a PR to add this to the documentation/examples.
Metadata
Metadata
Assignees
Labels
No labels