Repository navigation
Read, write and trace through shared netCDF field maps of imposed E and B - #41
Merged
Merged
Conversation
…nd B. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RmZJyk1ATgRBvKnoFeF7JF
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
beamtracer.field_map: the max-models field-map format (max-models-field-map-1.0, shared with picnic, whosepicnic.input_output.output_formatholds the spec and reference validator):FieldMapread/write/from arrays or a function, multilinear interpolation, clip/zero/error outside;validate_field_map,parse_frame_axes; adapters forFieldRegion(3D) and the 2D tracer; a method card for the interpolation (second order in the node spacing).BeamTracertakesimposed_electric, a magnetic field in planar geometry, and an azimuthal B in cylindrical geometry.FieldMapParams(file, outside)asBeamOpticsConfig.field_map(config round trip);BeamOpticschecks the map's frame and dims and adds its E to the solved field and its B to the solenoids or axial field.FieldRegiontakes aFieldMapaselectricormagnetic.BeamOpticsreproduces the Larmor circle and the parabola from uniform maps (rel 1e-5); a cylindrical B map equals anAxialField(1e-9); config round trip.