Hello,
I am modeling convection/diffusion for two subdomains with a diffusion coefficient that varies by several orders of magnitude between the subdomains, but is constant within each subdomain. FEAtool seems to have trouble with the numerics of this discontinuity and I'm getting negative concentrations which build over time. It's not due to the advective term because u = 0 everywhere.
I am thinking that a practical way around this (while avoiding coefficient smoothing zones and small timesteps) would be to use the "Flux discontinuity" option at the internal boundaries between the subdomains. I've reviewed a past thread on this general topic
here, which had a helpful figure:
I'd like to use an analytical solution to specify the net flux between the domains, specified as an equation at the internal boundaries in the "N_0" field below. Is that possible?
To do this, I will need to be able to reference the concentration of solute A on either side of the boundary (i.e., A at x- and x+ or y- and y+ or z- and z+, depending on the orientation of the boundary) and ideally also the diffusion coefficients on either side (although that's less critical because they are known inputs). Is there a way to do that in FEAtool's syntax?
I've reviewed the syntax documentation previously shared (
here) but I don't see anything on this.
Thanks!
Peter