I think I discovered incorrect behavior of the MLEBABecLap operator in case of 2D with cylindrical coordinates #3906
-
example_1_with_charge_and_no_eb.txt Dear AMReX developers, I think I discovered incorrect behavior of the MLEBABecLap operator. This incorrect behavior is present in the 2D case with cylindrical coordinates, while it is not present when Cartesian coordinates are used. I am providing you with two small programs which manifest this incorrect behavior. I have tested these programs on the CPU, and I do not know whether they would work on a GPU, as I have not yet learned to use GPU functionality. I have tested these programs on the AMReX version from the 21. of April this year. In the first program, the geometry is regular (no EB is included), and I compare the results of solving the Poisson equation for a simple charge distribution, by using the three linear operators: MLEBAbecLap, MLABecLaplacian, and MLPoisson. All three operators should produce the same result of the Poisson equation. However, in this program the result of using MLEBAbecLap is different from the results of using MLAabecLaplacian and MLPoisson when 2D cylindrical coordinates are used, while all three results are the same when Cartesian coordinates are used (in both 2D and 3D). In the second program, there is an embedded boundary representing a rod electrode and no charge is included. In this program, the result of using MLEBAbecLap gives different field enhancement in the case of 2D with cylindrical coordinates (axisymmetric case) and the 3D case. This result is incorrect, as the problem is axially symmetric, which means that the axisymmetric case (2D with cylindrical coordinates) should give the same field enhancement as the 3D case. In addition, the obtained resulting electric field in axisymmetric case has practically the same field enhancement around EB as in the 2D case with Cartesian coordinates. This is another indicator that the solution in case of 2D with cylindrical coordinates is incorrect. I have checked the results of the second program by using the Afivo-streamer open-source code: https://github.com/MD-CWI/afivo-streamer The Cartesian 2D result agrees well with the corresponding result from the Afivo-streamer code (when the same embedded boundary and the same applied electric field and domain size are used): https://github.com/MD-CWI/afivo-streamer/blob/master/programs/standard_2d/streamer_2d_electrode.cfg The Cartesian 3D result agrees well with the axisymmetric result from the Afivo-streamer code: https://github.com/MD-CWI/afivo-streamer/blob/master/programs/standard_2d/streamer_cyl_electrode.cfg I have not done comparison with the 3D Afivo-streamer code, although it can be done. However, the result of using MLEBAbecLap operator in the second program in 2D with cylindrical coordinates does not agree with the Afivo-streamer axisymmetric result. Is this incorrect behavior which I have described really a problem with the MLEBABecLap operator or am I doing something wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Unfortunately we only support Cartesian coordinates with EB. |
Beta Was this translation helpful? Give feedback.
Unfortunately we only support Cartesian coordinates with EB.