FEM_FrontISTR Workbench

About the development of the FEM module/workbench.

Moderator: bernd

User avatar
kinagaki
Posts: 12
Joined: Sun Apr 18, 2021 12:39 pm
Location: Kanagawa, Japan

FEM_FrontISTR Workbench

Post by kinagaki »

Hello FreeCAD community members,

I'm developing a FreeCAD addon that enables FrontISTR, an open-source large-scale parallel FEM program for nonlinear structural analysis.
It can be used in almost the same way as existing structural analysis solvers such as CaliculiX and Elmer to perform large-scale analyses in parallel.

addon-repogitory: https://github.com/FrontISTR/FEM_FrontISTR

In the example shown in the figure, a 644,415-node bike frame model is analyzed in 172 seconds using an 4cores/8threads intel CPU.
Post-processing is somewhat smooth because only the surface mesh is used.
0a_bikeframe.png
0a_bikeframe.png (382.91 KiB) Viewed 5428 times
Currently, only Windows is supported. Additionally, the add-on does not cover all the features of FrontISTR. But I'll make it available soon.

About FrontISTR: https://www.frontistr.com/files/FISTRv4.5E.pdf
FrontISTR official(Japanese): https://www.frontistr.com/

I hope you find this add-on and FrontISTR of interest.
Regards,
Last edited by kinagaki on Wed Apr 28, 2021 9:39 am, edited 1 time in total.
FEM_FrontISTR: A parallel nonlinear finite element analysis workbench for FreeCAD
User avatar
johnwang
Veteran
Posts: 1382
Joined: Sun Jan 27, 2019 12:41 am

Re: FEM_FrontISTR Workbench

Post by johnwang »

hfc series CAE workbenches for FreeCAD (hfcNastran95, hfcMystran, hfcFrame3DD, hfcSU2 and more)
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: FEM_FrontISTR Workbench

Post by Kunda1 »

kinagaki wrote: Thu Apr 22, 2021 2:03 pm Hello FreeCAD community members,
Hello and welcome to the FreeCAD community! Thanks for sharing. As @johnwang pointed out, we've discussed your work before.
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
thschrader
Veteran
Posts: 3155
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

Re: FEM_FrontISTR Workbench

Post by thschrader »

Test example with FrontISTR-wb:
intel i5 cpu, 4 cores, 16 GB RAM, Laptop HP ProBook 650 G2
mesher netgen, 52500 quadratic volumes
runtime FrontISTR-solver 16 sec, all cores loaded up to 100% (ccx needs 48 sec).
results equal to ccx

The stress plot with pipeline looks a little weird :)
How can I display stress with paraview?

@kinagaki:
The solver installation as described in git seems not working for me (or I have not enough patience...)
I did this:
Download FrontISTR-wb from
https://github.com/FrontISTR/FEM_FrontISTR
and solvers from
https://www.frontistr.com/download/

Extract all zips and put solver in bin directory.
After starting solver there is no install procedure

I am using
OS: Windows 10 (10.0)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24267 (Git)
Build type: Release
Branch: master
Hash: b2ca86d8d72b636011a73394bf9bcdedb3b109b7
Python version: 3.6.8
Qt version: 5.12.1
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: German/Germany (de_DE)
FrontISTR_test_flange.JPG
FrontISTR_test_flange.JPG (91.14 KiB) Viewed 5245 times
install_solver.JPG
install_solver.JPG (59.69 KiB) Viewed 5245 times
User avatar
kinagaki
Posts: 12
Joined: Sun Apr 18, 2021 12:39 pm
Location: Kanagawa, Japan

Re: FEM_FrontISTR Workbench

Post by kinagaki »

@johnwang @Kunda1
Wow, I didn't expect FreeCAD community to have already found this repository! Thanks for letting me know.

FrontISTR does not have sufficient English documentation, so I'm afraid it has confused FC members a bit.
As announced, the significance of this workbench is to run large scale analysis using all computational resources.
FrontISTR can run both iterative solvers such as preconditioned conjugate gradient method, which has good memory usage and scalability, and a direct solver, MUMPS*.
This gives users the freedom to choose the appropriate solver for your problem.

*The MUMPS solver is currently not available for windows due to a problem between MS-MPI and MUMPS. We're working hard to fix this problem.

@thschrader

Thanks for trying it out so quickly!
The stress plot with pipeline looks a little weird :)
How can I display stress with paraview?
It seems so. Thank you for letting me know. I checked stress results only by double-clicking FISTR_Result, so I may have missed the problem with pipeline view. I'll check it.

To display stress with paraview, you will need to manually edit the input file and run the solver again, as shown below.

1. Write input
2. Go to working directory and open .cnt file to edit
3. Replace !output_type=COMPLETE_AVS to !output_type=VTK
4. Run FrontISTR ( loading results will be fail. )
5. Open .pvtu files with paraview.

The solver installation as described in git seems not working for me (or I have not enough patience...)
When you first created solverFISTRtools, did you see the following screen? It appears if bin/fistr1.exe was not found.
warning.PNG
warning.PNG (9.26 KiB) Viewed 5222 times
After you click OK, the download will start in the background.
This is done by python urllib.request module, so something wrong might occur with it or maybe it simply took too much time.
FEM_FrontISTR: A parallel nonlinear finite element analysis workbench for FreeCAD
thschrader
Veteran
Posts: 3155
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

Re: FEM_FrontISTR Workbench

Post by thschrader »

kinagaki wrote: Fri Apr 23, 2021 3:25 pm ...
To display stress with paraview, you will need to manually edit the input file and run the solver again, as shown below.
...
When you first created solverFISTRtools, did you see the following screen? It appears if bin/fistr1.exe was not found.
...
Thanks for the hints with paraview. I will try it at the weekend.

Yes, I got the install-window after first use of FrontISTR. I pressed ok but after
over 1 hour freecad was still waiting (report window shows installation in progress).
Checking processor loading with process-explorer tool shows no activity.
Thats why I used my "method".

BTW:
Welcome to the FreeCAD forum !
Keep up the good work
Regards Thomas
User avatar
kinagaki
Posts: 12
Joined: Sun Apr 18, 2021 12:39 pm
Location: Kanagawa, Japan

Re: FEM_FrontISTR Workbench

Post by kinagaki »

@thschrader

It looks like the installation has stopped completely...
In case the download does not succeed, I have added the manual installation procedure to the README.

Thanks for the welcome and encouragement! I'll keep working on improving it.
FEM_FrontISTR: A parallel nonlinear finite element analysis workbench for FreeCAD
thschrader
Veteran
Posts: 3155
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

Re: FEM_FrontISTR Workbench

Post by thschrader »

Here is another one (a "real-life" part):
190000 cells, Intel i5 cpu, mesher netgen
Runtime ccx=340 sec, FrontISTR=80 sec :o
Editing cnt input-file to vtu and import results to paraview works.
I will have a look at the other solver options (any documentary?)

@bernd: this is a really fast solver
another_one.JPG
another_one.JPG (78.82 KiB) Viewed 5041 times
thschrader
Veteran
Posts: 3155
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

Re: FEM_FrontISTR Workbench

Post by thschrader »

and the last one: anchor-plate antenna-mast,
495000 cells, mesher netgen, intel i5 cpu, runtime FrontISTR=245 sec. Not bad.
FrontISTR needs up to 10 GB RAM (4x2,5 GB, 2,5 GB each core)
Have a nice sunday.
last_one.JPG
last_one.JPG (112.71 KiB) Viewed 5030 times
User avatar
kinagaki
Posts: 12
Joined: Sun Apr 18, 2021 12:39 pm
Location: Kanagawa, Japan

Re: FEM_FrontISTR Workbench

Post by kinagaki »

@thschrader

Thanks for testing. I'm glad to see the good result.

I fixed the problem of the pipeline view displaying incorrectly.
fixed_pipeline.png
fixed_pipeline.png (600.26 KiB) Viewed 4807 times

I also added the new property of Output file format. Output file format can be selected from AVS and VTK now. Paraview is required to visualize VTK file.

Please check Tips in the README.md updated today as for the choice of linear equation solvers.
For now, I think the default settings are probably the best.
FEM_FrontISTR: A parallel nonlinear finite element analysis workbench for FreeCAD
Post Reply