WE ARE TOGETHER !

Friday, February 16, 2018

Use of programming tool - python in Ls Dyna postprocessing activities | Computer Aided Engineering

Use of programming tool - python in Ls Dyna postprocessing | Computer Aided Engineering| 

Hello friends, In this post, I will show you how you can use data science to explore or to generate more data while lsdyna post-processing of computer-aided engineering because it is a general definition that, more data means more information, more clarity & it is easy for interpolation, prediction & helps to reach a final decision while going through optimization work or any developments process.

Lsdyna python automation
Use of python in crash & safety. 

So, before going towards details of data science & implementation of it into finite element analysis, I hope you have a background in python programming & know lsdyna software generally used for crash analysis, drop analysis, etc.

And, I hope, you are aware of the output file of lsdyna, which is matsum which shows us energy absorbed by components while crashing. In simple words internal energy vs. time graph for a particular component.

It’s no big deal to open it into hyperview or meta post-processor & check output energies but wait.

If you want to go one step up so this blog is for you. So, let’s start & read carefully.

Below I have given a sample python program that reads the matsum file & puts out all PID contained in the matsum file. I know it looks too easy & might be useless at this moment, but This is an initial-level program. In my upcoming post, I will try to go into detail & explore this topic more & more in advance.


Sample Code: Python 

Output:

Description - I opened a matsum file in notepad and saved it as a .txt extension. Then paste this file into pycharm IDE & after that use this code to print all part IDs contained in the deck. 

 

In upcoming posts, I will show you how you can use different libraries of python to explore more and more finite element analysis. Also, I will show how you can generate your own application with the help of python for your work with Tkinter. 

 

Conclusion:

 
We got a basic overview of how we can use data science in the mechanical sector, especially computer-aided engineering to explore more and more about data generation. I aim to push mechanical engineers toward data science. Here I gave a start and it totally depends on you, how can you use data science for the welfare of mechanical society. In the end, I will show you how to plot graphs of the Matsum file of lsdyna through the use of the matplotlib library & as well as how to compare two matsum files in a single click with the generation of all graphs contained inside it. Thank you. 




No comments:

Post a Comment

Thank you !