# Elastic-tube-3d tutorial fails with OpenFOAM v2406

**URL:** https://precice.discourse.group/t/elastic-tube-3d-tutorial-fails-with-openfoam-v2406/2469
**Category:** Official adapters and tutorials
**Tags:** openfoam, calculix
**Created:** [May 7, 2025, 12:28am UTC](https://precice.discourse.group/t/elastic-tube-3d-tutorial-fails-with-openfoam-v2406/2469 "2025-05-07T00:28:01Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Roham](https://avatars.discourse-cdn.com/v4/letter/r/a587f6/32.png) [@Roham](https://precice.discourse.group/u/Roham)
#### Post date: [May 7, 2025, 12:28am UTC](https://precice.discourse.group/t/elastic-tube-3d-tutorial-fails-with-openfoam-v2406/2469/1 "2025-05-07T00:28:01Z")

</div>

Hello,  
I successfully ran the elastic-tube-3D tutorial on my local machine using OpenFOAM v2412, and the simulation proceeded without any issues. However, when I attempt the same simulation on a Compute Canada cluster, where the latest available version is OpenFOAM v2406, the OpenFOAM solver diverges early in the simulation. Specifically, I encounter exploding pressure residuals and eventually a floating-point exception related to mesh motion. No changes were made to the tutorial configuration files.

Do you know which older versions of OpenFOAM (e.g., v2206, v12, etc.) are known to work reliably with this FSI configuration?

Additionally, while I am able to run the coupled simulation using sbatch, it currently only works in serial mode. I can’t run the simulation in parallel on the cluster, even with decomposePar and mpirun. Could you suggest the correct approach or example scripts for running the full FSI case in parallel (both solid and fluid) using sbatch?

Thank you for your support.

---

<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: [May 22, 2025, 6:11pm UTC](https://precice.discourse.group/t/elastic-tube-3d-tutorial-fails-with-openfoam-v2406/2469/2 "2025-05-22T18:11:50Z")

</div>

Hi Roham,

very strange that you get these issues with v2406. The case was definitely created with a much older version, and if v2412 works, v2406 should also work. We describe the compatibility of the adapter with different OpenFOAM versions here: [OpenFOAM support | preCICE - The Coupling Library](https://precice.org/adapter-openfoam-support.html) and we generally check our tutorials over time, but the elastic-tube-3d is one of the tutorials with the longer runtime, that we don’t yet systematically check. But I still doubt that this is a version issue. Did you get any additional clues in the meantime?

We maintain some notes on how to run preCICE in SLURM sessions in this page:

> **[SLURM sessions](https://precice.org/running-slurm.html)**
>
> Running partitioned simulations on a cluster managed by SLURM requires special treatment of the provided MPI machines.

---

<div class="post-metadata">

### Author: ![Alfred\_Lam](https://avatars.discourse-cdn.com/v4/letter/a/e56c9b/32.png) [@Alfred\_Lam](https://precice.discourse.group/u/Alfred_Lam)
#### Post date: [September 8, 2025, 6:30am UTC](https://precice.discourse.group/t/elastic-tube-3d-tutorial-fails-with-openfoam-v2406/2469/3 "2025-09-08T06:30:54Z")

</div>

Hi Roham,  
I think it may be related to the preCICE version? I can always run elastic-tube-3d and my pipe FSI cases without any issues using OpenFOAM-v2406 and preCICE-3.1.2.  
But after updating preCICE to 3.2.0, I have the same problem as yours when running elastic-tube-3d. The OpenFOAM solver can only run a few steps and then diverges.

---

<div class="post-metadata">

### Author: ![shangzhi\_son](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/shangzhi_son/32/3093_2.png) [@shangzhi\_son](https://precice.discourse.group/u/shangzhi_son)
#### Post date: [October 23, 2025, 3:41pm UTC](https://precice.discourse.group/t/elastic-tube-3d-tutorial-fails-with-openfoam-v2406/2469/4 "2025-10-23T15:41:00Z")

</div>

Have you reached a conclusion now? I have encountered the same problem.

---

<div class="post-metadata">

### Author: ![shangzhi\_son](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/shangzhi_son/32/3093_2.png) [@shangzhi\_son](https://precice.discourse.group/u/shangzhi_son)
#### Post date: [October 23, 2025, 3:48pm UTC](https://precice.discourse.group/t/elastic-tube-3d-tutorial-fails-with-openfoam-v2406/2469/5 "2025-10-23T15:48:36Z")

</div>

Hello developer. I am version 2412. Why does it diverge when following the tutorial? Why does this problem occur?

# PIMPLE: iteration 1

smoothSolver: Solving for cellDisplacementx, Initial residual = 1, Final residual = 9.0919358531898e-18, No Iterations 1  
smoothSolver: Solving for cellDisplacementy, Initial residual = 1, Final residual = 6.5060376031073e-18, No Iterations 1  
smoothSolver: Solving for cellDisplacementz, Initial residual = 1, Final residual = 1.1828554409038e-17, No Iterations 1  
[stack trace]

# #1 Foam::sigFpe::sigHandler(int) in /usr/lib/openfoam/openfoam2412/platforms/linux64GccDPInt32Opt/lib/libOpenFOAM.so

#2 ? in /usr/lib/x86\_64-linux-gnu/libc.so.6  
#3 Foam::leastSquaresVectors::calcLeastSquaresVectors() in /usr/lib/openfoam/openfoam2412/platforms/linux64GccDPInt32Opt/lib/libfiniteVolume.so  
#4 Foam::leastSquaresVectors::movePoints() in /usr/lib/openfoam/openfoam2412/platforms/linux64GccDPInt32Opt/lib/libfiniteVolume.so  
#5 Foam::fvMesh::movePoints(Foam::Field\<Foam::Vector \> const&) in /usr/lib/openfoam/openfoam2412/platforms/linux64GccDPInt32Opt/lib/libfiniteVolume.so  
#6 Foam::dynamicMotionSolverFvMesh::update() in /usr/lib/openfoam/openfoam2412/platforms/linux64GccDPInt32Opt/lib/libdynamicFvMesh.so  
#7 Foam::dynamicFvMesh::controlledUpdate() in /usr/lib/openfoam/openfoam2412/platforms/linux64GccDPInt32Opt/lib/libdynamicFvMesh.so  
#8 ? in /usr/lib/openfoam/openfoam2412/platforms/linux64GccDPInt32Opt/bin/pimpleFoam  
#9 ? in /usr/lib/x86\_64-linux-gnu/libc.so.6  
#10 \_\_libc\_start\_main in /usr/lib/x86\_64-linux-gnu/libc.so.6  
#11 ? in /usr/lib/openfoam/openfoam2412/platforms/linux64GccDPInt32Opt/bin/pimpleFoam

Floating point exception (core dumped)

---

<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: [October 23, 2025, 4:04pm UTC](https://precice.discourse.group/t/elastic-tube-3d-tutorial-fails-with-openfoam-v2406/2469/6 "2025-10-23T16:04:39Z")

</div>

This was actually a bug in the QR3 filter set as default preCICE v3.2.0, which affected this tutorial. Update to v3.3.0:

> **[Release v3.3.0 · precice/precice](https://github.com/precice/precice/releases/tag/v3.3.0)**
>
> Dear preCICE community,
> We are happy to announce a new preCICE release v3.3.0.
> This release adds support for Quads in 2D for linear-cell-interpolation, simplifies running preCICE in parallel witho...
