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.
![first_order_lin](https://private-user-images.githubusercontent.com/107009840/246210693-6a69116e-2fbe-47d5-995d-ee472bcc4bdb.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg4ODQyNTksIm5iZiI6MTczODg4Mzk1OSwicGF0aCI6Ii8xMDcwMDk4NDAvMjQ2MjEwNjkzLTZhNjkxMTZlLTJmYmUtNDdkNS05OTVkLWVlNDcyYmNjNGJkYi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwNlQyMzE5MTlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1jMjkzMTM5MTQ0ZGU3MjUyZWZkYTg0YmY0NDM2ZGM1MTgyYmJkOGNiN2Y0ODZlZGM5MjhhYzM1YjkxMGU4MDAwJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.5JNGbx5dyHABh-gZn7cfYZJBQW4EAXLnvwc-4Skb3uk)
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.
![first_order_log](https://private-user-images.githubusercontent.com/107009840/246211119-379282a5-90c0-4e84-b67a-2b84b7625ff8.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg4ODQyNTksIm5iZiI6MTczODg4Mzk1OSwicGF0aCI6Ii8xMDcwMDk4NDAvMjQ2MjExMTE5LTM3OTI4MmE1LTkwYzAtNGU4NC1iNjdhLTJiODRiNzYyNWZmOC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwNlQyMzE5MTlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT05NGNlODY3NjY4YWI3OWVhNDUwZTJiMDVhYzBkYzI5NmYzYTIyZDNhNDlkY2UxZDY3NDljOWFhYmM0MzU1MjkxJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.orpDCnvmV1jFtOpGSiy2LWmO12eWqMRGomwkxKo_twA)
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