Skip to content

Commit

Permalink
Merge pull request #139 from svalinn/magnets-cq
Browse files Browse the repository at this point in the history
  • Loading branch information
gonuke authored Sep 10, 2024
2 parents f6549cb + 3fbecaf commit d768c72
Show file tree
Hide file tree
Showing 6 changed files with 294 additions and 436 deletions.
5 changes: 3 additions & 2 deletions Examples/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,11 @@ invessel_build:

magnet_coils:
coils_file: coils.example
cross_section: [circle, 20.0]
width: 40.0
thickness: 50.0
toroidal_extent: 90.0
sample_mod: 6
step_filename: magnet_coils
step_filename: magnet_set
export_mesh: True
mesh_filename: magnet_mesh

Expand Down
5 changes: 3 additions & 2 deletions Examples/parastell_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,12 @@

# Define build parameters for magnet coils
coils_file = "coils.example"
cross_section = ["circle", 20]
width = 40.0
thickness = 50.0
toroidal_extent = 90.0
# Construct magnets
stellarator.construct_magnets(
coils_file, cross_section, toroidal_extent, sample_mod=6
coils_file, width, thickness, toroidal_extent, sample_mod=6
)
# Export magnet files
stellarator.export_magnets(
Expand Down
Loading

0 comments on commit d768c72

Please sign in to comment.