CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

How to get convergence with simpleFoam?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 17, 2022, 13:58
Default How to get convergence with simpleFoam?
  #1
New Member
 
Denny Mathew Alex
Join Date: Mar 2022
Location: Essen, Germany
Posts: 2
Rep Power: 0
dennymathewalex is on a distinguished road
Hello Everyone,
I am trying to learn openFoam by simulating a flow inside a rectangular chamber (wall-blue) with inlet (green) and outlet (red)(see figures). I use inlet velocity of (1 0 0) and fixedValue (0 0 0) as outlet condition for Pressure. I created the geometry in salome and castellated mesh was created using snappyHexMesh. I ran the simulation till 2000 and even 6000 and I was not getting a convergent solution.

I checked the mesh using checkMesh and the output was OK.
I have attached the screenshot of the calculated value of velocity at time step 1802 and 1902.
Below I have pasted the boundary condition of velocity and Pressure.
I have also pasted the controDict, fvSolution and fvSchemes that I have used.
For this case what should be the steps to be followed to get a convergent solution?
Thank you for your support in advance .

-------- Velocity Boundary File ----------------


internalField uniform (0 0 0);

boundaryField
{
inlet
{
type fixedValue;
value uniform (1 0 0);
}

outlet
{
type zeroGradient;
value uniform (0 0 0);
}

wall
{
type noSlip;
value uniform (0 0 0);
}

}

--------------- Pressure Boundary File ------------
internalField uniform 0;

boundaryField
{
inlet
{
type zeroGradient;
}

outlet
{
type fixedValue;
value uniform 0;
}

wall
{
type zeroGradient;
}

}


-------------- controlDict -----------------
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

application simpleFoam;

startFrom startTime;

startTime 1;

stopAt endTime;

endTime 6000;

deltaT 1;

writeControl timeStep;

writeInterval 100;

purgeWrite 0;

writeFormat ascii;

writePrecision 6;

writeCompression off;

timeFormat general;

timePrecision 6;

runTimeModifiable true;


---------- fvSchemes ----------------
ddtSchemes
{
default steadyState;
}

gradSchemes
{
default Gauss linear;
}

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

laplacianSchemes
{
default Gauss linear corrected;
}

interpolationSchemes
{
default linear;
}

snGradSchemes
{
default corrected;
}

------------ fvSolution --------------
solvers
{
p
{
solver GAMG;
tolerance 1e-06;
relTol 0.1;
smoother GaussSeidel;
}

U
{
solver smoothSolver;
smoother symGaussSeidel;
tolerance 1e-05;
relTol 0.1;
}
}

SIMPLE
{
nNonOrthogonalCorrectors 0;
nCorrectors 3;
consistent yes;

residualControl
{
p 1e-2;
U 1e-3;
}
}

relaxationFactors
{
fields
{
p 1;
}
equations
{
U 0.9; // 0.9 is more stable but 0.95 more convergent
}
}

----------
Attached Images
File Type: jpg inletScreenshot.jpg (20.1 KB, 4 views)
File Type: jpg outletScreenshot.jpg (19.9 KB, 4 views)
File Type: jpg slice U at 1802 Time Step.jpg (21.4 KB, 4 views)
File Type: jpg slice U at 1902 Time Step.jpg (21.1 KB, 4 views)
File Type: jpg slice p cell Magnitude at 1902.jpg (19.2 KB, 4 views)
dennymathewalex is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
simpleFoam : how to optimize timestep and assess convergence ? Talder OpenFOAM Running, Solving & CFD 2 February 15, 2019 07:48
Simplefoam Convergence Problem after Scaling by 0.001 CFDy OpenFOAM Running, Solving & CFD 4 July 23, 2018 03:27
SimpleFoam: Residual convergence problem miha23 OpenFOAM Running, Solving & CFD 0 April 24, 2018 18:50
Mesh Convergence Study - simpleFoam: Confusing Results Karpfen OpenFOAM 0 February 5, 2018 07:34
no convergence with simplefoam hei@ge OpenFOAM 14 May 22, 2012 08:34


All times are GMT -4. The time now is 11:29.