HI All,
I am trying to simulate a A+B-->C chemical reaction. I dont know why my reactants (A and B) concentration is going negative. How do I fix this?
I have attached my model as well as pic of the concentration profile.
I saw in the knowledge base they give you certain options, but they have not worked for me. I tried adaptive meshing as well introducing A>0, B>0 in my reaction terms in the variables part. This is what I have in my variables section.
A=1 mol/m^3
B=0.5 mol/m^3
C=0 mol/m^3
k1=0.01
rA=-k1*A*B*(A>0)*(B>0)
rB=-k1*B*A*(A>0)*(B>0)
rC=k1*A*B*(A>0)*(B>0)
If someone can guide me please.
Thanks,
Romani
I am trying to simulate a A+B-->C chemical reaction. I dont know why my reactants (A and B) concentration is going negative. How do I fix this?
I have attached my model as well as pic of the concentration profile.
I saw in the knowledge base they give you certain options, but they have not worked for me. I tried adaptive meshing as well introducing A>0, B>0 in my reaction terms in the variables part. This is what I have in my variables section.
A=1 mol/m^3
B=0.5 mol/m^3
C=0 mol/m^3
k1=0.01
rA=-k1*A*B*(A>0)*(B>0)
rB=-k1*B*A*(A>0)*(B>0)
rC=k1*A*B*(A>0)*(B>0)
If someone can guide me please.
Thanks,
Romani