|
[Sponsors] |
set Min and Max values for pressure in pimpleFoam |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 2, 2013, 18:57 |
set Min and Max values for pressure in pimpleFoam
|
#1 |
Senior Member
Join Date: Jun 2011
Posts: 163
Rep Power: 15 |
Hi all
in my problem the velocities are calculated correctly but pressure is not. I use pimpleFoam and I want to limit the pressure I add bellow statment in fvSolution/PIMPLE pMin pMin [ 0 2 -2 0 0 0 0 ] -150; pMax pMax [ 0 2 -2 0 0 0 0 ] 150; but it not work any help will be appreciated |
|
September 3, 2013, 01:13 |
|
#2 |
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25 |
Hello
did you change your solver at all!? then those lines would not reflect anything to solver besides as you use incopressible solver i dont gauss its a good idea to limit the pressure which will be effect on continuity too and it may impair divergence issue
__________________
My Personal Website (http://nimasamkhaniani.ir/) Telegram channel (https://t.me/cfd_foam) |
|
September 3, 2013, 02:05 |
|
#3 |
Senior Member
Join Date: Jun 2011
Posts: 163
Rep Power: 15 |
Hi Nima
I have added the setting of my test case as follow: more information: I use my icoFsiFoam solver which used pimpleFoam for solve fluid. the results is good until time=0.1205 with maxCor=.6 ( deltaT ~1e-5) at the next state (Time = 0.1205+deltaT) the velocity is calculated correctly, but pressure not. I check the original pimpleFoam solver to solve fluid only, but the pressure is diverged again. I have attached its contours. fvSchemes HTML Code:
ddtSchemes { default Euler; } gradSchemes { default Gauss linear ;//cellMDLimited leastSquares 1;//extendedLeastSquares 1; // grad(p) leastSquares ; // grad(U) leastSquares ; } divSchemes { default none; div(phi,U) Gauss limitedLinearV 1;//Gauss linearUpwindV grad(U);// div(phi,k) Gauss upwind;//limitedLinear 1; div(phi,omega) Gauss upwind;//limitedLinear 1; div((nuEff*dev(T(grad(U))))) Gauss linear; div((nuEff*dev(grad(U).T()))) Gauss linear; } laplacianSchemes { default Gauss linear corrected;//Gauss linear limited 0.5;// } interpolationSchemes { default linear; } snGradSchemes { default corrected; } fluxRequired { default no; pcorr ; p; } // ************************************************************************* // fvSolutions HTML Code:
solvers { p { solver GAMG; tolerance 1e-4; relTol 0; smoother GaussSeidel; nPreSweeps 1; nPostSweeps 2; cacheAgglomeration true; directSolveCoarsest true; agglomerator faceAreaPair; nCellsInCoarsestLevel 40; mergeLevels 1; minIter 1; } pFinal { solver GAMG; tolerance 1e-8; relTol 0; smoother GaussSeidel; nPreSweeps 1; nPostSweeps 2; cacheAgglomeration true; agglomerator faceAreaPair; nCellsInCoarsestLevel 40; mergeLevels 1; minIter 1; } "(U|k|omega)" { solver PBiCG; preconditioner DILU; tolerance 1e-5; relTol 0; nSweeps 1; minIter 1; } "(UFinal|kFinal|omegaFinal)" { solver smoothSolver; smoother GaussSeidel; tolerance 1e-6; relTol 0.0; nSweeps 1; minIter 1; } } PIMPLE { nOuterCorrectors 3; nCorrectors 2; nNonOrthogonalCorrectors 3; pRefCell 0; pRefValue 0; // momentumPredictor yes; ddtPhiCorr no; correctPhi no; } relaxationFactors { fields { p 0.3; } equations { U 0.7; k 0.7; omega 0.7; } } cache { grad(U); } // ************************************************************************* // |
|
September 3, 2013, 03:24 |
|
#4 |
Senior Member
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 22 |
Bounding pressure is certainly not the way to go. Check your velocity in a few more time steps, and you will probably see something weird there as well. In other words, your solution is diverging, please check the residuals of the equations from the log file. It might be wise to study the origin of the pressure issue, which might well be related to the FSI part.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
y+ and u+ values with low-Re RANS turbulence models: utility + testcase | florian_krause | OpenFOAM | 114 | August 23, 2023 06:37 |
Problem of simulating of small droplet with radius of 2mm | liguifan | OpenFOAM Running, Solving & CFD | 5 | June 3, 2014 03:53 |
[snappyHexMesh] Adding layers goes wrong with SnappyHexMesh | Elise | OpenFOAM Meshing & Mesh Conversion | 1 | April 22, 2013 03:32 |
On the damBreak4phaseFine cases | paean | OpenFOAM Running, Solving & CFD | 0 | November 14, 2008 22:14 |
Turbo contours Max n Min Values | Sans | CFX | 2 | May 31, 2008 05:22 |