[PyWrapper] Added hybrid PyTorch-SU2 coupling example#71
[PyWrapper] Added hybrid PyTorch-SU2 coupling example#71ayush4874 wants to merge 3 commits intosu2code:masterfrom
Conversation
|
Hi @bigfooted, I've successfully migrated the tutorial files here and opened the corresponding documentation PR in the website repo (su2code/su2code.github.io#189). Regarding the regression test: I am ready to implement this, but I have a technical concern. This tutorial depends on Should I:
I’m available to implement whichever path you prefer before the holiday break. Thanks! |
|
Let's not add pytorch to the regression test, it is very large and will increase the size of the docker container by a lot. |
|
Thanks for the feedback @bigfooted. That makes sense, adding the full PyTorch dependency to the regression test environment significantly increases the container size for a single tutorial. Plan:
I'll push these updates shortly. |
|
@bigfooted it's ready for review, can you have a look? |
This PR adds a standalone example demonstrating how to couple SU2 with PyTorch using the Python Wrapper.
Files:
train_online.py: Driver script for bidirectional coupling.inv_NACA0012.cfg: Configuration file.mesh_NACA0012_inv.su2: Mesh file.Context:
Migrated from su2code/SU2#2638 and the tracking issue su2code/SU2#2637 as per discussion with @bigfooted.
This example serves as a reference for users implementing online surrogate modeling or PIML workflows.