Skip to content

Commit

Permalink
add docstrings to new MagnetCoil method
Browse files Browse the repository at this point in the history
  • Loading branch information
Edgar-21 committed Jan 29, 2025
1 parent 0fa2477 commit 289c4a7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions parastell/magnet_coils.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ def export_mesh(self, mesh_filename="magnet_mesh", export_dir=""):
)

def add_solids_to_cad_to_dagmc(self, dagmc_model):
"""Add the magnet solids to a cad_to_dagmc model with the magnet
material tag.
"""
for solid in self.coil_solids:
dagmc_model.add_cadquery_object(
solid, material_tags=[self.mat_tag]
Expand Down Expand Up @@ -400,6 +403,7 @@ def __init__(
self.__setattr__(name, kwargs[name])

def get_cq_solids(self):
"""Load the provided geometry into cadquery for use with cad_to_dagmc."""
self.coil_solids = (
cq.importers.importStep(str(self.geometry_file)).val().Solids()
)
Expand Down

0 comments on commit 289c4a7

Please sign in to comment.