How to create the mesh file used in the perpendicular-flap case in CalculiX

I want to use OpenFOAM and CalculiX for coupled simulations via preCICE. I am new to both CalculiX and preCICE, and I am unfamiliar with mesh generation. I know that the solid solver is mainly based on CalculiX ccx, and there are many ways to generate the solid mesh, such as using Salome, Gmsh, etc. In the official preCICE case perpendicular-flap, there is a file called solid-calculix, which contains the flap.inp file and some mesh information files: all.msh, fix1_beam.nam, and interface_beam.nam. I understand that the file flap.inp is the one used by the ccx solver, and it includes the mesh file within it. However, I don’t know why a Solid Section is used for this 2D simulation, and even more challenging, I don’t know how to create all.msh, fix1_beam.nam, and interface_beam.nam using Salome for CalculiX ccx. Torsten Schenkel demonstrated how to implement the elastic-tube-3d case on YouTube, where the mesh tool is based on Salome, and that is the only resource I could find that involves coupling CalculiX with OpenFOAM. Can preCICE provide case files or videos that show how to generate the solid mesh needed for the perpendicular-flap simulation using Salome or other mesh generation tools? The official documentation doesn’t help us understand how the mesh generation is done or how the mesh files are matched with the content in flap.inp.

Hi,

Note that the solid-calculix contains two cases, which is mentioned in the case description:

There is a complete topic on generating CalculiX meshes and configuration files:

For questions specific to CalculiX, I recommend having a look at the very active CalculiX discourse:

If you prefer learning-by-doing, then I recommend the new public FSI course created in collaboration with @Claudio.

Best
Frédéric

1 Like

Thank you Very much!