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

high speed flow in pipe

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 26, 2019, 01:26
Default high speed flow in pipe
  #1
Member
 
Nguyen Trong Hiep
Join Date: Aug 2018
Posts: 48
Rep Power: 8
hiep.nguyentrong is on a distinguished road
Hi, i want to solve fluid flow in pipe with mach ~0.6.
i used density-based, ideal gas with sutherland law. pressure inlet and pressure outlet on fluent. Result seem good.
But when im try to use openFoam using rhoSimpleFoam, i get errors at first timestep. here is my boundary conditions.
Can u help me whats wrong with this?
Quote:
u
inlet
{
type pressureInletVelocity;
value uniform (200 0 0);
}
outlet
{
type zeroGradient;
}
Quote:
p
inlet
{
type totalPressure;
p0 uniform 60000;
}
outlet
{
type fixedValue;
value uniform 0;
}
hiep.nguyentrong is offline   Reply With Quote

Old   July 31, 2019, 07:02
Default
  #2
Senior Member
 
Carlo_P
Join Date: May 2019
Location: Italy
Posts: 176
Rep Power: 8
Carlo_P is on a distinguished road
Hey Hiep,
can you post your message error, please?
The BC seems to be not correct.
Are you sure that the pressure in the outlet would be 0?.

Furthrmore, I would prefer InletOutlet for the Outlet U.
The InletOutlet doesn't allow the flow to come inside and is a more robust.


Another suggestion. Try to use a very small value of the relaxation factor of rho.


Do you know that for rhoSimpleFoam you need to have also rho and alpha_T as BC?
Carlo_P is offline   Reply With Quote

Old   August 1, 2019, 05:43
Default
  #3
Member
 
Nguyen Trong Hiep
Join Date: Aug 2018
Posts: 48
Rep Power: 8
hiep.nguyentrong is on a distinguished road
Quote:
Originally Posted by Carlo_P View Post
Hey Hiep,
can you post your message error, please?
The BC seems to be not correct.
Are you sure that the pressure in the outlet would be 0?.

Furthrmore, I would prefer InletOutlet for the Outlet U.
The InletOutlet doesn't allow the flow to come inside and is a more robust.


Another suggestion. Try to use a very small value of the relaxation factor of rho.


Do you know that for rhoSimpleFoam you need to have also rho and alpha_T as BC?
Hi Carlo,
thanks for reply,
here is my problem after 2 iterations

im wrong with pressure outlet, in my case, i set it to 101325
when i set U file like this
Code:
outlet
{
type          inletOutlet;
inletValue  uniform (200 0 0);
}
i get the same error
here is my rho file
Code:
".*"
{
type           caculated;
value          1.225;
}
alphat file
Code:
walls
{
type         compressible::alphatWallFunction;
Prt           0.85;
value       uniform 0;
}
inlet
{
type         calculated;
value        0;
}
outlet
{
type         calculated;
value        0;
}
hiep.nguyentrong is offline   Reply With Quote

Old   August 6, 2019, 06:50
Default
  #4
Senior Member
 
Carlo_P
Join Date: May 2019
Location: Italy
Posts: 176
Rep Power: 8
Carlo_P is on a distinguished road
the rho file is wrong.
You have to put the value at outlet and in inlet zerogradient.
It is not physical that the pressure change and not the rho.
Carlo_P is offline   Reply With Quote

Old   August 8, 2019, 05:40
Default
  #5
Member
 
Nguyen Trong Hiep
Join Date: Aug 2018
Posts: 48
Rep Power: 8
hiep.nguyentrong is on a distinguished road
Quote:
Originally Posted by Carlo_P View Post
the rho file is wrong.
You have to put the value at outlet and in inlet zerogradient.
It is not physical that the pressure change and not the rho.
when i put inlet and outlet is zeroGradient, result is the same.
hiep.nguyentrong is offline   Reply With Quote

Old   August 8, 2019, 06:32
Default
  #6
Member
 
Join Date: Mar 2016
Posts: 73
Rep Power: 10
sufjanst is on a distinguished road
In u, you specify a velocity of 200 m/s
But in p you specify a pressure-RAISE from 60000 in the inlet to 101325 in the outlet.

Your pressure B/C should develop a sucking towards the inlet, which is inconsistent with your u.
Are you sure, you didn't mix up something in the B/Cs?


As far as I know, you can not specify the pressure drop and velocity B/C, because you velocity results from the pressure drop or the other way round.



I would do it like this
u
inlet
{
type fixedValue;
value uniform (200 0 0);
}
outlet
{
type inletOutlet;
inletValue uniform (0 0 0);
value uniform (0 0 0);
}


p
inlet
{
type zeroGradient;
}
outlet
{
type fixeValue;
value uniform 101325;
}
sufjanst is offline   Reply With Quote

Old   August 8, 2019, 06:46
Default
  #7
Member
 
Nguyen Trong Hiep
Join Date: Aug 2018
Posts: 48
Rep Power: 8
hiep.nguyentrong is on a distinguished road
Quote:
Originally Posted by sufjanst View Post
In u, you specify a velocity of 200 m/s
But in p you specify a pressure-RAISE from 60000 in the inlet to 101325 in the outlet.

Your pressure B/C should develop a sucking towards the inlet, which is inconsistent with your u.
Are you sure, you didn't mix up something in the B/Cs?


As far as I know, you can not specify the pressure drop and velocity B/C, because you velocity results from the pressure drop or the other way round.



I would do it like this
u
inlet
{
type fixedValue;
value uniform (200 0 0);
}
outlet
{
type inletOutlet;
inletValue uniform (0 0 0);
value uniform (0 0 0);
}


p
inlet
{
type zeroGradient;
}
outlet
{
type fixeValue;
value uniform 101325;
}
i was try your case but nothing change.
i want to put total pressure to inlet, i dont know the p0 is abs pressure or gauge press but when im try both, again, this error still come to me
hiep.nguyentrong is offline   Reply With Quote

Old   August 8, 2019, 11:51
Default
  #8
Member
 
Join Date: Mar 2016
Posts: 73
Rep Power: 10
sufjanst is on a distinguished road
If you want to specify pressure AND velocity in your inlet you should put your outlet pressure to zeroGradient.
sufjanst is offline   Reply With Quote

Old   August 9, 2019, 04:10
Default
  #9
Senior Member
 
Carlo_P
Join Date: May 2019
Location: Italy
Posts: 176
Rep Power: 8
Carlo_P is on a distinguished road
It is better to start with a simpler case, i.e. use a speed as 2 m/s.
If this doesn't run, you are sure that you have a problem somewhere.

P is the static pressure. If you want the totalpressure, you have to use totalPressure. (check the correct sintax)
Bit it is not so robust to put velocity and totalpressure in inlet.
Try to reach a result with velocity in inlet and totalpressure in outlet. You can change later, if you need.

Futhermore, run it with simpleFoam. You have to change tje p file.
It must run. It is not a correct result, but you have to reach it.
It would be possible also to switj later from simpleFoam to rhoSimpleFoam.
Carlo_P is offline   Reply With Quote

Old   August 9, 2019, 05:16
Default
  #10
Member
 
Nguyen Trong Hiep
Join Date: Aug 2018
Posts: 48
Rep Power: 8
hiep.nguyentrong is on a distinguished road
Quote:
Originally Posted by Carlo_P View Post
It is better to start with a simpler case, i.e. use a speed as 2 m/s.
If this doesn't run, you are sure that you have a problem somewhere.

P is the static pressure. If you want the totalpressure, you have to use totalPressure. (check the correct sintax)
Bit it is not so robust to put velocity and totalpressure in inlet.
Try to reach a result with velocity in inlet and totalpressure in outlet. You can change later, if you need.

Futhermore, run it with simpleFoam. You have to change tje p file.
It must run. It is not a correct result, but you have to reach it.
It would be possible also to switj later from simpleFoam to rhoSimpleFoam.
i was try it and run well with 2m/s and simpleFoam solver.
but the dimensional of pressure in simpleFoam and rhoSimpleFoam is diffirence. is any way to change between 2 cases?
i dont know what exactly this totalpressure in rhoSimpleFoam work.
The pressureControl report: p max 8e8 and p min is -1.7e7
hiep.nguyentrong 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
High values of heat transfer coefficient for laminar flow in pipe Allankey CFX 2 May 28, 2014 13:44
DPM and High speed air flow John FLUENT 0 January 15, 2008 12:17
High Speed Supersonic Flow Through Pipe Benjamin Zachariah Main CFD Forum 0 April 19, 2007 11:16
low speed compressible two phase flow?? cat CFX 0 November 15, 2005 08:59
Terrible Mistake In Fluid Dynamics History Abhi Main CFD Forum 12 July 8, 2002 10:11


All times are GMT -4. The time now is 19:33.