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

Will I break mass conservation law if i do so?

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

Reply
 
LinkBack Thread Tools Display Modes
Old   June 15, 2011, 08:20
Default Will I break mass conservation law if i do so?
  #1
Member
 
Kai
Join Date: May 2010
Location: Stockholm
Posts: 39
Rep Power: 7
kaifu is on a distinguished road
Hi Foamers,

In alphaEqn.H (like in the solver bubbleFoam or twoPhaseEulerFoam) I have to make sure alpha is strictly in [0, 0.523] after each
Code:
alphaEqn.solve();
So I simply make
Code:
alpha = max(0,alpha);
alpha = min(0.523,alpha);
in the code.
So far I have realized it may break the mass continuity if I do so. So I considered if I should create a "packingLimiter" as it is in solver twoPhaseEulerFoam. Thanks

// Kai
kaifu is offline   Reply With Quote

Reply

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
interDyMFoam mass conservation issues - dam break tutorial kmooney OpenFOAM 5 June 1, 2010 14:23
mass flow in is not equal to mass flow out saii CFX 2 September 18, 2009 08:07
Mass conservation law violation in stationary case vitmalin CFX 3 September 3, 2007 13:32
Mass conservation law violation in stationary case vitmalin FLUENT 0 August 27, 2007 03:07
Free surface boudary conditions with SOLA-VOF Fan Main CFD Forum 10 September 9, 2006 12:24


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