r/CFD • u/Slow_Hovercraft_5103 • Nov 22 '25
Need clarification: CFD or PINN
I'm currently in my 4th year B.Tech... I'm interested in CFD using ANSYS for like 2 years....
then I came to that New Concept called PINN, a Neural Network model... that has potential.
So... Help me with this please
should i learn C++ for CFD or Python for PINN
10
Upvotes
13
u/thermalnuclear Nov 22 '25
Learn CFD, PINN is an advanced topic and extremely limited.
7
u/Yashayy Nov 22 '25
Why do you have to choose? Learn both I would suggest doing CFD first, then move on to PINNS. You would understand PINNS better that way, although this will take time as both are an entire field. I'm not sure about your goals tho, you're in your 4th year so ig you only have time to learn the basics of 1 thing if you're looking for a job after undergrad. .
3
u/BreathKindlyPlease Nov 22 '25
Like people have mentioned, you need to learn the fundamentals of CFD to do any of those two things. So I would just start from there.
Honestly, I was in your shoes too. Using a commercial software is just one part of the whole CFD domain.
So, I would say how good is your theoretical understanding of the physics, numerical methods, and CFD in general? Once you are comfortable with that, then you can move to Pins.
2
u/aero_r17 Nov 22 '25
You need Python for ANSYS too. And likely all sorts of other prototyping / scripting / glue code stuff in this field.
So learning python should be done regardless, agnostic of the decision of CFD or PINNs in my opinion.
1
u/aeropl3b Nov 23 '25
Regardless learn python. Python is very nice for doing pre/post processing automation and analysis.
PINNs are a passing fad imo, they are interesting right now because of AI hype. But the real advancements are going to come from better modeling of the fluid domain. DG, LB boundary conditions, faster AMR, etc.
C++ is an advanced topic imo. I would recommend taking some basic programming courses first to build an understanding of programming and build from there.
Why is C++ advanced? You need to deal with memory management, compilers, debuggers, etc. Software/system design is also important when approaching C++ for CFD, although not necessarily initially.
1
u/Impossible-Jello2749 Sep 06 '26
Hi, I built PINNStudio, a no-code GUI for setting up and training PINNs — built on DeepXDE. Handles both forward and inverse PDE problems; no deep learning background needed. It's open source; check it out if you're interested: https://github.com/AsfandyarKhan72/PINNStudio
1
u/Matteo_ElCartel Nov 23 '25
C++ for openFoam, Python for PINNs, Ansys is a closed solver you won't be able to export matrices therefore no pytorch/Tensorflow -> no PINNS
you need another master, forget surrogate modelling with a pure bio tech background, you must hybridise it with a lot of computational mathematics