# Turek benchmark FSI3 benchmark problem: Large displacement deviation

**URL:** <https://precice.discourse.group/t/turek-benchmark-fsi3-benchmark-problem-large-displacement-deviation/1706>\
**Category:** Using preCICE\
**Tags:** openfoam, calculix, fsi\
**Created:** [December 6, 2023, 11:47am UTC](https://precice.discourse.group/t/turek-benchmark-fsi3-benchmark-problem-large-displacement-deviation/1706 "2023-12-06T11:47:02Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![daxiangxiang](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/daxiangxiang/32/2011_2.png) [@daxiangxiang](https://precice.discourse.group/u/daxiangxiang)\
**Post date:** [December 6, 2023, 11:47am UTC](https://precice.discourse.group/t/turek-benchmark-fsi3-benchmark-problem-large-displacement-deviation/1706/1 "2023-12-06T11:47:02Z")

</div>

Hello everyone

I am recreating the **FSI3** case of **Turek Hron** , but the result is quite different from the standard case, what is the reason for this?

My simulation environment

- precice 2.5.0
- openfoam 2306
- calculix 2.20
- openfoam-adapter 1.2.3

 ![微信截图_20231206191353](https://global.discourse-cdn.com/free1/uploads/precice/original/2X/1/1c35bd76f6ca583868d0d81985b58d1fc83b9aa5.jpeg)

Some key parameter Settings：

```
// 0/u   
 inlet
    {
     // Time-varying parabolic inlet profile
     type groovyBC;
     variables "yp=pts().y;minY=min(yp);maxY=max(yp);para=-1.5*(maxY-pos().y)*(pos().y-minY)/(0.25*pow(maxY-minY,2))*normal();";
     valueExpression "time()<2 ? 0.5*(1-cos(0.5*pi*time()))*2*para : 2*para";
     value uniform (2 0 0);
    }

```

```
// constant/ transportProperties
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

    transportModel Newtonian;

    nu nu [0 2 -1 0 0 0 0] 0.001;

```

```
// system/preciceDict
FSI
{
  rho rho [1 -3 0 0 0 0 0] 1000;
}

```

```
// system/fvSolution

solvers
{
    p
    {
        solver GAMG;
        tolerance 1e-10;
        relTol 1e-6;
        smoother DICGaussSeidel;
    }

    pFinal
    {
        $p;
        relTol 0;
    }

    pcorrFinal
    {
        $p;
        relTol 0;
    }

    Phi
    {
        $p;
    }

    "(U|cellDisplacement)"
    {
        solver smoothSolver;
        smoother symGaussSeidel;
        tolerance 1e-10;
        relTol 1e-6;
    }

    "(U|cellDisplacement)Final"
    {
        $U;
        relTol 0;
    }
}

PIMPLE
{
    nCorrectors 2;
    nNonOrthogonalCorrectors 0;
    tolerance 1.0e-14;
    relTol 5e-3;
    pisoTol 1e-6;
    consistent true;

    nOuterCorrectors 50;

    // OpenFOAM (.com), OpenFOAM 5 or older (.org)
    /*
    residualControl
    {
        U
        {
            tolerance 5e-5;
            relTol 0;
        }
        p
        {
            tolerance 5e-4;
            relTol 0;
        }
    }
    */

    // OpenFOAM 6 (.org) or newer
    /*
    residualControl
    {
        U 5e-5;
        p 5e-4;
    }
    */
}

potentialFlow
{
    nNonOrthogonalCorrectors 5;
}

// ************************************************************************* //

```

```
// solid - flap.inp
*MATERIAL,NAME=User
*ELASTIC
5.6000E+06,0.4

*DENSITY
1.0000E+03

```

Regards  
Xiangxiang

---

<div class="post-metadata">

**Author:** ![daxiangxiang](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/daxiangxiang/32/2011_2.png) [@daxiangxiang](https://precice.discourse.group/u/daxiangxiang)\
**Post date:** [December 6, 2023, 11:53am UTC](https://precice.discourse.group/t/turek-benchmark-fsi3-benchmark-problem-large-displacement-deviation/1706/2 "2023-12-06T11:53:02Z")

</div>

I have put the complete file here.  
[OpenFOAM-CalculiX.zip](https://precice.discourse.group/uploads/short-url/fUvT2pLTlbPBHcBpZElrbOHI4hr.zip) (4.2 MB)  
Thank you!  
Xiangxiang

---

<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 7, 2023, 9:48am UTC](https://precice.discourse.group/t/turek-benchmark-fsi3-benchmark-problem-large-displacement-deviation/1706/3 "2023-12-07T09:48:52Z")

</div>

Disclaimer: I have not looked (yet) in your parameters, I am just trying to give directions to multiple questions in the forum first.

In the preCICE tutorials, we use deal.II instead of CalculiX. The case is described and validated in [OpenFOAM-preCICE: Coupling OpenFOAM with External Solvers for Multi-Physics Simulations | OpenFOAM® Journal](https://journal.openfoam.com/index.php/ofj/article/view/88)

Besides parameters, you also need to look at space and time discretization schemes.

For CalculiX, you could also compare to the FSI2 example contributed here: [Turek-Hron FSI 2 Benchmark](https://precice.discourse.group/t/turek-hron-fsi-2-benchmark/573)

---

<div class="post-metadata">

**Author:** ![FelixR](https://avatars.discourse-cdn.com/v4/letter/f/b19c9b/32.png) [@FelixR](https://precice.discourse.group/u/FelixR)\
**Post date:** [December 11, 2023, 6:30pm UTC](https://precice.discourse.group/t/turek-benchmark-fsi3-benchmark-problem-large-displacement-deviation/1706/4 "2023-12-11T18:30:16Z")

</div>

I see you used solid elements of the type “C3D8”, which are linear brick elements. You could use elements with quadratic shape functions like “C3D20”. Linear elements tend to be stiffer than quadratic elements. You could also try the linear brick element with reduced integration points of the type “C3D8R”, so you don’t need to generate a new mesh, just change the element type. The fineness of your meshes and the choice of the element type affect your results.

---

<div class="post-metadata">

**Author:** ![daxiangxiang](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/daxiangxiang/32/2011_2.png) [@daxiangxiang](https://precice.discourse.group/u/daxiangxiang)\
**Post date:** [December 30, 2023, 3:16am UTC](https://precice.discourse.group/t/turek-benchmark-fsi3-benchmark-problem-large-displacement-deviation/1706/5 "2023-12-30T03:16:38Z")

</div>

Hello Felix, this is a late reply (it has to be said that our servers compute very slowly), these days, I have tried a lot of modification methods, such as: Increase the fluid grid(21K 38K 46K), increase the solid grid(0.9K 1.8K), reduce the time step(0.001 0.0005 0.0002), improve the fluid convergence standard, improve the fluid-structure coupling convergence standard, and change the solid grid to C3D20 (C3D20 requires a super large amount of computation), but the ideal results are not given, and it is difficult to reproduce Turek&Hron. I have given some reference results for your reference. One more thing to say: replicating CFD3 (fluid solver only) didn’t work out well either, so oddly enough, I’m still replicating PreCICE’s official tutorial: Turek Hron FSI3, hoping to match the standard results.

**Note:** CFD2 gives very standard results that are approximately the same as Turek Hron CFD2’s results.

 ![image](https://global.discourse-cdn.com/free1/uploads/precice/original/2X/5/5b29b9a79024f752bfa3524d5d7e062d8e67b420.png)  
 ![image](https://global.discourse-cdn.com/free1/uploads/precice/original/2X/a/a2abfb99300fa4a2546df36a7f3d662a5acab293.png)  
 ![image](https://global.discourse-cdn.com/free1/uploads/precice/original/2X/3/37d12babd2ec08a3c194b2a1a48e91779a160714.png)  
 ![image](https://global.discourse-cdn.com/free1/uploads/precice/original/2X/2/2381f1e5c72da527e3222ec21241b7d72b8ad50b.png)  
 ![image](https://global.discourse-cdn.com/free1/uploads/precice/original/2X/e/e7f4095589537c1abc9ee1a22a260d0b1cdb3ec7.png)  
 ![image](https://global.discourse-cdn.com/free1/uploads/precice/original/2X/8/840c9980f3ba8e4fbaa1ff3b9841716c1a01a69e.png)  
 ![image](https://global.discourse-cdn.com/free1/uploads/precice/original/2X/6/6f2b4e5b981bb6df40cc47ec121ce12acf213027.png)  
 ![image](https://global.discourse-cdn.com/free1/uploads/precice/original/2X/a/af6c6364fb6926a541d9115b50314de8aee06c8c.png)  
 ![image](https://global.discourse-cdn.com/free1/uploads/precice/original/2X/2/2b61b949679a932340bbf8f89e6236c93202fdae.png)  
 ![image](https://global.discourse-cdn.com/free1/uploads/precice/original/2X/b/be4044faba87b23da9a04698d9c48b3df46f8db7.png)

---

<div class="post-metadata">

**Author:** ![daxiangxiang](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/daxiangxiang/32/2011_2.png) [@daxiangxiang](https://precice.discourse.group/u/daxiangxiang)\
**Post date:** [December 30, 2023, 3:21am UTC](https://precice.discourse.group/t/turek-benchmark-fsi3-benchmark-problem-large-displacement-deviation/1706/6 "2023-12-30T03:21:59Z")

</div>

Hi, Makis  
The Calculix FSI2 example here is not available for download:[Turek-Hron FSI 2 Benchmark](https://precice.discourse.group/t/turek-hron-fsi-2-benchmark/573)

I have modified my discrete scheme, but it is still far from the standard result. Do you have any better suggestions? This is my fvsolution file and fvscheme file.

```
   ddtSchemes
{
    default backward;
}

gradSchemes
{
    default cellLimited Gauss linear 1;
}

divSchemes
{
    default none;
    div(phi,U) Gauss linearUpwind grad(U);
    div((nuEff*dev2(T(grad(U))))) Gauss linear;
}

laplacianSchemes  
{
    default Gauss linear limited 1;
}

interpolationSchemes
{
    default linear;
}

snGradSchemes
{
    default limited 1;
}

```

```
FoamFile
{
    version 2.0;
    format ascii;
    class dictionary;
    location "system";
    object fvSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

solvers
{
    p
    {
        solver GAMG;
        tolerance 1e-6;
        relTol 1e-5;
        smoother DICGaussSeidel;
    }

    pFinal
    {
        $p;
        tolerance 1e-07;
        relTol 0;
    }

    pcorr
    {
        solver GAMG;
        tolerance 1e-5;
        relTol 1e-4;
        smoother GaussSeidel;
    }

    pcorrFinal
    {
        $pcorr;
        relTol 0;
    }

    phi
    {
        $p;
    }

    "(U|cellDisplacement)"
    {
        solver smoothSolver;
        smoother symGaussSeidel;
        tolerance 1e-8;
        relTol 1e-6;
    }

    "(U|cellDisplacement)Final"
    {
        $U;
        relTol 0;
    }
}

PIMPLE
{
    nOuterCorrectors 50;
    nCorrectors 2;
    nNonOrthogonalCorrectors 1;
    //tolerance 1.0e-12;

    correctPhi yes;
    //relTol 1e-4;
    //pisoTol 1e-6;
    consistent true;

    residualControl
    {
	    U
    	{
    		tolerance 1e-5;
    		relTol 0;
    	}
	    p
    	{
    		tolerance 1e-5;
    		relTol 0;
    	}
    }
}
PISO
{
    nNonOrthogonalCorrectors 1;
}
potentialFlow
{
    nNonOrthogonalCorrectors 1;
}

```

---

<div class="post-metadata">

**Author:** ![daxiangxiang](https://yyz2.discourse-cdn.com/free1/user_avatar/precice.discourse.group/daxiangxiang/32/2011_2.png) [@daxiangxiang](https://precice.discourse.group/u/daxiangxiang)\
**Post date:** [December 30, 2023, 3:32am UTC](https://precice.discourse.group/t/turek-benchmark-fsi3-benchmark-problem-large-displacement-deviation/1706/7 "2023-12-30T03:32:05Z")

</div>

As can be seen from the result of CFD3, it seems that increasing the number of grids will gradually approach the standard solution. Therefore, I will try to increase the number of grids recently.
