# Mesh generation for preCICE FSI training session

**URL:** <https://calculix.discourse.group/t/mesh-generation-for-precice-fsi-training-session/2339>\
**Category:** Uncategorized\
**Created:** [July 17, 2024, 8:19am UTC](https://calculix.discourse.group/t/mesh-generation-for-precice-fsi-training-session/2339 "2024-07-17T08:19:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MakisH](https://yyz2.discourse-cdn.com/free1/user_avatar/calculix.discourse.group/makish/32/127_2.png) [@MakisH](https://calculix.discourse.group/u/MakisH)\
**Post date:** [July 17, 2024, 8:19am UTC](https://calculix.discourse.group/t/mesh-generation-for-precice-fsi-training-session/2339/1 "2024-07-17T08:19:07Z")

</div>

For the [preCICE Workshop 2024](https://precice.org/precice-workshop-2024.html) (September 24-27, 2024), we want to offer a training course showing how to prepare an FSI simulation with CalculiX and OpenFOAM.

We are currently thinking going with the [FEM workbench of FreeCAD](https://wiki.freecad.org/FEM_Workbench) for the CalculiX mesh generation, as we need something relatively straight-forward that is easy to get on Linux. We are also considering other options, including SALOME (which, however, currently has issues on Ubuntu 24.04 / Python 3.12), PrePoMax (which seems to only be available on Windows) and some converters.

Any better suggetions we are missing?

Read Claudio’s analysis in the preCICE forum: [preCICE Workshop: training session on FSI, Mesh generation for CalculiX - Non-preCICE - preCICE Forum on Discourse](https://precice.discourse.group/t/precice-workshop-training-session-on-fsi-mesh-generation-for-calculix/2020)

---

<div class="post-metadata">

**Author:** ![Calc\_em](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@Calc\_em](https://calculix.discourse.group/u/Calc_em)\
**Post date:** [July 17, 2024, 8:31am UTC](https://calculix.discourse.group/t/mesh-generation-for-precice-fsi-training-session/2339/2 "2024-07-17T08:31:07Z")

</div>

Gmsh can generate meshes for CalculiX directly (and save them to .inp format). But FreeCAD would also work. Btw. FreeCAD has add-on CfdOF workbench for OpenFOAM simulations. It just can’t perform FSI yet. Maybe preCICE could be integrated with it one day.

---

<div class="post-metadata">

**Author:** ![NorbertH](https://avatars.discourse-cdn.com/v4/letter/n/74df32/32.png) [@NorbertH](https://calculix.discourse.group/u/NorbertH)\
**Post date:** [July 17, 2024, 5:56pm UTC](https://calculix.discourse.group/t/mesh-generation-for-precice-fsi-training-session/2339/3 "2024-07-17T17:56:39Z")

</div>

Cubit runs on Linux and Windows.

> **[Coreform - Corform Cubit](https://coreform.com/coreform-cubit/)**
>
> \[et\_pb\_section fb\_built=”1″ custom\_padding\_last\_edited=”on|tablet” \_builder\_version=”4.25.2″ \_module\_preset=”default” background\_color=”#000000″ custom\_padding=”||7em||false|false” custom\_padding\_tablet=”0px||0em||false|false”...

You can directly export the mesh in abquas .inp  
You could also download the calculix component and do the whole preprocessing for calculix in cubit. That’s also available for Linux and Windows.

> **[GitHub - calculix/Cubit-CalculiX: Pre- and Postprocessing for CalculiX can be...](https://github.com/calculix/Cubit-CalculiX)**
>
> Pre- and Postprocessing for CalculiX can be done with this component in coreform cubit. The results will be converted to Paraview (.frd and .dat: nodal, element and integration points results). - c...

Every command can be journaled so the whole preprocessing can be scripted.

---

<div class="post-metadata">

**Author:** ![MakisH](https://yyz2.discourse-cdn.com/free1/user_avatar/calculix.discourse.group/makish/32/127_2.png) [@MakisH](https://calculix.discourse.group/u/MakisH)\
**Post date:** [October 25, 2024, 8:51am UTC](https://calculix.discourse.group/t/mesh-generation-for-precice-fsi-training-session/2339/4 "2024-10-25T08:51:01Z")

</div>

Thank you everyone for your suggestions!

Last month, we presented a course module on preparing an FSI simulation coupling CalculiX and OpenFOAM via preCICE. We used FreeCAD to prepare the CalculiX mesh, and we directly edited the CalculiX configuration in a text editor.

You can find the material with step-by-step instructions on Zenodo:

> **[A workflow for fluid-structure interaction simulations with preCICE](https://zenodo.org/records/13961370)**
>
> This community-contributed part of the preCICE training course goes step by step through the process of creating a fluid-structure interaction simulation coupling CalculiX and OpenFOAM using the coupling library preCICE and the respective CalculiX...
