CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User 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 Search this Thread 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: Shanghai
Posts: 61
Blog Entries: 1
Rep Power: 15
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 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
mass flow in is not equal to mass flow out saii CFX 12 March 19, 2018 05:21
interDyMFoam mass conservation issues - dam break tutorial kmooney OpenFOAM 5 June 1, 2010 14:23
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 07:31.