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

pressureInletOutletVelocity

Register Blogs Community New Posts Updated Threads Search

Like Tree49Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 19, 2010, 04:35
Lightbulb pressureInletOutletVelocity
  #1
Senior Member
 
maysmech's Avatar
 
Join Date: Jan 2010
Posts: 347
Blog Entries: 2
Rep Power: 17
maysmech is on a distinguished road
Hello Foamers,

I want to simulate a problem which i should set pressure at outlet. as it is not zeroGradient because it is not fully developed flow i should use another outlet type. i read user guide and i think this is a good choice:
HTML Code:
pressureInletOutletVelocity     Combination of pressureInletVelocity and inletOutlet
the question is what should i set for U outlet type?

Best regards,
Maysam
maysmech is offline   Reply With Quote

Old   October 19, 2010, 05:34
Default
  #2
Senior Member
 
Join Date: Mar 2009
Posts: 225
Rep Power: 18
paka is on a distinguished road
Depends on your boundary condition.

I pressume, this is just ordinary atmosphere kind outlet, right? In this case probably this will be the best choice

{
type pressureInletOutletVelocity;
value uniform (0 0 0);
}
paka is offline   Reply With Quote

Old   March 7, 2012, 08:46
Default
  #3
New Member
 
Join Date: Sep 2011
Posts: 10
Rep Power: 15
yipiyaya8 is on a distinguished road
Quote:
Originally Posted by paka View Post
Depends on your boundary condition.

I pressume, this is just ordinary atmosphere kind outlet, right? In this case probably this will be the best choice

{
type pressureInletOutletVelocity;
value uniform (0 0 0);
}

Hi...does it means we know the inlet pressure and we want to know outlet velocity by this by using this function?
yipiyaya8 is offline   Reply With Quote

Old   March 7, 2012, 13:26
Default
  #4
Senior Member
 
calim_cfd's Avatar
 
mauricio
Join Date: Jun 2011
Posts: 172
Rep Power: 18
calim_cfd is on a distinguished road
Quote:
Originally Posted by maysmech View Post
Hello Foamers,

I want to simulate a problem which i should set pressure at outlet. as it is not zeroGradient because it is not fully developed flow i should use another outlet type. i read user guide and i think this is a good choice:
HTML Code:
pressureInletOutletVelocity     Combination of pressureInletVelocity and inletOutlet
the question is what should i set for U outlet type?

Best regards,
Maysam
when you use pressureInletOutletVelocity for U
you should use totalPressure for p

they are self-stabilizing bcs
__________________
Best Regards
/calim

"Elune will grant us the strength"
calim_cfd is offline   Reply With Quote

Old   March 15, 2012, 07:33
Default
  #5
New Member
 
Join Date: Sep 2011
Posts: 10
Rep Power: 15
yipiyaya8 is on a distinguished road
Quote:
Originally Posted by calim_cfd View Post
when you use pressureInletOutletVelocity for U
you should use totalPressure for p

they are self-stabilizing bcs
Hi Mauricio,
but is seems in most case total pressure use in inlet and static pressure in outlet?
Also pressureInletOutletVelocity for U can be set in outlet? I was thiking it can only be set in inlet. I am confuse
yipiyaya8 is offline   Reply With Quote

Old   March 15, 2012, 10:36
Default
  #6
Senior Member
 
calim_cfd's Avatar
 
mauricio
Join Date: Jun 2011
Posts: 172
Rep Power: 18
calim_cfd is on a distinguished road
the bcs i mentioned they kinda form a consistent pair and regarding the usage,, i guess you can use it for outlets, but then you have to handle the signs..

here's the description, guess you've seen it already.. i haven't tried it thou

pressureInletOutletVelocity
Code:
Description
    Velocity inlet/outlet boundary condition patches for where the pressure is
    specified.  zero-gradient is applied for outflow (as defined by the flux)
    and for inflow the velocity is obtained from the patch-face normal
    component of the internal-cell value.
pls give it a try if u have the time and keep us post!
ty
__________________
Best Regards
/calim

"Elune will grant us the strength"
calim_cfd is offline   Reply With Quote

Old   March 15, 2012, 10:45
Default
  #7
New Member
 
Join Date: Sep 2011
Posts: 10
Rep Power: 15
yipiyaya8 is on a distinguished road
Quote:
Originally Posted by calim_cfd View Post
the bcs i mentioned they kinda form a consistent pair and regarding the usage,, i guess you can use it for outlets, but then you have to handle the signs..

here's the description, guess you've seen it already.. i haven't tried it thou

pressureInletOutletVelocity
Code:
Description
    Velocity inlet/outlet boundary condition patches for where the pressure is
    specified.  zero-gradient is applied for outflow (as defined by the flux)
    and for inflow the velocity is obtained from the patch-face normal
    component of the internal-cell value.
pls give it a try if u have the time and keep us post!
ty
Thanks Mauricio,

Where you found this description? Any other document besides the website?
yipiyaya8 is offline   Reply With Quote

Old   March 15, 2012, 14:24
Default
  #8
Senior Member
 
calim_cfd's Avatar
 
mauricio
Join Date: Jun 2011
Posts: 172
Rep Power: 18
calim_cfd is on a distinguished road
the source code

go to your instalation directory (type "which icoFoam" in a terminal and u'll find the dir)

then open de *.H and *.C files. they have the descriptions. Search for the name you want, there will generally be a file with such name or very close one..

theres also a version @ http://www.openfoam.org/docs/cpp/ which has the same files in html
__________________
Best Regards
/calim

"Elune will grant us the strength"
calim_cfd is offline   Reply With Quote

Old   March 16, 2012, 09:03
Default
  #9
New Member
 
Join Date: Sep 2011
Posts: 10
Rep Power: 15
yipiyaya8 is on a distinguished road
Yup! I found that but hv to go deep into scr!

http://www.openfoam.org/docs/cpp/
http://foam.sourceforge.net/docs/cpp/a04208_source.html

Quote:
Description
00027 Description
00028 Velocity inlet/outlet boundary condition for pressure boundary where the
00029 pressure is specified. zero-gradient is applied for outflow (as defined
00030 by the flux) and for inflow the velocity is obtained from the flux with
00031 the specified `inletDirection'.
00032
00033 Slip condition applied tangential to the patch.

Notice the last part ''.....for inflow the velocity is obtained from the flux with the specified `inletDirection'.'' Isnt it means if specified inlet direction it becomes pressureDirectedInletOutletVelocity


I have tried myself with specified outlet velocity with pressureDirectedInletOutletVelocity and inlet with zeroGradient. The simulation can run and vector velocity seems OK!

But I havent justified its correctness.

Now i try the reverse method inlet velocity pressureDirectedInletOutletVelocity and outlet zeroGradient then see both result.

Last edited by yipiyaya8; March 16, 2012 at 09:21.
yipiyaya8 is offline   Reply With Quote

Old   November 16, 2012, 07:33
Default
  #10
Member
 
Aathavan
Join Date: Nov 2012
Posts: 70
Rep Power: 14
Aadhavan is on a distinguished road
Dear Friends,
I have a small problem, actually I got confused totally,
the think is i want to keep the total pressure as constant in my whole domain,
I have calculate that my Pd = 64.5Pa
now I want to implement this,
I want to give pressure inlet and pressure outlet

0/U
inlet
{
type pressureInletOutletVelocity;
value uniform (0 0 0) // what value i need to use here or is it ok?
}

0/p
inlet
{
type fixedValue;
}

outlet
{
type fixedValue;
value uniform 101325;
}

what is the condition I need to give for inlet?

thanks,
Aadhavan
Attached Files
File Type: txt p.txt (1.6 KB, 286 views)
File Type: txt U.txt (1.9 KB, 201 views)
Aadhavan is offline   Reply With Quote

Old   November 16, 2012, 20:01
Default
  #11
Senior Member
 
calim_cfd's Avatar
 
mauricio
Join Date: Jun 2011
Posts: 172
Rep Power: 18
calim_cfd is on a distinguished road
hi, let me see if i got this right.. u want to keep the total pressure constant in the whole domain, yet you have a pressure difference (Pd??) of 65pa between inlet-outlet??? i'm sry but i think you need to re-think your problem a bit.. physically speaking... if the total pressure is even in the whole domain i guess there's no dynamics at all!? right? dude i say give your problem a thought and/or explain it better cuz they way u did it looks rly unreasonable..
__________________
Best Regards
/calim

"Elune will grant us the strength"
calim_cfd is offline   Reply With Quote

Old   November 17, 2012, 09:19
Default fan simulation
  #12
Member
 
Aathavan
Join Date: Nov 2012
Posts: 70
Rep Power: 14
Aadhavan is on a distinguished road
Hi Fomers and Calim;

I am simulating a fan using MRFSimpleFoam,
I have given the boundary condition as follows,
0/U

inlet
{
type flowRateInletVelocity;
flowRate 2;
value uniform (0 0 0);
}
outlet
{
type zeroGradient;
}

0/P

inlet
{
type zeroGradient;
}

outlet
{
type fixedValue;
value uniform 101325;
}

the simulation ran upto 10000 Iteration,
I have attached the Residual plot as well, please have a look.
but the result is not matching with experimental result.

actually inlet pressure should be less than outlet pressure but I an getting other way around.

I am trying to fix this issue by giving different BC as follows,

0/U

outlet
{
type zeroGradient;
}
inlet
{
type pressureInletOutletVelocity;
value uniform (0 0 0)

0/p

inlet
{
type totalPressure;
gamma 0;
p0 uniform 101325; // total pressure
value uniform 101325;
}

outlet
{
type fixedValue;
value uniform 101260.5; // static pressure
}

while execute the solver, I am getting the following error,

Create mesh for time = 0

Reading field p

Reading field U



--> FOAM FATAL IO ERROR:
Cannot find patchField entry for cyclic ILR0
Is your field uptodate with split cyclics?
Run foamUpgradeCyclics to convert mesh and fields to split cyclics.

file: /home/cerecam/OpenFOAM/OpenFOAM-2.0.1/tutorials/incompressible/MRFSimpleFoam/exCompDomain/onlyPressure/0/U::boundaryField from line 25 to line 76.

From function GeometricField<Type, PatchField, GeoMesh>::
GeometricBoundaryField::GeometricBoundaryField
(
const BoundaryMesh&,
const DimensionedField<Type, GeoMesh>&,
const dictionary&
)
in file /home/cerecam/OpenFOAM/OpenFOAM-2.0.1/src/OpenFOAM/lnInclude/GeometricBoundaryField.C at line 271.

FOAM exiting


please guide me how to approach this problem,
I am really struggling to solve this problem.
please help me,

thanks,
Aadhavn
Attached Images
File Type: jpg Screenshot from 2012-10-30 10:38:16.jpg (26.2 KB, 398 views)
Aadhavan is offline   Reply With Quote

Old   January 21, 2013, 09:34
Default what should be the value for pressureInletOutlet bc
  #13
New Member
 
sirshosona
Join Date: Jan 2013
Posts: 4
Rep Power: 13
Sirshendu is on a distinguished road
I want to use pressureinletoutletVelocity boundary condition for velocity at outlet as this is not fully developed (there is a chance to be backflow) flow. But my question is what the value I should set? Is it always (0 0 0)? What is the function of this fixed value of velocity?

type pressureInletOutletVelocity;
value uniform (0 0 0)
Sirshendu is offline   Reply With Quote

Old   January 27, 2013, 03:51
Default
  #14
Senior Member
 
n/a
Join Date: Sep 2009
Posts: 199
Rep Power: 17
deji is on a distinguished road
It seems the velocity you prescribe is only for the tangential component of the boundary....I do not think you specify the normal velocity to the boundary... I will look more into this.
mm.abdollahzadeh likes this.
deji is offline   Reply With Quote

Old   April 11, 2013, 12:29
Default
  #15
Member
 
Join Date: Mar 2013
Posts: 98
Rep Power: 13
giack is on a distinguished road
Hi to all
Someone know how velocity is obtained from pressure in pressureInletOutletVelocity?

thank to all
giack is offline   Reply With Quote

Old   July 28, 2013, 15:15
Default help
  #16
Member
 
Join Date: Oct 2012
Posts: 47
Rep Power: 14
sh.d is on a distinguished road
hello
I want to use the pressureInletOutletVelocity for the outlet of the airfoil boundary condition.
But I don’t the mean of tangent velocity?and What is the difference between value and tangential velocity?</SPAN>
Is this value scalar or vector?
thanks
sh.d is offline   Reply With Quote

Old   July 28, 2013, 17:43
Default
  #17
Member
 
Join Date: Mar 2013
Posts: 98
Rep Power: 13
giack is on a distinguished road
Hi,
why you want use this boundary condition for airfoil? I think that this boundary condition have to be used with multiphase flow or when in the same boundary you have an inlet and outlet flux. This is your case?
Anyway a zeroGradient condition is applied for outflow; for inflow, the velocity is obtained from the patch-face normal component of the internal-cell value.
giack is offline   Reply With Quote

Old   July 28, 2013, 17:49
Default
  #18
Senior Member
 
calim_cfd's Avatar
 
mauricio
Join Date: Jun 2011
Posts: 172
Rep Power: 18
calim_cfd is on a distinguished road
Quote:
hello
I want to use the pressureInletOutletVelocity for the outlet of the airfoil boundary condition.
But I don’t the mean of tangent velocity?and What is the difference between value and tangential velocity?</SPAN>
Is this value scalar or vector?
thanks


hi
pressureinletoutletvelocity (in) bcs are to be used with inletoutlet (out) bcs for the u field

and you use totalpressure(in) and fixedvalue(out) for the p field

these bcs guarantee a well-posed problem in case the user has only pressure measures and backflow expected

try that
l8r and gl
__________________
Best Regards
/calim

"Elune will grant us the strength"
calim_cfd is offline   Reply With Quote

Old   July 28, 2013, 17:51
Default
  #19
Senior Member
 
calim_cfd's Avatar
 
mauricio
Join Date: Jun 2011
Posts: 172
Rep Power: 18
calim_cfd is on a distinguished road
just to add,

if these bcs are the best ones for your case that's a whole new ball game!
l8r
__________________
Best Regards
/calim

"Elune will grant us the strength"
calim_cfd is offline   Reply With Quote

Old   July 29, 2013, 05:48
Default help
  #20
Member
 
Join Date: Oct 2012
Posts: 47
Rep Power: 14
sh.d is on a distinguished road
hi dear mauricio
thanks for your answer.
But I did not answer my question:
What is the difference between value and tangential velocity?Is this value scalar or vector?
sh.d 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



All times are GMT -4. The time now is 18:46.