# Help:coupling my own fluid fortran code with solid calculix code by precice

**URL:** <https://precice.discourse.group/t/help-coupling-my-own-fluid-fortran-code-with-solid-calculix-code-by-precice/837>\
**Category:** Using preCICE\
**Tags:** adapters, fsi\
**Created:** [December 19, 2021, 1:08am UTC](https://precice.discourse.group/t/help-coupling-my-own-fluid-fortran-code-with-solid-calculix-code-by-precice/837 "2021-12-19T01:08:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bai0616](https://avatars.discourse-cdn.com/v4/letter/b/5e9695/32.png) [@Bai0616](https://precice.discourse.group/u/Bai0616)\
**Post date:** [December 19, 2021, 1:08am UTC](https://precice.discourse.group/t/help-coupling-my-own-fluid-fortran-code-with-solid-calculix-code-by-precice/837/1 "2021-12-19T01:08:28Z")

</div>

can i coupling my own fluid fortran code with solid calculix code by precice? what can i do is fluid-adapter or other? please help me, thank u all!

---

<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:** [December 19, 2021, 2:54pm UTC](https://precice.discourse.group/t/help-coupling-my-own-fluid-fortran-code-with-solid-calculix-code-by-precice/837/2 "2021-12-19T14:54:28Z")

</div>

Welcome, @Bai0616!

> [@Bai0616](#):
>
> can i coupling my own fluid fortran code with solid calculix code by precice?

Yes, you can probably couple your own Fortran flow code with preCICE. Here is an overview of the steps you need to couple your code: [Couple your code | preCICE - The Coupling Library](https://precice.org/couple-your-code-overview.html)

Specifically for Fortran, we have two [interfaces](https://precice.org/couple-your-code-api.html):

- a legacy Fortran interface, included directly in preCICE ([example](https://github.com/precice/precice/tree/master/examples/solverdummies/fortran))
- a Fortran module: [GitHub - precice/fortran-module: A Fortran module for the Fortran bindings of preCICE (formerly "f2003 bindings")](https://github.com/precice/fortran-module) ([example](https://github.com/precice/fortran-module/tree/master/examples/solverdummy))

For CalculiX, you can use the [CalculiX adapter](https://precice.org/adapter-calculix-overview.html). See, for example, the [perpendicular flap tutorial](https://precice.org/tutorials-perpendicular-flap.html).

> [@Bai0616](#):
>
> what can i do is fluid-adapter or other?

I am not sure I understand this part of your question, but maybe I have already answered it above.

---

<div class="post-metadata">

**Author:** ![Bai0616](https://avatars.discourse-cdn.com/v4/letter/b/5e9695/32.png) [@Bai0616](https://precice.discourse.group/u/Bai0616)\
**Post date:** [December 20, 2021, 1:31am UTC](https://precice.discourse.group/t/help-coupling-my-own-fluid-fortran-code-with-solid-calculix-code-by-precice/837/3 "2021-12-20T01:31:42Z")

</div>

hi,Makis  
i am happy because of your answer ,thank u very much, i will try according to you advances. when i have new problem, please help me more,thank u again!

---

<div class="post-metadata">

**Author:** ![Bai0616](https://avatars.discourse-cdn.com/v4/letter/b/5e9695/32.png) [@Bai0616](https://precice.discourse.group/u/Bai0616)\
**Post date:** [December 21, 2021, 12:44am UTC](https://precice.discourse.group/t/help-coupling-my-own-fluid-fortran-code-with-solid-calculix-code-by-precice/837/4 "2021-12-21T00:44:59Z")

</div>

hi makis:  
i want to understand how to build the adapter of my fortran code with precice. i am not sure i uderstand the “Couple your code”, for example, i modify my fortran code withe precice module, and the next step what can i do ?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/precice/original/1X/67d2a5fa6f80e597e2267ff17fa8c1673cd11caa.svg) [@system](https://precice.discourse.group/u/system)\
**Post date:** [December 24, 2021, 12:45am UTC](https://precice.discourse.group/t/help-coupling-my-own-fluid-fortran-code-with-solid-calculix-code-by-precice/837/5 "2021-12-24T00:45:00Z")

</div>

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
