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.
Bulk concentration higher than inflow conc. despite anodic oxidation. Help!
Posted 2017年4月27日 GMT-4 09:18 Low-Frequency Electromagnetics, Chemical Reaction Engineering Version 5.2a 9 Replies
Please login with a confirmed email address before reporting spam
I am simulating anodic oxidation of compound X in a plain square reactor, containing one cathode and one anode. On the anode surface, X + 4A --> B.
A is generated directly on the anode surfaces. X flows in at the bottom of the geometry, passes the anode surface at where the reaction occurs, and flows out on top. There is indeed some decrease of X around the anode surface but at certain spots, the concentration of X is larger than inflowing concentration X0.
Nowhere in the model there should be any production of X and yet there is, how do I solve it?
I’ve tried refining the mesh but even with the extremely fine mesh there’s still some production of X.
I also tried to set a constraint for the X concentration by “if(X>X0,X0,X)”. But that’s just avoiding the problem, not solving or explaining it.
Thank you for your help.
Please login with a confirmed email address before reporting spam
Please login with a confirmed email address before reporting spam
somehow she could not attach it. Here comes the COMSOL file.
Attachments:
Please login with a confirmed email address before reporting spam
In the attached file the reaction takes place homogeneously, not on the electrode surface. If the reaction is heterogeneous, taking place on the electrode, it must appear as a flux boundary condition. A is generated on the anode and consumed on the cathode, or how is it? You write that on the anode
X + 4A --> B
which means consumption of A, not generation.
The above reaction is obviously not elementary, hence the first order with respect to the both components is possible, but just for the sake interest, is the rate equation really that?
BR
Lasse
Please login with a confirmed email address before reporting spam
I looked at the model a bit carelessly. You do have a homogeneous reaction, following the generation of A on the anode. But why did you have F = 96.487 As/mol? Should be 96487.
Lasse
Please login with a confirmed email address before reporting spam
You are right about Faraday, it was a mistake by me.
A is generated on the anode using the inward flux boundary condition. A diffuses to the bulk and X diffuses to the surface. A and X reacts at a fast rate and thus they are both also consumed. Ideally this reaction would only take place in the vicinity of the anode surface.
the main issue is, that X is supposed to be degraded. therefore the concentration of X should be lower than that in the inlet. unfortunately we saw X concentration higher than in the inlet. This occurs only locally at electrode surface. we assume that it is only numerical problem. unfortunately, we can't figure it out where it might be.
thank you very much for taking your time checking the file. the rate constant is fine. could you please help checking it again?
OK
I looked at the model a bit carelessly. You do have a homogeneous reaction, following the generation of A on the anode. But why did you have F = 96.487 As/mol? Should be 96487.
Lasse
Please login with a confirmed email address before reporting spam
BR
Lasse
Please login with a confirmed email address before reporting spam
I already have that restriction for A with "if(A<0,eps,A)". My first thought was also that the total rate expression for X would somewhere be positive, but the maximum value is 0.
The only other way I would think of would be to restrict the X concentration to always being equal or smaller than the inflow concentration X0, by "if(X>X0,X0,X)" (as i wrote in my original post). However, isn't this "cheating"? I mean it doesn't solve the numerical problem, it only avoids it.
Once again thank you for your time.
BR, Sara
I could not reach the solution, it did not converge. Convective diffusion problems are known to be really tough. It is possible that A takes locally negative values, making the reaction term positive. I would use expression max(A,eps) and max(X,eps) in the reaction term to prevent negative values.
BR
Lasse
Please login with a confirmed email address before reporting spam
L
Please login with a confirmed email address before reporting spam
I have not done that yet but it's a good suggestion, so I will try it. I'll give an update if I find a solution.
If any other person also has a suggestion or have similar issues you are more than welcome to post.
Best regards,
Sara
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
- KNOWLEDGE BASE How do I solve a PDE with space derivatives of order higher than two?
- FORUM Contact model stiffness much higher than expected
- FORUM How can I convert Comsol3.5 matlab script to a higher version?
- KNOWLEDGE BASE Understanding, and changing, the element order
- BLOG Modeling Pitting Corrosion in COMSOL Multiphysics®