Skip to content

Commit

Permalink
Tune FF sonicLiquidFoam to converge
Browse files Browse the repository at this point in the history
  • Loading branch information
uekerman committed Jul 29, 2020
1 parent c0e61f5 commit 91160d7
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 26 deletions.
Expand Up @@ -17,7 +17,8 @@ FoamFile

ddtSchemes
{
default Euler;
//default Euler;
default CrankNicolson 0.45;
}

gradSchemes
Expand Down Expand Up @@ -48,4 +49,4 @@ snGradSchemes
}


// ************************************************************************* //
// ************************************************************************* //
Expand Up @@ -19,34 +19,37 @@ solvers
{
"p.*"
{
solver smoothSolver;
smoother symGaussSeidel;
solver PBiCG;
preconditioner DILU
//smoother symGaussSeidel;
tolerance 1e-06;
relTol 0;
relTol 0.01;
}

"U.*"
{
$p;
solver PBiCG;
preconditioner DILU;
tolerance 1e-05;
relTol 0;
relTol 0.1;
}

"rho.*"
{
solver PCG;
preconditioner DIC;
tolerance 1e-05;
relTol 0;
relTol 0.1;
}
}

PIMPLE
{
nOuterCorrectors 2;
nCorrectors 1;
nOuterCorrectors 4;
nCorrectors 2;
nNonOrthogonalCorrectors 0;
}


// ************************************************************************* //
// ************************************************************************* //
Expand Up @@ -17,7 +17,8 @@ FoamFile

ddtSchemes
{
default Euler;
//default Euler;
default CrankNicolson 0.45;
}

gradSchemes
Expand Down Expand Up @@ -48,4 +49,4 @@ snGradSchemes
}


// ************************************************************************* //
// ************************************************************************* //
Expand Up @@ -19,34 +19,37 @@ solvers
{
"p.*"
{
solver smoothSolver;
smoother symGaussSeidel;
solver PBiCG;
preconditioner DILU
//smoother symGaussSeidel;
tolerance 1e-06;
relTol 0;
relTol 0.01;
}

"U.*"
{
$p;
solver PBiCG;
preconditioner DILU;
tolerance 1e-05;
relTol 0;
relTol 0.1;
}

"rho.*"
{
solver PCG;
preconditioner DIC;
tolerance 1e-05;
relTol 0;
relTol 0.1;
}
}

PIMPLE
{
nOuterCorrectors 2;
nCorrectors 1;
nOuterCorrectors 4;
nCorrectors 2;
nNonOrthogonalCorrectors 0;
}


// ************************************************************************* //
// ************************************************************************* //
Expand Up @@ -50,7 +50,7 @@

<m2n:sockets from="Fluid1" to="Fluid2"/>

<coupling-scheme:serial-implicit>
<coupling-scheme:parallel-implicit>
<time-window-size value="0.01"/>
<max-time value="1.0"/>
<participants first="Fluid1" second="Fluid2"/>
Expand All @@ -60,18 +60,21 @@
<!--<exchange data="VelocityGradient" mesh="Fluid2-Mesh" from="Fluid2" to="Fluid1"/>-->

<max-iterations value="100"/>
<relative-convergence-measure limit="1.0e-6" data="Pressure" mesh="Fluid2-Mesh"/>
<relative-convergence-measure limit="1.0e-3" data="Pressure" mesh="Fluid2-Mesh"/>
<!--<relative-convergence-measure limit="1.0e-6" data="PressureGradient" mesh="Fluid2-Mesh"/>-->
<relative-convergence-measure limit="1.0e-6" data="Velocity" mesh="Fluid1-Mesh"/>
<relative-convergence-measure limit="1.0e-3" data="Velocity" mesh="Fluid1-Mesh"/>

<acceleration:IQN-ILS>
<data mesh="Fluid2-Mesh" name="Pressure" />
<initial-relaxation value="0.01" />
<data mesh="Fluid1-Mesh" name="Velocity" />
<preconditioner type="residual-sum" />
<initial-relaxation value="0.1" />
<max-used-iterations value="80" />
<time-windows-reused value="10" />
<filter type="QR1" limit="1e-8" />
<filter type="QR1" limit="1e-6" />
</acceleration:IQN-ILS>
</coupling-scheme:serial-implicit>

</coupling-scheme:parallel-implicit>

</solver-interface>
</precice-configuration>

0 comments on commit 91160d7

Please sign in to comment.