|
[Sponsors] |
July 20, 2016, 18:59 |
New to OpenFOAM: Basic cylinder flow error
|
#1 |
New Member
David
Join Date: May 2013
Posts: 9
Rep Power: 13 |
Hello everyone,
Been a while since using Openfoam but I want to get back into it for an interesting problem I have at work. I thought I'd see if I could just simulate flow through a cylinder but, annoyingly, I can't even get this to work. I have three boundaries; inlet, outlet and surface with the following simple conditions U: inlet { type fixedValue; value uniform (0 0 1); } outlet { type zeroGradient; } surface { type fixedValue; value uniform (0 0 0); } p: inlet { type zeroGradient; } outlet { type fixedValue; value uniform 0; } surface { type zeroGradient; } When running simpleFOAM the pressure solver falls over on the first iteration. That leads me to think that my boundaries are incorrect.....but I really don't know what I'm doing wrong. Maybe my solver set ups are wrong....but I've copied them from a simpleFOAM tutorial and seem sensible. I'm using OpenFOAM for windows (latest). I've uploaded the case file to here. http://www.filedropper.com/ahu If anyone could help me tell me what daft mistake I'm making I would be ever so grateful. Thanks in advance, Dave |
|
July 24, 2016, 15:33 |
|
#2 |
Senior Member
Join Date: Sep 2010
Posts: 226
Rep Power: 17 |
Hi,
with simpleFoam solver, many times you need to play with the values in "relaxationFactors" and "nNonOrthogonalCorrectors" in system/fvSolution Did you try this ? Did you check mesh errors, by "checkMesh -allTopology" Regards, T.D. |
|
July 24, 2016, 18:18 |
|
#3 |
Senior Member
matej forman
Join Date: Mar 2009
Location: Brno, Czech Republic
Posts: 182
Rep Power: 17 |
Well if your case is failing in the first pressure solution, your assumption was absolutely correct. Wrong BCs. Are you sure, that 'z' direction for velocity is the right one? (Just checking). What about your initial conditions? And as noted above, what about your mesh quality? Mainly non-orthogonality? What solver are you using for pressure? GAMG? what is the settings for it? Do you use SIMPLE or SIMPLEC? And last not least, what happens, when you run potentialFlow on the case instead of simpleFoam?
|
|
July 25, 2016, 16:13 |
|
#4 |
New Member
David
Join Date: May 2013
Posts: 9
Rep Power: 13 |
Hello all,
Thank you all for your messages! I changed my GAMG solver to a PCG solver with a cheeky DIC conditioner and it seemed to work a treat! Now I can focus on my actual interesting problem. Thank you all again for your help. Cheers, Dave |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Building OpenFOAM1.7.0 from source | ata | OpenFOAM Installation | 46 | March 6, 2022 14:21 |
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch | gschaider | OpenFOAM Installation | 225 | August 25, 2015 20:43 |
How to install CGNS under windows xp? | lzgwhy | Main CFD Forum | 1 | January 11, 2011 19:44 |
CGNS lib and Fortran compiler | manaliac | Main CFD Forum | 2 | November 29, 2010 07:25 |
user subroutine error | CFDUSER | CFX | 2 | December 9, 2006 07:31 |