spectre.mesh_gen
Generate SPECTRE meshes and interface guesses from a SPECTRE object’s state.
The two public generators are gen_infaces() (nested internal interface
guesses) and gen_mesh_external() (external mesh harmonics). All routines
are re-exported here so they can be reached as spectre.mesh_gen.XXX; the
implementation is split across two submodules by concern:
spectre.mesh_gen.map2disc— the BCM conformal map and the SPECTRE-state boundary mapping (map_boundary_to_interfaces(),get_inface_func(),gen_mesh_calc_rz()).spectre.mesh_gen.generators— the spectral decomposition and mesh assembly (gen_mesh_fft_rz(),gen_mesh_calc_deriv2(),gen_mesh_set_remn()) and the two generators above.
Note: the top-level spectre package deliberately exposes only
gen_infaces() and gen_mesh_external().