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

Mass conservation in COMSOL

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 26, 2010, 04:26
Question Mass conservation in COMSOL
  #1
New Member
 
Diego Ubeda
Join Date: Mar 2009
Posts: 7
Rep Power: 17
Diego is on a distinguished road
Hello,

I am a user of COMSOL 3.5 and have realized something a little bit strange with mass conservation during my simulations. Therefore, I decided to build the easiest model I could in order to study this issue. I created a hexahedral pipe through which oxygen and water (gas phase) circulate. Navier-Stokes and Maxwell-Stefan equations are used to describe momentum and mass transport. The lower boundary is supposed to be a reactive surface and therefore an oxygen flux is set as boundary condition. If I calculate the oxygen mass flow (kg/s) that is going into the system (using the boundary integration tool, integrating the flux) and subtract the oxygen mass flow that is going out, I approximately obtain the same amount of oxygen that is disappearing through the reactive boundary, which means that mass balance for oxygen meets satisfactorily. However, if I do the same to check the water mass balance, the result is really not good. Calculating the difference between the water mass flux at the inlet and at the outlet, I obtain a noticeably different amount than the water that is being generated on the reactive boundary, which is the same (in mass terms) as the oxygen that is being consumed. The minimum mesh element quality is 1.000, so I guess that I cannot blame this on truncation errors or similar.
Can you give me an explanation for this?


Thank you very much for your help.
Diego is offline   Reply With Quote

Old   December 27, 2010, 06:14
Default
  #2
New Member
 
Niklas Rom
Join Date: Dec 2010
Posts: 4
Rep Power: 15
niklas.rom is on a distinguished road
Hi, I suspect that you need to compensate the total mass balance for the reacting species. It is all described here:

http://www.comsol.com/support/knowledgebase/1100/

Niklas Rom, COMSOL

Quote:
Originally Posted by Diego View Post
Hello,

I am a user of COMSOL 3.5 and have realized something a little bit strange with mass conservation during my simulations. Therefore, I decided to build the easiest model I could in order to study this issue. I created a hexahedral pipe through which oxygen and water (gas phase) circulate. Navier-Stokes and Maxwell-Stefan equations are used to describe momentum and mass transport. The lower boundary is supposed to be a reactive surface and therefore an oxygen flux is set as boundary condition. If I calculate the oxygen mass flow (kg/s) that is going into the system (using the boundary integration tool, integrating the flux) and subtract the oxygen mass flow that is going out, I approximately obtain the same amount of oxygen that is disappearing through the reactive boundary, which means that mass balance for oxygen meets satisfactorily. However, if I do the same to check the water mass balance, the result is really not good. Calculating the difference between the water mass flux at the inlet and at the outlet, I obtain a noticeably different amount than the water that is being generated on the reactive boundary, which is the same (in mass terms) as the oxygen that is being consumed. The minimum mesh element quality is 1.000, so I guess that I cannot blame this on truncation errors or similar.
Can you give me an explanation for this?


Thank you very much for your help.
niklas.rom 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 06:21
lost of mass conservation jjchristophe FLUENT 0 June 18, 2010 06:44
Mass conservation problem in mixing tank multiphase simulation rockewan FLUENT 0 April 6, 2010 13:34
Mass Conservation Balaji FLUENT 0 May 11, 2005 08:16
Mass conservation Diego Nogueira Main CFD Forum 1 July 30, 2004 16:50


All times are GMT -4. The time now is 09:05.