Hi all,
By running MHD simulations in 2.5D (DIMENSIONS=2 and COMPONENTS=3), with the relfective boundary condition, I realised that the third component of the BX3 magnetic field is not reversed in the ghost cells as it should be (since it is tangential to the boundaries in IDIR and JDIR).
The reason seems to be that Idefix use only the cell-centered value of third component BX3 and not the face-centered one BX3s in 2.5D. So the reflective condition is applied in this loop
which does not reverse the magnetic field components. As I understand it, this is not a problem in 3D as they are overwitten later by the ReconstructVcField function, but in 2.5D, BX3 is left untouched. I fixed this by changing line 689 to
changed the title [-]BUG: Reflective boudary don't reflect correctly the magnetic field in 2.5D[/-][+]BUG: Reflective boudary doesn't reflect correctly BX3 in 2.5D[/+]on May 28, 2025
Activity
fix reflective with MHD and DIMENSIONS < 3 (#343)
Fix axis and reflective boundary conditions (#345)
glesur commented on Jun 16, 2025
fixed and merged by #345