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 concentration at surface
Posted 26 lug 2017, 15:57 GMT-4 12 Replies
Please login with a confirmed email address before reporting spam
The problem with this model is that the concentration of B on the surface can reach negative concentration. (which is equal to the concentration of C on the surface going over the initial concentration of B). even though i have set a number of maximum available sites on the surface, which is the same number as initial reactant B on this surface.
Is there a way to fix this problem?
i am using the chemistry, laminar flow, transport of diluted species and surface reaction modules for this.
concentrations are in the order of 10^-7. pressure is around 1 atm, fluid velocity is 2.5e-4 m/s.
I have tried different time steps for the solver, the danckwerts flux, ramp up the concentration from the initial start instead of a set concentration but none of these worked.
Only increasing my concentrations by a few orders of magnitude and decreasing my reaction rates to unrealistic values led me to a solution where the concentration of B didn't fall below zero and was limited to 0.
Please login with a confirmed email address before reporting spam
Please login with a confirmed email address before reporting spam
Please login with a confirmed email address before reporting spam
If your reaction rate is R, set R=max(eps^2,R). This should probably solve your issue.
where can i set this?
should it be inserted into the reaction rate equation or can it be set as a parameter?
Please login with a confirmed email address before reporting spam
Where is the negative concentration located?
the negative concentration is located on the surface where the reaction happens.
On the rest of the domain the concentration remains positive and physically feasible.
Please login with a confirmed email address before reporting spam
Where is the negative concentration located?
the negative concentration is located on the surface where the reaction happens.
On the rest of the domain the concentration remains positive and physically feasible.
So the WHOLE surface has negative concentration?
Please login with a confirmed email address before reporting spam
Where is the negative concentration located?
the negative concentration is located on the surface where the reaction happens.
On the rest of the domain the concentration remains positive and physically feasible.
So the WHOLE surface has negative concentration?
No,it starts at the edge of the reaction surface, but as time increases a greater portion of the surface reaches a negative concentration. I've included a picture of the domain i'm talking about.
i've tried refining the mesh from extra course to finer, and decreasing the initial step size of the solver to 1e-10 but it gave the same results.
Attachments:
Please login with a confirmed email address before reporting spam
Where is the negative concentration located?
the negative concentration is located on the surface where the reaction happens.
On the rest of the domain the concentration remains positive and physically feasible.
So the WHOLE surface has negative concentration?
No,it starts at the edge of the reaction surface, but as time increases a greater portion of the surface reaches a negative concentration. I've included a picture of the domain i'm talking about.
i've tried refining the mesh from extra course to finer, and decreasing the initial step size of the solver to 1e-10 but it gave the same results.
Can you also plot the concentration of A on the surface as well?
Please login with a confirmed email address before reporting spam
Where is the negative concentration located?
the negative concentration is located on the surface where the reaction happens.
On the rest of the domain the concentration remains positive and physically feasible.
So the WHOLE surface has negative concentration?
No,it starts at the edge of the reaction surface, but as time increases a greater portion of the surface reaches a negative concentration. I've included a picture of the domain i'm talking about.
i've tried refining the mesh from extra course to finer, and decreasing the initial step size of the solver to 1e-10 but it gave the same results.
Can you also plot the concentration of A on the surface as well?
here are the plots of concentration AB on the surface. and Concentration A along the surface. (although last one is taken from the transport of diluted species data because A is not a surface species.) i also included the contour plot of the concentration of A inside the domain, which i never see falling below 0.
Attachments:
Please login with a confirmed email address before reporting spam
Where is the negative concentration located?
the negative concentration is located on the surface where the reaction happens.
On the rest of the domain the concentration remains positive and physically feasible.
So the WHOLE surface has negative concentration?
No,it starts at the edge of the reaction surface, but as time increases a greater portion of the surface reaches a negative concentration. I've included a picture of the domain i'm talking about.
i've tried refining the mesh from extra course to finer, and decreasing the initial step size of the solver to 1e-10 but it gave the same results.
Can you also plot the concentration of A on the surface as well?
here are the plots of concentration AB on the surface. and Concentration A along the surface. (although last one is taken from the transport of diluted species data because A is not a surface species.) i also included the contour plot of the concentration of A inside the domain, which i never see falling below 0.
Sorry man, I am stumped. With your B concentration going negative, you should have a negative reaction rate, which should cause the generation of species A instead of consumption. But your A contour plot looks perfectly normal.
Please login with a confirmed email address before reporting spam
Please login with a confirmed email address before reporting spam
Just put "max(eps^2, R)" where you would put the user defined reaction rate. With R being your actual reaction rate. This should fix the issue.
thanks! i've put the term around my reaction rate term of the species which went negative in concentration. It seems to have fixed the issue!
Attachments:
Please login with a confirmed email address before reporting spam
Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.
Suggested Content
- BLOG Density-Driven Fluid Flow in Porous Media
- BLOG Modeling Electrochemical Processes in a Solid-State Lithium-Ion Battery
- KNOWLEDGE BASE Resolving Gaps and Intersections in Imported CAD Assemblies
- BLOG How to Model Ion-Exchange Membranes and Donnan Potentials
- KNOWLEDGE BASE Error: Failed to compute elastoplastic strain variables