Skip to content

Curl Curl Solver: Support for 1D spherical and 1D cylindrical#4611

Merged
WeiqunZhang merged 1 commit intoAMReX-Codes:developmentfrom
WeiqunZhang:curlculr_sph
Sep 8, 2025
Merged

Curl Curl Solver: Support for 1D spherical and 1D cylindrical#4611
WeiqunZhang merged 1 commit intoAMReX-Codes:developmentfrom
WeiqunZhang:curlculr_sph

Conversation

@WeiqunZhang
Copy link
Copy Markdown
Member

This PR adds support for 1D spherical and 1D cylindrical. Note that the curl of curl of E is zero in the radial direction. For 1D spherical coordinates, E_theta and E_phi have reflect-odd symmetry, and are thus zero at R = 0. For 1D cylindrical coordinates, E_theta has reflect-odd symmetry, and is thus zero at r = 0. E_z has reflect-even symmetry at r = 0, where the curl-curl is -4(Ez(1)-Ez(0))/dr^2 in the z-direction.

@WeiqunZhang WeiqunZhang changed the title [WIP] Curl Curl Solver: Support for 1D spherical and 1D cylindrical Curl Curl Solver: Support for 1D spherical and 1D cylindrical Aug 15, 2025
@WeiqunZhang WeiqunZhang requested a review from atmyers August 15, 2025 23:27
@WeiqunZhang WeiqunZhang force-pushed the curlculr_sph branch 2 times, most recently from 47c1d3b to 9bc1ef0 Compare August 15, 2025 23:39
This PR adds support for 1D spherical and 1D cylindrical. Note that the curl
of curl of E is zero in the radial direction. For 1D spherical coordinates,
E_theta and E_phi have reflect-odd symmetry, and are thus zero at R = 0. For
1D cylindrical coordinates, E_theta has reflect-odd symmetry, and is thus
zero at r = 0. E_z has reflect-even symmetry at r = 0, where the curl-curl
is -4(Ez(1)-Ez(0))/dr^2 in the z-direction.
@WeiqunZhang
Copy link
Copy Markdown
Member Author

Could we get this approved? It's a new feature that is used by WarpX in 1D. It will not break any other codes.

@WeiqunZhang WeiqunZhang enabled auto-merge (squash) September 8, 2025 01:19
@WeiqunZhang WeiqunZhang merged commit 3b96137 into AMReX-Codes:development Sep 8, 2025
75 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants