Quantcast
Channel: COMSOL Forums: How to solve the problem of negative concentration
Viewing all articles
Browse latest Browse all 64

Re: How to solve the problem of negative concentration

$
0
0
if(c<0,eps,if(c>1,1,c))

Dear Tero,
First i would like to say thank you because ,i am doing my MS project "modeling of electrosorption" using comsol version 4.3 at Hindustan Unilever R&D,Bangalore and i got the same problem of getting negative values or larger values which are not expected.I searched for resolving this problem in various literatures and available comsol materials but i did not find anywhere and finally i found randomly here(discussion forum) and i tried it and its working well.But i have a few doubts about defining this condition.
(1)How much small number is this eps? or is it constant small number?
(2)what is the condition if c lies between 0 and 1 i.e (0=<c=<1) (here =< represents less than or equall)?

could you please give me the combined condition for this(for all three conditions).


Thanking you,

A.Naveen



Viewing all articles
Browse latest Browse all 64

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>