Sandbox:Add FEM Solver Tutorial

From FreeCAD Documentation
Revision as of 16:30, 22 September 2021 by Roy 043 (talk | contribs) (Roy 043 moved page Add FEM solver tutorial to Sandbox:Add FEM Solver Tutorial: WIP)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Under construction icon-blue.svg
This documentation is a work in progress. Please don't mark it as translatable since it will change in the next hours and days.
Freecad.svg Tutorial
Add FEM Solver
Time to complete
Not provided
FreeCAD version
Example files


In this tutorial we will take the Mystran solver as an example to show how to add a solver to FreeCAD. Please make sure you have read and understood Extend FEM Module before reading this tutorial. The detail of adding the Mystran Solver to FreeCAD master:

The task can be split into seven parts:

  • Mesh exporter. Write out Mesh or Case file from FreeCAD to the solver.
  • Results importer. Read the solver's result file back to FreeCAD.
  • Solver object. Needs changes in solver settings, unit tests, ObjectsFem modules as well.
  • Task and writer module. Here is where the main solver input writing happens.
  • Gui tool to create a solver.
  • Gui preference tab to set the solver binary path.
  • A solver input writing unit test. Best to take the ccx cantilever. This is available for all mesh element types.