Hi,
Here is one trick to solve negative concentrations.
I made variable "C" which is defined by "if(c<0,eps,c)" under Definitions => Variables. Instead of concentration "c" I used variable "C". Now variable "C" is never below zero. Eps is very small number defined is Comsol.
Does this help you?
Best regard
Tero
Hi,
What do you mean by - [Instead of concentration "c" I used variable "C"]?
Did you replace "c" with "C"? But c is the main variable.
Can you please elaborate?
I'm sorry, my doubt might be trivial since I'm new to COMSOL.
Thank You,
Shiva