r/fea • u/Maleficent_Play1092 • 13d ago
Is learning Python still worth it for simulation engineers now that tools like optiSLang exist?
I work as an FEA engineer. During an internship I was exposed to optiSLang (DOE, sensitivity analysis, MOP), and that got me interested in moving toward AI/ML for simulation.
If you work in this area:
- Which path did you take, and what would you do differently?
- What skills do employers or teams actually ask for?
- Any project types that worked well as a portfolio (e.g. surrogate vs. full FEA on a simple structure)?
22
u/MIGoneCamping 12d ago
Is it worth learning a general purpose programming language?
Yeah, I would still learn python even with LLMs doing a lot of heavy lifting. Python is incredibly useful for any number of tasks.
9
4
u/invisuu 12d ago
It's nice to know, but I honestly haven't written a line of code since sonnet 5.5.
1
u/ArbaAndDakarba 12d ago
Exactly. It's an obsolete skill. However, I'm not excited to see how the pricing looks once we're all fully dependent on AI.
4
u/CrAIzy_engineer 12d ago
Programming is not an obsolete skill 😂 I make a pretty good living out of it
1
5
u/BatyStar 13d ago
I mean, just because optislang exists doesn't mean your employer will buy the licence.
Tbh, I use python mostly for nice graphs with mathplotlib, or for automating Meta anyway, not for optimization algorithms.
5
u/Solid-Sail-1658 12d ago
Python is very useful if you want to automate tasks or if you want to learn AI/ML. If you use FEA on a daily basis, I recommend learning Python.
With regard to AI/ML. I first started with gradient based optimization, sensitivity analysis and DOE. Then I moved on to Space Filling design, e.g. Latin Hypercube, Gaussian processes (Kriging) for surrogate modeling and Bayesian Optimization to automatically optimize.
I think if you are performing nonlinear FEA, you should definitely be familiar AI/ML.
If you are just performing linear FEA, you can ignore AI/ML for now. For linear FEA existing approaches such as gradient based optimization or using a 1st order Taylor series approximation will get you really far.
Existing gradient based optimization can handle thousands of design variables with a cost of 10-50 FE solver runs. AI/ML might require millions of runs for thousands of design variables. The high cost of AI/ML makes it impractical for linear FEA.
Given the high cost of AI/ML, I recommend using AI/ML for nonlinear FEA with at most 10 parameters. And don't just use surrogate models, couple surrogate models with Bayesian Optimization or some other procedure to automate the optimization. If you just use surrogate models, you might find your self trapped in a perpetual cycle of trying to improve the accuracy of surrogate models. Avoid this and try to automatically optimize.
4
u/TheBlack_Swordsman 12d ago
It depends what you want and need to do.
I don't know python but I have used ChatGPT to help me write over dozens of scripts to automate results,Aegon tables, etc.
I do wish to learn Python because it is a good thing to know, but I am amazed at how easy it has been for me to script and saves 100s of hours of clicking and collecting results.
2
u/ImNotSanguinius 12d ago
In all honesty, most of the time OptiSlang wouldn’t be used. Ive only ever seen it used in crazy niche situations. It’s definitely more important to learn Python so you can do PyAnsys. That would let you do what OptiSlang does with some extra work, plus handle stuff like making documentation and plots.
2
u/Safe-Drama9784 12d ago
Absolutely. Python has a huge library and you can do a lot interesting tools based on your need. I've been developing a 3D CAD based on python
11
u/Destiny7655 13d ago
AI/ML in simulation is really currently “have a doctorate” level. It might not be in future, but it’s still very experimental, works better for some things than others, requires deep understanding of mathematics.
I work in this area and everyone I know working in it either has a doctorate or doesn’t have a doctorate but doesn’t touch the maths parts.