
Enhancing Simulations with Validation Data in NVIDIA Modulus Sym
During my internship at AnK, one of the most interesting tasks I worked on was integrating validation
data into models built using NVIDIA Modulus Sym. This process was crucial for improving the accuracy
and performance of the simulations, and it taught me a lot about bridging commercial simulation software
with AI-model.
The Why and How of Validation
Validation data plays a vital role in ensuring that simulation results align with reality. NVIDIA Modulus
Sym provides a handy PointwiseValidator for this purpose, but the real challenge lies in extracting
accurate data from commercial solvers and formatting it for use in the model.
Diving into the Process
To demonstrate, I tackled two problems during my internship:
1. Simulating lid-driven cavity flow using OpenFOAM.
2. Solving a transient heat distribution problem on a 2D plate using Ansys.
Both problems required running simulations in their respective software, extracting results, and
integrating them into Modulus Sym.
Learning from the Challenges
Extracting data in .csv format was straightforward in OpenFOAM, thanks to ParaView's intuitive
interface. In Ansys, the process was slightly more complex but manageable. The real learning came when
I had to map these .csv files to Modulus Sym's input and output variables. I also had to align the origins
of the simulation data with the Modulus geometry, which involved some trial and error.
Here’s a snippet of the Python code I used: