Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.
Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.
negative concentrations with high reaction terms in biokinetic models
Posted 26.09.2011, 09:46 GMT-4 Porous Media Flow, Chemical Reaction Engineering, Modeling Tools & Definitions, Parameters, Variables, & Functions, Studies & Solvers Version 4.2 5 Replies
Please login with a confirmed email address before reporting spam
Hi,
I am using a biokinetic model based on the ASM (activated sludge models) to simulate water contaminant removal in a gravel filter. This kind of models consider the degradation of the influent solute components by several species of microorganisms. As a result of the degradation, this microorganisms also grow.
For the flow simulation I am using Darcy's Law. The contaminant removal is modeled using the solute transport module with a reaction term, in which monod-like expressions are deffined. These reaction expressions are also multiplied by the concentration of the different species of microorganisms that consume each solute component (the higher the concentration of microorganisms the more they consume).
The growth of bacteria is modeled using PDE general form expressions.
This works just fine for short periods of time (e.g. 1 day), but when bacteria start to grow considerably, the reaction terms become very big and negative (consumption), and thus the concentrations of the solutes become also negative. I've tackled this by deffinig variables s=max(eps^2,S), were S is the concentration of the solute. So when S becomes negative, in the next time step it is seen as a 0 instead of a negative value. If I don't do this, a part from getting negative solute concentrations, the growth of bacteria also gets corrupted (as it depends on S), and therefore this error impacts the whole model. I also tried to add expressions such as *(S>0) in the reaction term of S, but I have not been successful either.
I have checked the solutions suggested in this link, www.comsol.com/support/knowledgebase/952/ but it did not help much.
Could anyone tell me how to make the reaction rate 0 when the concentration of the substrate becomes zero? I do not understand where exactly should I introduce the term max(eps^2,Q).
Hope I made myself clear.
Thank you in advance
I am using a biokinetic model based on the ASM (activated sludge models) to simulate water contaminant removal in a gravel filter. This kind of models consider the degradation of the influent solute components by several species of microorganisms. As a result of the degradation, this microorganisms also grow.
For the flow simulation I am using Darcy's Law. The contaminant removal is modeled using the solute transport module with a reaction term, in which monod-like expressions are deffined. These reaction expressions are also multiplied by the concentration of the different species of microorganisms that consume each solute component (the higher the concentration of microorganisms the more they consume).
The growth of bacteria is modeled using PDE general form expressions.
This works just fine for short periods of time (e.g. 1 day), but when bacteria start to grow considerably, the reaction terms become very big and negative (consumption), and thus the concentrations of the solutes become also negative. I've tackled this by deffinig variables s=max(eps^2,S), were S is the concentration of the solute. So when S becomes negative, in the next time step it is seen as a 0 instead of a negative value. If I don't do this, a part from getting negative solute concentrations, the growth of bacteria also gets corrupted (as it depends on S), and therefore this error impacts the whole model. I also tried to add expressions such as *(S>0) in the reaction term of S, but I have not been successful either.
I have checked the solutions suggested in this link, www.comsol.com/support/knowledgebase/952/ but it did not help much.
Could anyone tell me how to make the reaction rate 0 when the concentration of the substrate becomes zero? I do not understand where exactly should I introduce the term max(eps^2,Q).
Hope I made myself clear.
Thank you in advance
5 Replies Last Post 20.03.2013, 06:29 GMT-4