Dear Jon, dear Martinus,
I really appreciate your replies! No worries about the delay. It is a dificult period for all of us :(
Thanks for letting me know that "zero-flux" (the condition I want) is the implicit condition. I have no need to specify it specifically, I just was not sure.
I tried "CylindricalGrid2D" indeed, but I was not sure whether the rotation axes was located at the left of the array, so I decided to use "Grid2D" instead along with a "radius" variable so I am sure of the position of the symmetry axis. Which brings me to my first question: Here is one of the parameter arrays (here, the relaxation time) I use in my MWE, before "ravel()" is apply:
array([[ 2., 2., 2., 2., 2., 10., 10., 10.],
[ 2., 2., 2., 2., 2., 10., 10., 10.],
[ 2., 2., 2., 2., 2., 10., 10., 10.],
[ 2., 2., 2., 2., 2., 10., 10., 10.],
[ 2., 2., 2., 2., 2., 10., 10., 10.],
[ 2., 2., 2., 2., 2., 10., 10., 10.],
[ 2., 2., 2., 2., 2., 10., 10., 10.],
[ 2., 2., 2., 2., 2., 10., 10., 10.],
[ 2., 2., 2., 2., 2., 10., 10., 10.],
[ 2., 2., 2., 2., 2., 10., 10., 10.]]).ravel()
Could you confirm that the symmetry axis is indeed located on the left of this array ?
In the MWE, I set domains 1 and 2 to have the same caracteristics for simplicity. So, if I was correct of the way my system is programmed, I should have for any time lines with identical values in the polarisation variable "Pol" because there should be a cylindrical symmetry. So it should give identical results to "CylindricalGrid1D". Yet, if I sweep 50 times (for example), here is what I get :
Pol_list[50] =
[[0.79 0.79 0.80 0.99 1.19 9.95 9.95 9.89]
[0.96 0.80 0.81 0.98 1.19 9.90 9.90 9.89]
[1.15 0.98 0.81 0.97 1.34 9.91 9.90 9.89]
[1.14 0.98 0.82 0.98 1.17 9.90 9.90 9.88]
[1.12 0.98 0.82 0.99 1.17 9.90 9.90 9.95]
[0.98 0.98 0.82 0.99 1.18 9.90 9.90 9.89]
[1.15 0.99 0.82 0.99 1.20 9.90 9.90 9.89]
[1.14 0.98 0.82 0.98 1.34 9.91 9.90 9.89]
[1.14 0.98 0.81 0.98 1.17 9.90 9.95 9.93]
[1.13 0.98 0.80 0.80 0.99 9.90 9.95 9.99]]
Here, not only are my lines not identical, but the polarisation goes above the equilibrium value of 1 inside the cylinder - the leftmost values. This does not makes sens unless there is some transfer taking place from the left of the system. Likewise, the rightmost values should by the maximum, yet there are not. I tried with lower time increments and the result stays the same.
I have inclosed the updated MWE with no boundary condition and with CylindricalGrid2D that gave the result above. Could you help my fix it so it gives the same result as would an identical system with CylindricalGrid1D ?
Thanks in advance for your time if you have some :)
PS: I am happy to hear there is now a « SphericalGrid1D » mesh which I missed when starting my program (I have 3.3).