3D Interactive Analysis Stress Viewer

Hello Prepromax Community,

This is my first post…I am sharing the Analysis Stress Viewer I developed to easily share and examine analysis results.

I am not an expert analyst, I am mechanical designer; I only use simple, amateur static analysis when required for my own work.

I initially started this project because I needed a CSV file containing X, Y, Z, Von Mises stress values from an Analysis-1.frd(v2.4.0) file for another topic, but I couldn’t find a working Python script to accomplish this; the existing ones I found didn’t function correctly.

I can now successfully extract the X, Y, Z, and Von Mises values from the Analysis-1.frd(v2.4.0) file as a CSV, but I need some time to test that script before I share it here. In the meantime, I wanted to share the solution here in case someone finds it useful.

Note: tested using Prepromax version 2.4.0

Mehmet

ALL FILES AND SOURCE:

2 Likes

Hi Mehmet,
I really like the idea of showing results in html. I would probably also recommend of using pyvista for displaying results. This works also quite nice in html instead of using scattered plots.

Best regards,
Patrick

This values have no meaning, this is just a quick-and-dirty proof of concept.

1 Like

Portable document format (PDF) also supports 3D from external CAD export capabilities; it seems possible for FE results also. The part and result can be viewed, rotate, zoom and add annotations before transfer to physical paper by printing, this can be good alternative due to library dependency maybe.

1 Like

Hi Patrick

Thank you for your suggestion. I will review it.

Hi Mehmet,
You’ll probably need to convert the frd file to a readable mesh. There is a pull request for a feature of reading frd results:

Unfortunately there is a bug while reading the nodes. I managed to fix this and will probably add this soon to the existing pull request.
The results from the imported mesh via meshio can be converted simply to pyvista with pyvista.from_meshio(mesh).

Cheers,
Patrick

PS
I would really like to see a possibility to implement an interactive view of results within PowerPoint (embedded instead of link). In the past it was just painful to prepare Presentations with multiple views. An interactive view would be a game changer!

1 Like

Usually, .frd fils are converted to ParaView format using FreeCAD and this tool: GitHub - calculix/ccx2paraview: CalculiX to Paraview converter (frd to vtk/vtu). Makes possible to view and postprocess CalculiX analysis results in Paraview. Generates Mises and Principal components for stress and strain tensors.

FreeCAD also had a project to support 3D PDFs recently, but as an alternative, the XML format can be used and opened in a web browser. It may store contour plots too.

2 Likes

F3D also available out there (links) it has specific library can binding with Python also, model parts of CAD files in Step format and result in Vtk formats can be viewed in single interface.

2 Likes

PowerPoint can handle 3D models. .obj, .3mf, … and some of them can include textures. My idea was to export the .stl mesh from the results, create textures for each face, and then combine them into a single 3D file with textures. But creating textures stopped me. Maybe it cold also work with colors.

Something like: 3D Printing Ansys Mechanical Results with PADT's "AM Result Printer" Ansys ACT Extension - PADT

I can share the first test that looks pretty good.

4 Likes

Now I was able to implement textured mapping for colors (discrete colors) and include the mesh into the 3mf format. The result when opened in 3D Builder (part of Windows) is now much better.

Such models can be added to PowerPoint or Word documents.

Test.3mf (3.2 MB)

5 Likes

Nice mesh. Transfinite Gmsh ?

Yes, and I used thicken shell mesh feature.

Some more info about the 3mf export: LinkedIn

1 Like