# Mass conservation in COMSOL

 User Name Remember Me Password
 Register Blogs Members List Search Today's Posts Mark Forums Read

 LinkBack Thread Tools Search this Thread Display Modes
 November 26, 2010, 03:26 Mass conservation in COMSOL #1 New Member   Diego Ubeda Join Date: Mar 2009 Posts: 7 Rep Power: 16 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.

December 27, 2010, 05:14
#2
New Member

Niklas Rom
Join Date: Dec 2010
Posts: 4
Rep Power: 14
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 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.

 Thread Tools Search this Thread Search this Thread: Advanced Search Display Modes Linear Mode

 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 OffTrackbacks are Off Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post saii CFX 12 March 19, 2018 05:21 jjchristophe FLUENT 0 June 18, 2010 05:44 rockewan FLUENT 0 April 6, 2010 12:34 Balaji FLUENT 0 May 11, 2005 07:16 Diego Nogueira Main CFD Forum 1 July 30, 2004 15:50

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

 Contact Us - CFD Online - Privacy Statement - Top