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

How to simulate a flow in a 3D Pipe

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 11, 2017, 15:53
Smile How to simulate a flow in a 3D Pipe
  #1
New Member
 
Changli Han
Join Date: May 2017
Posts: 3
Rep Power: 6
Changli is on a distinguished road
1.I get scenario with a 3D pipe with a diameter of 5 meters, and with a length of 200 meters, also its bended shape in space likes a snake. I only know the water velocity inside of pipe is around 0.18m/s(at least at the entrance), no information about the pressure. How should I set the boundary conditions regarding the velocity, and also the pressure. Totally no clue about what the zeroGradient thing is doing.
2.And also want to know if I set the inlet velocity using the surfaceNormalFixedValue, how should I set the inlet pressure together with the outlet's velocity and outlet's pressure?
Changli is offline   Reply With Quote

Old   May 12, 2017, 00:23
Default
  #2
Senior Member
 
piu58's Avatar
 
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 588
Rep Power: 10
piu58 is on a distinguished road
I recommend to set
inlet:
- U: fixed value, your velocity
- p: zerogradient
outlet:
- U: zero gradient
- p: fixed value 0 (reference pressure)
wall:
- U: uniform (0 0 0 )
- p: zero gradient

Depending on your model you need boundary conditions for the auxiliary values like k, epsilon or omega and/or others.

Beside this I recommend to avoid 3D at least in the first step. Use the cylinder symmetry instead. You have to mesh a 5° slice which is 1 element wide. Use the wedge boundary conditions at the free sides.
__________________
Uwe Pilz
--
Die der Hauptbewegung überlagerte Schwankungsbewegung ist in ihren Einzelheiten so hoffnungslos kompliziert, daß ihre theoretische Berechnung aussichtslos erscheint. (Hermann Schlichting, 1950)
piu58 is offline   Reply With Quote

Old   May 31, 2017, 16:44
Default
  #3
New Member
 
Changli Han
Join Date: May 2017
Posts: 3
Rep Power: 6
Changli is on a distinguished road
Thank you for your suggestions, everything works fine with laminar case, and right now I need to consider some cases with turbulence model like k-w SST model. Then how should I set the boundary conditions in this case? Usually what kind of values can be used as default? And also I want to ask which turbulence model are the most common in reality? Is it k-w SST? Looking forward for your reply!
Changli is offline   Reply With Quote

Old   June 1, 2017, 06:38
Default
  #4
Senior Member
 
piu58's Avatar
 
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 588
Rep Power: 10
piu58 is on a distinguished road
After "laminar" the next step is RANS. There are two models wide accepted: k-epsilon and k-omega.
I recommend to start with k-epsilon which is easier to understand and to implement (you don't need to implement it, it is ready available). It si numerical stable and does not lean toward instability.
k-omega has advantages in mixed flow (steep pressure gradients) where laminar and fully turbulent regions of the flow are in one model. k-omega tends to overestimate the turbulence form my experience. All in all k-epsilon gives a better solution far away from the walls, where k-omega is too turbulent. k-omega gives a better answer in the Prandtl layer and describes the evolution of turbulence better.

I am sure there exist more advanced models, which try to combine pros and cons. In most cases they are not as universal applicable as k-epsilon and k-omega.
__________________
Uwe Pilz
--
Die der Hauptbewegung überlagerte Schwankungsbewegung ist in ihren Einzelheiten so hoffnungslos kompliziert, daß ihre theoretische Berechnung aussichtslos erscheint. (Hermann Schlichting, 1950)
piu58 is offline   Reply With Quote

Old   June 2, 2017, 04:04
Default
  #5
New Member
 
Changli Han
Join Date: May 2017
Posts: 3
Rep Power: 6
Changli is on a distinguished road
why the next step is to have transient + k-epsilon instead of steady + k-epislon? And can I consider I do steady + k-epislon then we get the mean field directly?
Changli is offline   Reply With Quote

Reply

Tags
pipe, pressure, setting, velocity

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Pipe flow heat transfer feedq FLUENT 10 November 26, 2014 08:23
sonicFoam - pressure driven pipe: flow continuity violation and waveTransmissive BC Endel OpenFOAM Running, Solving & CFD 3 September 11, 2014 16:29
Problem with 3D Pipe Flow giorgia FLUENT 0 April 30, 2014 04:02
2D piston in steady closed pipe flow BC query! lmarf88 FLUENT 0 April 10, 2014 10:25
Pipe flow - orifice plates Alessandro P FLOW-3D 2 November 30, 2010 03:55


All times are GMT -4. The time now is 03:56.