Skip to content

Commit

Permalink
repair cad_to_dagmc_example after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
Edgar-21 committed Jan 28, 2025
1 parent d06b5cc commit 2db1297
Showing 1 changed file with 6 additions and 19 deletions.
25 changes: 6 additions & 19 deletions Examples/parastell_cad_to_dagmc_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,6 @@
toroidal_angles, poloidal_angles, wall_s, radial_build_dict
)
# Export in-vessel component files
stellarator.export_invessel_build(
export_cad_to_dagmc=False, export_dir=export_dir
)
# Export in-vessel component files
stellarator.export_invessel_build(export_dir=export_dir)

# Define build parameters for magnet coils
Expand All @@ -71,22 +67,13 @@
export_dir=export_dir,
)

# Define build parameters for magnet coils
coils_file = "coils.example"
width = 40.0
thickness = 50.0
# Define source mesh parameters
mesh_size = (11, 81, 61)
toroidal_extent = 90.0
# Construct magnets
stellarator.construct_magnets(
coils_file, width, thickness, toroidal_extent, sample_mod=6
)
# Export magnet files
stellarator.export_magnets(
step_filename="magnets",
export_mesh=True,
mesh_filename="magnet_mesh",
export_dir=export_dir,
)
# Construct source
stellarator.construct_source_mesh(mesh_size, toroidal_extent)
# Export source file
stellarator.export_source_mesh(filename="source_mesh", export_dir=export_dir)

# Build Cubit model of Parastell Components
stellarator.build_cad_to_dagmc_model()
Expand Down

0 comments on commit 2db1297

Please sign in to comment.