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   August 3, 2011, 05:47
Default
  #21
New Member
 
Sukanta Rakshit
Join Date: Jun 2009
Posts: 16
Rep Power: 17
srakshit is on a distinguished road
Why the outlet pressure is set fixedValue = zero? It should be zeroGradient.
srakshit is offline   Reply With Quote

Old   August 3, 2011, 07:53
Default
  #22
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 Sukanta.

I changed the pressure boundary condition as the following:

Code:
boundaryField
{
    inlet
    {
        type            fixedValue;
        value           uniform 0;
    }

    outlet
    {
	type            zeroGradient;
    }
Now the overall flow field is more reasonable but the velocity is too high at some points and I still have some strange feature (see pic attached).

What do you think?


Thank you!
Attached Images
File Type: jpg 1.jpg (28.4 KB, 20 views)
Attached Files
File Type: zip 0.zip (2.8 KB, 5 views)
lovecraft22 is offline   Reply With Quote

Old   August 3, 2011, 08:00
Default
  #23
New Member
 
BR
Join Date: May 2009
Posts: 23
Rep Power: 17
Balakrshnan Ramakrishnan is on a distinguished road
Quote:
Originally Posted by srakshit View Post
Why the outlet pressure is set fixedValue = zero? It should be zeroGradient.
If the velocity is specified at the inlet, usually we take the case that outlet is at atmospheric pressure.
Since we use relative scale for pressure, we assume the atmospheric pressure is zero.
The outlet is to be set to zero if it is at atmospheric pressure.
If you get a pressure below zero, its less than atmospheric pressure.

I hope I am correct.
Balakrshnan Ramakrishnan is offline   Reply With Quote

Old   August 3, 2011, 08:04
Default
  #24
New Member
 
Sukanta Rakshit
Join Date: Jun 2009
Posts: 16
Rep Power: 17
srakshit is on a distinguished road
But why inlet is fixed at zero now? Change in to zeroGradient

You have 30 m/s constant flow. Just tell me one thing if U at inlet is 30 m/s and Pressure is zero in that patch...is it consistent?
srakshit is offline   Reply With Quote

Old   August 3, 2011, 08:09
Default
  #25
New Member
 
BR
Join Date: May 2009
Posts: 23
Rep Power: 17
Balakrshnan Ramakrishnan is on a distinguished road
Quote:
Originally Posted by srakshit View Post
But why inlet is fixed at zero now? Change in to zeroGradient

You have 30 m/s constant flow. Just tell me one thing if U at inlet is 30 m/s and Pressure is zero in that patch...is it consistent?
I am not able to make the mesh given in this case since I use OF-1.7.x.
But from blockMeshDict I can say there is something wrong with naming the patches.
I guess in this case the patches inlet and outlet are swapped. But I am not sure.


If the inlet is set to some velocity, say 30 m/s, the pressure is set to zeroGradient.
Also if the outlet is set to be with a pressure ( fixedValue )of zero , then the inlet
should be zeroGradient. I do this in my cases and I get good results
Balakrshnan Ramakrishnan is offline   Reply With Quote

Old   August 3, 2011, 08:10
Default
  #26
New Member
 
Sukanta Rakshit
Join Date: Jun 2009
Posts: 16
Rep Power: 17
srakshit is on a distinguished road
Quote:
If the velocity is specified at the inlet, usually we take the case that outlet is at atmospheric pressure.
Since we use relative scale for pressure, we assume the atmospheric pressure is zero.
The outlet is to be set to zero if it is at atmospheric pressure.
If you get a pressure below zero, its less than atmospheric pressure.

I hope I am correct.
I do not think the pressure specified in the solver is relative. So u should either keep it floating or keep the absolute pressure.
srakshit is offline   Reply With Quote

Old   August 3, 2011, 08:21
Default
  #27
New Member
 
BR
Join Date: May 2009
Posts: 23
Rep Power: 17
Balakrshnan Ramakrishnan is on a distinguished road
Quote:
Originally Posted by srakshit View Post
I do not think the pressure specified in the solver is relative. So u should either keep it floating or keep the absolute pressure.
The solver uses Gauge pressure - reference to the atmospheric pressure- where atmospheric pressure is zero. In absolute pressures negative value is not possible(except in some cases like trees). But in our simulation we get negative pressures all the time. So it cannot be absolute pressure. whatever we do in normal CFD(everyday) is Gauge pressure.

Hope this helps
Balakrshnan Ramakrishnan is offline   Reply With Quote

Old   August 3, 2011, 08:48
Default
  #28
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
1. I had to change the inlet condition also because otherwise I got an error which basically said that the solver couldn't find any reference cell for pressure.

2. Pressure is relative, so (I think) you can have 30m/s velocity with 0 pressure because that mean that the pressure s the same as ambient static pressure

3. Inlet and outlet are fine, just checked them in paraview.

4. I ran the simulation for another 1000 iterations and the strange behavior underlined in previous pic disappeared but I'm still getting way too high velocity…
Attached Images
File Type: png 1.png (50.5 KB, 19 views)
lovecraft22 is offline   Reply With Quote

Old   August 3, 2011, 08:52
Default
  #29
New Member
 
BR
Join Date: May 2009
Posts: 23
Rep Power: 17
Balakrshnan Ramakrishnan is on a distinguished road
@lovecraft22

Why is there a zero velocity line (vertical streak of blue)at the inlet? is it due to your boundary conditions?
Balakrshnan Ramakrishnan is offline   Reply With Quote

Old   August 3, 2011, 08:56
Default
  #30
New Member
 
Sukanta Rakshit
Join Date: Jun 2009
Posts: 16
Rep Power: 17
srakshit is on a distinguished road
its because the velocity = 30 m/s at inlet.

what is the outlet velocity boundary in this case?
srakshit is offline   Reply With Quote

Old   August 3, 2011, 08:56
Default
  #31
New Member
 
BR
Join Date: May 2009
Posts: 23
Rep Power: 17
Balakrshnan Ramakrishnan is on a distinguished road
May be you can have a look at my simulation -> see attached pic
Attached Images
File Type: jpg sim1.jpg (18.0 KB, 18 views)
Balakrshnan Ramakrishnan is offline   Reply With Quote

Old   August 3, 2011, 08:59
Default
  #32
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
That's my inlet condition: he velocity is not 0 but 30m/s.

About the outlet, the velocity is around 3000 m/s!!
It's an hypersonic cylinder!
Attached Images
File Type: png 1.png (8.6 KB, 8 views)
File Type: png 2.png (90.6 KB, 13 views)
lovecraft22 is offline   Reply With Quote

Old   August 3, 2011, 09:02
Default
  #33
New Member
 
Sukanta Rakshit
Join Date: Jun 2009
Posts: 16
Rep Power: 17
srakshit is on a distinguished road
what boundary condition you are using for outlet?

Also what pRefValue you are using?
srakshit is offline   Reply With Quote

Old   August 3, 2011, 09:08
Default
  #34
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
Quote:
Originally Posted by Balakrshnan Ramakrishnan View Post
May be you can have a look at my simulation -> see attached pic
Could you upload your boundary conditions?

Thank you!
lovecraft22 is offline   Reply With Quote

Old   August 3, 2011, 09:16
Default
  #35
New Member
 
Sukanta Rakshit
Join Date: Jun 2009
Posts: 16
Rep Power: 17
srakshit is on a distinguished road
Try these boundary settings

for pressure

inlet
{
type freestreamPressure;
}

outlet
{
type freestreamPressure;
}

for velocity

inlet
{
type freestream;
freestreamValue uniform (30 0 0);
}

outlet
{
type freestream;
freestreamValue uniform (30 0 0);
}
srakshit is offline   Reply With Quote

Old   August 3, 2011, 09:28
Default
  #36
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
You have to define one pressure value at least.

I set the pressure value to 0 at the inlet and the rest as you suggested.
Now it's running, let's see what comes out.
lovecraft22 is offline   Reply With Quote

Old   August 3, 2011, 09:41
Default
  #37
New Member
 
BR
Join Date: May 2009
Posts: 23
Rep Power: 17
Balakrshnan Ramakrishnan is on a distinguished road
Quote:
Originally Posted by lovecraft22 View Post
That's my inlet condition: he velocity is not 0 but 30m/s.

About the outlet, the velocity is around 3000 m/s!!
It's an hypersonic cylinder!
Oops i thought you are just doing low velocity simulations.

which solver you use for hypersonic flows?
Balakrshnan Ramakrishnan is offline   Reply With Quote

Old   August 3, 2011, 09:43
Default
  #38
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 was just kidding about the fact that though I'm running a low velocity simulation yet I get an hypersonic velocity at the outlet…
lovecraft22 is offline   Reply With Quote

Old   August 3, 2011, 09:44
Default
  #39
New Member
 
BR
Join Date: May 2009
Posts: 23
Rep Power: 17
Balakrshnan Ramakrishnan is on a distinguished road
Quote:
Originally Posted by lovecraft22 View Post
I was just kidding about the fact that though I'm running a low velocity simulation yet I get an hypersonic velocity at the outlet…
Lol...

Which version of OF are you using?
Balakrshnan Ramakrishnan is offline   Reply With Quote

Old   August 3, 2011, 09:46
Default
  #40
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
OpenFoam 2.0.0
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:50.