# What name have do you need to put in the patch on the config.yml of Calculix?

**URL:** <https://precice.discourse.group/t/what-name-have-do-you-need-to-put-in-the-patch-on-the-config-yml-of-calculix/2701>\
**Category:** Official adapters and tutorials\
**Tags:** calculix\
**Created:** [January 8, 2026, 7:14pm UTC](https://precice.discourse.group/t/what-name-have-do-you-need-to-put-in-the-patch-on-the-config-yml-of-calculix/2701 "2026-01-08T19:14:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Checa](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/checa/32/2881_2.png) [@Checa](https://precice.discourse.group/u/Checa)\
**Post date:** [January 8, 2026, 7:14pm UTC](https://precice.discourse.group/t/what-name-have-do-you-need-to-put-in-the-patch-on-the-config-yml-of-calculix/2701/1 "2026-01-08T19:14:50Z")

</div>

Hi, I am using PreCICE for a simulation with OpenFOAM and CalculiX, just now I was thinking in the file config.yml, I have:  
participants:

```
Solid:

    interfaces:

    - nodes-mesh: Solid-Mesh

      patch: surface

      read-data: \[Force\]

      write-data: \[Displacement\]

```

precice-config-file: ../precice-config.xml

The name of my patch is surface, I have all my nodes and elements in a file named Edificio.msh and inside I have a group of elements named \*NSET, NSET=Nsurface, those are the ones I use in the .inp like this:  
\*CLOAD  
Nsurface, 1, 0.0  
Nsurface, 2, 0.0  
Nsurface, 3, 0.0

Do I need a diferent file just with the name un surface.nam and with the elements inside, for preCICE to work, or just like this is fine.

Thanks in advance

---

<div class="post-metadata">

**Author:** ![Makis](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/makis/32/25_2.png) [@Makis](https://precice.discourse.group/u/Makis)\
**Post date:** [January 13, 2026, 1:49pm UTC](https://precice.discourse.group/t/what-name-have-do-you-need-to-put-in-the-patch-on-the-config-yml-of-calculix/2701/2 "2026-01-13T13:49:57Z")

</div>

Hey @Checa,

the `patch` (in this case `surface`) is something you must have defined in the mesh already.

Have a look at this training material coupling OpenFOAM and CalculiX:

> **[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...

P.S.: Maybe have another look at the formatting of the code snippet above.
