# Hollow structure FSI with OpenFOAM and CalculiX

**URL:** <https://precice.discourse.group/t/hollow-structure-fsi-with-openfoam-and-calculix/1110>\
**Category:** Using preCICE\
**Tags:** fsi\
**Created:** [July 22, 2022, 10:52am UTC](https://precice.discourse.group/t/hollow-structure-fsi-with-openfoam-and-calculix/1110 "2022-07-22T10:52:27Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![JCZheng](https://avatars.discourse-cdn.com/v4/letter/j/e68b1a/32.png) [@JCZheng](https://precice.discourse.group/u/JCZheng)\
**Post date:** [July 22, 2022, 10:52am UTC](https://precice.discourse.group/t/hollow-structure-fsi-with-openfoam-and-calculix/1110/1 "2022-07-22T10:52:27Z")

</div>

I am trying to simulate the hollow structures with OpenFOAM and CalculiX, such as the implosion of underwater cylindrical shells. The external load of the cylindrical shell is the high hydrostatic pressure, and the internal load is the low ideal air pressure. Can I use the preCICE tools?

---

<div class="post-metadata">

**Author:** ![uekerman](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/uekerman/32/2199_2.png) [@uekerman](https://precice.discourse.group/u/uekerman)\
**Post date:** [July 22, 2022, 11:31am UTC](https://precice.discourse.group/t/hollow-structure-fsi-with-openfoam-and-calculix/1110/2 "2022-07-22T11:31:27Z")

</div>

Without knowing much details of your application, I would guess “yes”.  
Sounds somehow similar to:  
[https://precice.org/community-projects.html#fsi-simulations-of-high-impact-loads-on-structures](https://precice.org/community-projects.html#fsi-simulations-of-high-impact-loads-on-structures)

---

<div class="post-metadata">

**Author:** ![JCZheng](https://avatars.discourse-cdn.com/v4/letter/j/e68b1a/32.png) [@JCZheng](https://precice.discourse.group/u/JCZheng)\
**Post date:** [September 1, 2022, 1:41am UTC](https://precice.discourse.group/t/hollow-structure-fsi-with-openfoam-and-calculix/1110/3 "2022-09-01T01:41:32Z")

</div>

Through my understanding of preCICE, the fluid-structure coupling calculation of large deformation of shell can indeed be realized. However, because the shell is a hollow structure, the gas inside the shell and the water outside the shell are separated by the structure shell when the fluid-structure interaction calculation is carried out. In the case, the fluid domain is discontinuous and the coupling interface cannot be created. I don’t know how to consider the air inside and water outside the spherical shell at the same time. Could you provide some suggestions about the question?  
Uploading: image.png…  
Uploading: 1.jpg…

---

<div class="post-metadata">

**Author:** ![IshaanDesai](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/ishaandesai/32/1048_2.png) [@IshaanDesai](https://precice.discourse.group/u/IshaanDesai)\
**Post date:** [September 1, 2022, 2:00pm UTC](https://precice.discourse.group/t/hollow-structure-fsi-with-openfoam-and-calculix/1110/4 "2022-09-01T14:00:54Z")

</div>

Hi @JCZheng

An idea to handle the two fluid domains would be to consider them as two different participants from the perspective of coupling. So then you would end up with three participants for the coupling, fluid-gas, fluid-water, and structure-shell. Then you can define two coupling interfaces, fluid-gas – structure-shell and fluid-water – structure-shell. preCICE allows for such a coupling with more than two participants. In our tutorials we have a heat exchanger case which has three participants: [tutorials/heat-exchanger at master · precice/tutorials · GitHub](https://github.com/precice/tutorials/tree/master/heat-exchanger). This case is a good starting point to realize such a coupling.

---

<div class="post-metadata">

**Author:** ![JCZheng](https://avatars.discourse-cdn.com/v4/letter/j/e68b1a/32.png) [@JCZheng](https://precice.discourse.group/u/JCZheng)\
**Post date:** [September 17, 2022, 3:01am UTC](https://precice.discourse.group/t/hollow-structure-fsi-with-openfoam-and-calculix/1110/6 "2022-09-17T03:01:42Z")

</div>

I have completed the setup of three-phase with twice fluid-solid coupling. However, in order to complete the final implosion simulation, it is best to ensure that the fluid grid is not deformed like the Euler method in the ALE method by moving boundary. Do you have any suggestions?

> [@IshaanDesai](#):
>
> Hi @JCZheng
> 
> An idea to handle the two fluid domains would be to consider them as two different participants from the perspective of coupling. So then you would end up with three participants for the coupling, fluid-gas, fluid-water, and structure-shell. Then you can define two coupling interfaces, fluid-gas – structure-shell and fluid-water – structure-shell. preCICE allows for such a coupling with more than two participants. In our tutorials we have a heat exchanger case which has three participants: [https://github.com/precice/tutorials/tree/master/heat-exchanger](https://github.com/precice/tutorials/tree/master/heat-exchanger). This case is a good starting point to realize such a coupling.

---

<div class="post-metadata">

**Author:** ![IshaanDesai](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/ishaandesai/32/1048_2.png) [@IshaanDesai](https://precice.discourse.group/u/IshaanDesai)\
**Post date:** [September 22, 2022, 5:40am UTC](https://precice.discourse.group/t/hollow-structure-fsi-with-openfoam-and-calculix/1110/7 "2022-09-22T05:40:53Z")

</div>

> [@JCZheng](#):
>
> However, in order to complete the final implosion simulation, it is best to ensure that the fluid grid is not deformed like the Euler method in the ALE method by moving boundary. Do you have any suggestions?

I don’t fully understand your question. preCICE cannot handle moving meshes, so if the mesh moves in your fluid solver, you can define a second static mesh which remains at the initial position and does not move. Then you can map data between this static mesh and the actual moving mesh in your fluid simulation. Would that be a solution for your problem?

---

<div class="post-metadata">

**Author:** ![O\_K](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/o_k/32/1340_2.png) [@O\_K](https://precice.discourse.group/u/O_K)\
**Post date:** [December 29, 2022, 7:17am UTC](https://precice.discourse.group/t/hollow-structure-fsi-with-openfoam-and-calculix/1110/8 "2022-12-29T07:17:09Z")

</div>

Have you carried out this kind of simulation successfully? I also do research about this problem. Can I communicate with you?

---

<div class="post-metadata">

**Author:** ![JCZheng](https://avatars.discourse-cdn.com/v4/letter/j/e68b1a/32.png) [@JCZheng](https://precice.discourse.group/u/JCZheng)\
**Post date:** [March 8, 2023, 8:53am UTC](https://precice.discourse.group/t/hollow-structure-fsi-with-openfoam-and-calculix/1110/9 "2023-03-08T08:53:07Z")

</div>

I’m sorry to reply you so late.  
As far as I know, only penalty function method or immersion boundary method combined with ghost fluid method can be used to solve the fluid-structure interaction problem (The hollow structure is coupled to internal and external fluid flows). The computational efficiency of the two fluid-structure coupling is too low and does not accord with the physical phenomenon.

---

<div class="post-metadata">

**Author:** ![O\_K](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/o_k/32/1340_2.png) [@O\_K](https://precice.discourse.group/u/O_K)\
**Post date:** [May 25, 2023, 6:38am UTC](https://precice.discourse.group/t/hollow-structure-fsi-with-openfoam-and-calculix/1110/10 "2023-05-25T06:38:16Z")

</div>

Thanks for your reply. I have seen that someone have achieved this physical phenomenon using calculix and openfoam. The link of the paper: [Energies | Free Full-Text | A Numerical Study on an Oscillating Water Column Wave Energy Converter with Hyper-Elastic Material (mdpi.com)](https://www.mdpi.com/1996-1073/15/22/8345). Thus it can be solved by calculix and openfoam.

---

<div class="post-metadata">

**Author:** ![JCZheng](https://avatars.discourse-cdn.com/v4/letter/j/e68b1a/32.png) [@JCZheng](https://precice.discourse.group/u/JCZheng)\
**Post date:** [May 26, 2023, 10:43am UTC](https://precice.discourse.group/t/hollow-structure-fsi-with-openfoam-and-calculix/1110/11 "2023-05-26T10:43:29Z")

</div>

Our questions are a little different, but thanks for your reply and supplied paper.

---

<div class="post-metadata">

**Author:** ![O\_K](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/o_k/32/1340_2.png) [@O\_K](https://precice.discourse.group/u/O_K)\
**Post date:** [May 29, 2023, 3:34am UTC](https://precice.discourse.group/t/hollow-structure-fsi-with-openfoam-and-calculix/1110/12 "2023-05-29T03:34:46Z")

</div>

Can we communicate with each other to solve this problem? If you can, please give me your email. Thank you.

---

<div class="post-metadata">

**Author:** ![JCZheng](https://avatars.discourse-cdn.com/v4/letter/j/e68b1a/32.png) [@JCZheng](https://precice.discourse.group/u/JCZheng)\
**Post date:** [July 7, 2023, 10:35am UTC](https://precice.discourse.group/t/hollow-structure-fsi-with-openfoam-and-calculix/1110/13 "2023-07-07T10:35:47Z")

</div>

Sure！ My email address is [zhengjiancaisjtu@163.com](mailto:zhengjiancaisjtu@163.com)
