CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Main CFD Forum

Global mass conservation in pipe flow

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

Reply
 
LinkBack Thread Tools Display Modes
Old   December 26, 2012, 03:29
Default Global mass conservation in pipe flow
  #1
New Member
 
Join Date: Jun 2010
Posts: 20
Rep Power: 7
qrie is on a distinguished road
Hi,

I am simulating flow through a pipe. In my code, as is usual - I have a factor(ratio of mass in/mass out) multiplying the exit velocity for global mass conservation.

At the inlet I have given a parabolic velocity profile and convective outflow bcs at the outlet. So now when the factor is calculated for the first time step, it becomes infinity(since mass out is zero at the exit boundary) and the whole thing blows up.

How to resolve this?

Thanks,
Qrie
qrie is offline   Reply With Quote

Old   December 27, 2012, 04:58
Default
  #2
Senior Member
 
Rami Ben-Zvi
Join Date: Mar 2009
Posts: 147
Rep Power: 8
Rami is on a distinguished road
Quote:
Originally Posted by qrie View Post
Hi,

I am simulating flow through a pipe. In my code, as is usual - I have a factor(ratio of mass in/mass out) multiplying the exit velocity for global mass conservation.

At the inlet I have given a parabolic velocity profile and convective outflow bcs at the outlet. So now when the factor is calculated for the first time step, it becomes infinity(since mass out is zero at the exit boundary) and the whole thing blows up.

How to resolve this?

Thanks,
Qrie
Hi Qrie,

I don't think this trick is common, and it is actually unnecessary. If your code is properly written, the mass balance should be nearly perfect, especially for a pipe flow.

Good luck,
Rami
Rami is offline   Reply With Quote

Old   December 27, 2012, 18:47
Default
  #3
Senior Member
 
Chris DeGroot
Join Date: Nov 2011
Location: Canada
Posts: 387
Rep Power: 6
cdegroot is on a distinguished road
Yep, correction is unnecessary. If you really want to do this, however, just set limits for the max/min factor that you want to apply so it never gets too big or small because this will be much worse than allowing a mass imbalance. In the early iterations it really doesn't matter if there is a mass imbalance because the code should sort it out on its own as it converges.
cdegroot is offline   Reply With Quote

Reply

Tags
global mass, mass conservation, pipe

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
mass flow inlet and pressure outlet with target mass flow rate Zigainer FLUENT 10 January 5, 2013 22:51
Convergence problem with target mass flow rate ADL FLUENT 2 May 29, 2012 21:11
Determine mass flow rate along flow path Atit Koonsrisuk CFX 2 October 5, 2003 04:47
My Revised "Time Vs Energy" Article For Review Abhi Main CFD Forum 2 July 9, 2002 09:08
mass flow inlet Denis Tschumperle FLUENT 7 August 9, 2000 02:19


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