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

Can anybody please check my boundary conditions?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 25, 2011, 15:10
Default Can anybody please check my boundary conditions?
  #1
Senior Member
 
lore
Join Date: Mar 2010
Location: Italy
Posts: 460
Rep Power: 18
lovecraft22 is on a distinguished road
Send a message via Skype™ to lovecraft22
Hi all;
I'm getting some strange results for a 2D circular cylinder run at 30 m/s, see this picture please:



Now, can anybody of you guys please check my case (attached) and tell me what I'm doing wrong?

Thank you!
Attached Files
File Type: zip cilindro2D_31.zip (20.8 KB, 48 views)
lovecraft22 is offline   Reply With Quote

Old   July 25, 2011, 17:12
Default
  #2
New Member
 
Sukanta Rakshit
Join Date: Jun 2009
Posts: 16
Rep Power: 17
srakshit is on a distinguished road
Quote:
I'm getting some strange results for a 2D circular cylinder run at 30 m/s, see this picture please
In your setting,the velocity inlet is at 30 m/s but the outlet is at zeroGradient. This is creating the problem in your domain. keep the velocity constant at 30 m/s.
srakshit is offline   Reply With Quote

Old   July 25, 2011, 18:08
Default
  #3
New Member
 
BT
Join Date: Jan 2011
Posts: 16
Rep Power: 15
MasterCooler is on a distinguished road
Hey lovecraft22,

without having had the files opened and analysed (I am in a windows session) it reminds me of a problem I had some months ago. Then as a really new user I did the mistake to violate the rules to create blocks in blockMesh. My block was created instead of in a right-hand in a left-hand coordinate system. It was very strange that I could create the blockMesh without having problems. Also I could show it in paraView where it looked really nice and as assumed. As I didn't expect any problem I didn't execute checkMesh but started the calculation directly. And saw really strange results, inexplicable and senseless results like yours.

Therefore the question: have you performed a checkMesh run and says checkMesh that your mesh is okay?

Further I can't comprehend the hint of srakshit. I did several simulation with fixedValue for inlet velocity and zeroGradient for outlet velocity. As I know it should work if you use a zeroGradient condition for pressure at the inlet and fixedValue condition for pressure at the outlet.

Cheers
MasterCooler
MasterCooler is offline   Reply With Quote

Old   July 25, 2011, 18:13
Default
  #4
New Member
 
Sukanta Rakshit
Join Date: Jun 2009
Posts: 16
Rep Power: 17
srakshit is on a distinguished road
Yes, I agree with MasterCooler. Out of U and p, one value should be fixed for either inlet or outlet.
srakshit is offline   Reply With Quote

Old   July 26, 2011, 03:18
Default
  #5
Senior Member
 
lore
Join Date: Mar 2010
Location: Italy
Posts: 460
Rep Power: 18
lovecraft22 is on a distinguished road
Send a message via Skype™ to lovecraft22
Thanks to both of you.

I haven't performed a check mesh, I'll surely do that.
About my boundary conditions, how would you advise to set them as?

Thank you!
lovecraft22 is offline   Reply With Quote

Old   July 26, 2011, 09:25
Default
  #6
New Member
 
BR
Join Date: May 2009
Posts: 23
Rep Power: 17
Balakrshnan Ramakrishnan is on a distinguished road
can you please explain why you have mentioned

frontAndBack as symmetryPlane ?

and upper and lowerWall as empty?

Are you trying to do a simulation in Z direction???
Balakrshnan Ramakrishnan is offline   Reply With Quote

Old   July 26, 2011, 14:37
Default
  #7
Senior Member
 
lore
Join Date: Mar 2010
Location: Italy
Posts: 460
Rep Power: 18
lovecraft22 is on a distinguished road
Send a message via Skype™ to lovecraft22
I'm trying to simulate a flow in the x-y plane, so the planes parallel to this have to be empty…
lovecraft22 is offline   Reply With Quote

Old   July 26, 2011, 14:40
Default
  #8
New Member
 
BR
Join Date: May 2009
Posts: 23
Rep Power: 17
Balakrshnan Ramakrishnan is on a distinguished road
are you sure??

can you try with frontAndBack with empty ,

upperWall and lowerWall with symmetry?

I think it will work..
Balakrshnan Ramakrishnan is offline   Reply With Quote

Old   July 26, 2011, 14:50
Default
  #9
Senior Member
 
lore
Join Date: Mar 2010
Location: Italy
Posts: 460
Rep Power: 18
lovecraft22 is on a distinguished road
Send a message via Skype™ to lovecraft22
Actually, if you look at my blockMeshDict you'll see that frontAndBack are the planes parallel to the xz plane (red in the following picture) while upperWall and lowerWall are the planes parallel to the xy plane (yellow in the following picture).
So, I think this boundary conditions should be fine…
Attached Images
File Type: png 1.png (6.4 KB, 32 views)
lovecraft22 is offline   Reply With Quote

Old   July 26, 2011, 16:59
Default
  #10
New Member
 
Sukanta Rakshit
Join Date: Jun 2009
Posts: 16
Rep Power: 17
srakshit is on a distinguished road
If your domain is 1 cell thick in z direction, then keeping the frontAndBack patch as 'empty' will reduce the computational efforts (it wont solve U for that direction). Otherwise, i dont think it will matter. About the upper and lower wall, keeping them to 'symmetry' is a better choice. I have no idea what an empty patch will do at the wall, but again those area shouldn't effect the nature of flow you are working with.

Just use the suggestions mentioned earlier for your inlet and outlet boundary.
srakshit is offline   Reply With Quote

Old   July 26, 2011, 17:29
Default
  #11
Senior Member
 
lore
Join Date: Mar 2010
Location: Italy
Posts: 460
Rep Power: 18
lovecraft22 is on a distinguished road
Send a message via Skype™ to lovecraft22
Thank you Sukanata…
I haven't quite well understood what you mean with watch you suggested about the boundary conditions…

I'd really appreciate if you could give me some more detailed informations.

Thank you!
lovecraft22 is offline   Reply With Quote

Old   July 26, 2011, 17:55
Default
  #12
New Member
 
Sukanta Rakshit
Join Date: Jun 2009
Posts: 16
Rep Power: 17
srakshit is on a distinguished road
ok...since you are doing flow past a cylinder with 30 m/s velocity. Your inlet boundary is consistent (since Velocity is initialized and pressure is kept floating).
Problem is with your outflow boundary. Both of your variables are floating (which may be the reason for waves bouncing inside the domain and velocity rising upto 900 m/s.) Initialize either pressure or velocity for the the outlet. Try using 30 m/s for velocity outlet if outlet pressure is unknown.
srakshit is offline   Reply With Quote

Old   July 27, 2011, 03:21
Default
  #13
Senior Member
 
lore
Join Date: Mar 2010
Location: Italy
Posts: 460
Rep Power: 18
lovecraft22 is on a distinguished road
Send a message via Skype™ to lovecraft22
Ok, this way thought I'll set the velocity at the outlet at 30 m/s but that's not the physical case… Am I correct?
lovecraft22 is offline   Reply With Quote

Old   July 27, 2011, 03:51
Default
  #14
New Member
 
Sukanta Rakshit
Join Date: Jun 2009
Posts: 16
Rep Power: 17
srakshit is on a distinguished road
Are you validating some experiments?

If the pressure is unknown, you should define the velocity at the boundary. Keeping both of them floating is inconsistent. Since this is a steady state analysis of flow past a cylinder, you can assume a constant velocity.
srakshit is offline   Reply With Quote

Old   July 27, 2011, 04:18
Default
  #15
Senior Member
 
lore
Join Date: Mar 2010
Location: Italy
Posts: 460
Rep Power: 18
lovecraft22 is on a distinguished road
Send a message via Skype™ to lovecraft22
Ok, I'll set them as you suggested and we'll what comes out...

Just another quick question: which boundary conditions would you set if you were running a car in a free stream?

Thank you once again!
lovecraft22 is offline   Reply With Quote

Old   July 27, 2011, 04:22
Default
  #16
New Member
 
Joel Lehikoinen
Join Date: Jun 2011
Posts: 26
Rep Power: 15
joel.lehikoinen is on a distinguished road
If you are running an incompressible simulation you can naturally fix pressure at the outlet.
joel.lehikoinen is offline   Reply With Quote

Old   July 27, 2011, 04:24
Default
  #17
New Member
 
Sukanta Rakshit
Join Date: Jun 2009
Posts: 16
Rep Power: 17
srakshit is on a distinguished road
For an unsteady analysis, zero gradient for both pressure and velocity will be fine. But for steady state study, its better to have a steady state boundary for both inlet and outlet.
srakshit is offline   Reply With Quote

Old   July 27, 2011, 08:31
Default
  #18
Senior Member
 
lore
Join Date: Mar 2010
Location: Italy
Posts: 460
Rep Power: 18
lovecraft22 is on a distinguished road
Send a message via Skype™ to lovecraft22
Can't I set the pressure at the outlet to be the same as the freestream static pressure?
lovecraft22 is offline   Reply With Quote

Old   July 31, 2011, 00:12
Default
  #19
New Member
 
Sukanta Rakshit
Join Date: Jun 2009
Posts: 16
Rep Power: 17
srakshit is on a distinguished road
Yes, you can try setting the outlet pressure at freeStream.
srakshit is offline   Reply With Quote

Old   August 2, 2011, 14:57
Default
  #20
Senior Member
 
lore
Join Date: Mar 2010
Location: Italy
Posts: 460
Rep Power: 18
lovecraft22 is on a distinguished road
Send a message via Skype™ to lovecraft22
Hi again;
I changed the boundary conditions but I'm still getting some really strange results, se the picture attached: the free stream should be coming from left to right at 30 m/s.

I've also attached my new boundary conditions.

Does anybody have a clue of what's going on here?


Thank you!
Attached Images
File Type: jpg 1.jpg (32.3 KB, 19 views)
Attached Files
File Type: zip 0.zip (2.8 KB, 9 views)
lovecraft22 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
Impinging Jet Boundary Conditions Anindya Main CFD Forum 25 February 27, 2016 13:58
CFX does not continue Shafiul CFX 10 February 17, 2011 08:57
Proper Pressure Boundary Conditions for Buoyant Flow mchurchf OpenFOAM 0 March 25, 2010 13:16
Cell check and Boundary check errors AB Siemens 4 October 28, 2004 14:04
Please help with flow around car modelling! Tudor Miron CFX 17 March 19, 2004 20:23


All times are GMT -4. The time now is 23:59.