First of all thank you all for your contributions to open source FEM .
If you need to get:
Undeformed node locations
Nodal Displacements
Nodal Stress Tensor
Nodal Strain Tensor
Nodal Forces
to work with, so you can use these python code to extract them from .frd result file and also export as .csv with the same results file name.
***I’m new around here and also on GitHub. Please don’t hesitate to warn me if I make a mistake regarding opening a topic or any rule. I apologize in advance. ***
getResultsFromFRD.py : Extract Results from PrePoMax/CalculiX
What this code does?
This script helps you to extract and export nodal results from PrePoMax or CalculiX.
Usage Instructions is Not Needed Actually But..
Generate Result File
After running a simulation with PrePoMax or CalculiX, a result file (result.frd) will be generated.
Set the File Path
Provide the path to the .frd file in the Python script @line#3 ----> frd_file_path = "C:\\Users\\RESULT_FILE.frd"
Run the Script
When you execute the Python code, it will automatically compile nodal results into a pandas DataFrame named “df_results” and also export to .frd file path as .csv with same name.
Extractable Data
The following data can be extracted from the result file (RESULT.frd) and processed as a pandas DataFrame:
Undeformed node coordinates
Nodal deformations
Nodal stress tensor components
Nodal strain tensor components
Nodal forces
If you encounter anything unexpected or have any suggestions, please don’t hesitate to reach out to me.
You can do this using PrePoMax. First prepare the history output for the data you need and then use Results → History Output → Export to save the data in a .csv file.
I have been using the feature you mentioned while running 1 or 2 analysis also. But it is not feasable when you run 5-10 or more analysis especially for optimization or different load case scenarios sequentially. So you need to parse the .frd or .dat results in a dataframe or any kind of data structure easy to work with later on.
Agee. Currently, this is a problem. However, there are some automation options to run PrePoMax from the command line by using parameters to change the model.
I am in the middle of adding support for saving the Command history to a file and then adding the possibility to run it as a script. In this way, results post-processing could also be automated.
@mhayrettin First thanks you for your code it’s very easy to use and works perfectly. I work on some non-linear analysis and i want to calculate the stress triaxiality factor increment by increment. Pheraps you can just add a function to create .csv by increment or store data by increment in one .csv. And why not adding something to have plastic elongation. Simple suggestion !