Verification of Reaction-Diffusion Model #200
Replies: 2 comments 11 replies
-
Have you done a spatial convergence study to see how this discrepancy changes? I also noticed that your tolerances are relatively loose....what happens if you use the MOOSE defaults? |
Beta Was this translation helpful? Give feedback.
-
Good morning. Based on your input file, you are trying to verify a Helmholtz equation (a diffusion problem with a first-order reaction source term). It looks like you have a time derivative for the electron, but your analytical solution doesn't have a time dependence? If I remember correctly, the Helmholtz equation is ill-posed without pinning the equation. If it is time-dependent, then you need the correct initial condition at t=0, and if is time-independent, then you need to pin the solution at the walls with non-trivial derivatives and/or constant values. What is the equation you are using for verification? Also, do you still have these convergence issues when you substitute the Zero Neumann BC with a Dirichlet BC? |
Beta Was this translation helpful? Give feedback.
-
Hey y'all, I am trying to verify my implementation of a simple reaction-diffusion model where the electrons have some constant flux at the left boundary (@lindsayad thank you for your help with this!) and then under-go first order recombination with the solvent. I have an analytical solution for this case, and I'm trying to match my solutions.
From a linear-linear plot, they're almost identical! The zapdos model underestimates the interfacial concentration by about 0.036 mM, which I would like to improve.
I also looked at it with a log-linear plot to see if I could find out why, and turns out there's this huge numerical artifact in the middle of the domain... I expected the density to level-off on the right (no flux BC), but not the camel in the middle.
Any advice on how to fix these problems? I attached my input file and visualization script.
first_order_files.zip
Beta Was this translation helpful? Give feedback.
All reactions