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

New to OpenFOAM: Basic cylinder flow error

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By NewtoFOAM

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 20, 2016, 18:59
Default New to OpenFOAM: Basic cylinder flow error
  #1
New Member
 
David
Join Date: May 2013
Posts: 9
Rep Power: 13
NewtoFOAM is on a distinguished road
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
NewtoFOAM is offline   Reply With Quote

Old   July 24, 2016, 15:33
Default
  #2
Senior Member
 
Join Date: Sep 2010
Posts: 226
Rep Power: 17
T.D. is on a distinguished road
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.
T.D. is offline   Reply With Quote

Old   July 24, 2016, 18:18
Default
  #3
Senior Member
 
matej forman
Join Date: Mar 2009
Location: Brno, Czech Republic
Posts: 182
Rep Power: 17
matejfor is on a distinguished road
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?
matejfor is offline   Reply With Quote

Old   July 25, 2016, 16:13
Default
  #4
New Member
 
David
Join Date: May 2013
Posts: 9
Rep Power: 13
NewtoFOAM is on a distinguished road
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
matejfor likes this.
NewtoFOAM 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
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


All times are GMT -4. The time now is 22:54.