Skip to content

Commit

Permalink
Added flat versions of 32-turns phase-jumping and toroidal wire presets.
Browse files Browse the repository at this point in the history
  • Loading branch information
shredEngineer committed Dec 21, 2024
1 parent dacd7d2 commit 9bc0de0
Showing 1 changed file with 44 additions and 2 deletions.
46 changes: 44 additions & 2 deletions magneticalc/Wire_Presets.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,26 @@ def rotate_xy(V: np.ndarray, A: float) -> np.ndarray:
toroidal_freq=1, poloidal_freq=32
)
}
# Preset: A phase-jumping toroidal loop: 32 turns, hi-res, flat.
PhaseJumpingToroidalLoop32HiResFlat = {
"id": "Phase-jumping Toroidal Loop: 32 turns, hi-res, flat",
"points": get_phase_jumping_toroidal_loop.__func__( # type: ignore
n_points=2000, n_phase_jumps=32,
toroidal_radius=1, poloidal_radius=.5,
toroidal_freq=1, poloidal_freq=32,
flat=True,
)
}
# Preset: A phase-jumping toroidal loop: 32 turns, lo-res, flat.
PhaseJumpingToroidalLoop32LoResFlat = {
"id": "Phase-jumping Toroidal Loop: 32 turns, lo-res, flat",
"points": get_phase_jumping_toroidal_loop.__func__( # type: ignore
n_points=640, n_phase_jumps=32,
toroidal_radius=1, poloidal_radius=.5,
toroidal_freq=1, poloidal_freq=32,
flat=True,
)
}

# Preset: A toroidal loop: 8 turns.
ToroidalLoop8 = {
Expand Down Expand Up @@ -288,15 +308,37 @@ def rotate_xy(V: np.ndarray, A: float) -> np.ndarray:
"points": get_phase_jumping_toroidal_loop.__func__( # type: ignore
n_points=2000, n_phase_jumps=1,
toroidal_radius=1, poloidal_radius=.5,
toroidal_freq=1, poloidal_freq=32
toroidal_freq=1, poloidal_freq=32,
flat=False,
)
}
ToroidalLoop32LoRes = {
"id": "Toroidal Loop: 32 turns, lo-res",
"points": get_phase_jumping_toroidal_loop.__func__( # type: ignore
n_points=640, n_phase_jumps=1,
toroidal_radius=1, poloidal_radius=.5,
toroidal_freq=1, poloidal_freq=32
toroidal_freq=1, poloidal_freq=32,
flat=False,
)
}

# Preset: A toroidal loop: 32 turns, hi-res, flat.
ToroidalLoop32HiResFlat = {
"id": "Toroidal Loop: 32 turns, hi-res",
"points": get_phase_jumping_toroidal_loop.__func__( # type: ignore
n_points=2000, n_phase_jumps=1,
toroidal_radius=1, poloidal_radius=.5,
toroidal_freq=1, poloidal_freq=32,
flat=True,
)
}
ToroidalLoop32LoResFlat = {
"id": "Toroidal Loop: 32 turns, lo-res, flat",
"points": get_phase_jumping_toroidal_loop.__func__( # type: ignore
n_points=640, n_phase_jumps=1,
toroidal_radius=1, poloidal_radius=.5,
toroidal_freq=1, poloidal_freq=32,
flat=True,
)
}

Expand Down

0 comments on commit 9bc0de0

Please sign in to comment.