Skip to content

This is a package grouping a set of useful routines to manipulate/analyse/modify CAD files in SpaceClaim environment.

License

Notifications You must be signed in to change notification settings

Fusion4Energy/SCtools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub last commit GitHub issues GitHub closed issues GitHub top language

SCtools

This is a package grouping a set of useful IronPython routines to manipulate/analyse/modify CAD files in SpaceClaim environment.

SCtools contains many independent tools.

Index of scripts

  • adjust_by_material.py automatic CAD operations that modify a component to mantain its original volume
  • cad_to_mcnp_comparison automatized the generation of reports which compare slice plots from both SpaceClaim and the MCNP plotter.
  • csv_generator.py generates or updates a CSV file that tracks important information like original and simplified volume of every component of a CAD file. It is the basis for many other SCtools scripts.
  • detect_torus.py paints in a shining and opaque red color all the bodies that contain toroidal surfaces for easy identification
  • detect_volumes_to_adjust.py paints in a shining and opaque red all the components with a volume deviation from the original one higher than a limit while painting all the other components in a transparent blue. This allows easy identification of components that require extra work, they are easily fixed with the use of adjust_by_material.py.
  • fmesh_tally_card_generator.py select a prismatic body in SpaceClaim and automatically generates the FMESH and TR card definitions for the prism of those dimensions and roto-translation.
  • load_csv_points.py is a simple script that allows to read a .csv file containing points coordinates and render them as spheres in SpaceClaim.
  • mcnp_materials_from_csv.py automatically updates a MCNP input file with the material, density, DCF, comments and naming found in the CSV file generated with csv_generator.py.
  • report_generation generates reports that show CAD comparisons between original and simplified components.
  • save_step.py automatically exports a SpaceClaim CAD document into STEP format in a way that will maintain the component hierarchy order after MCNP conversion via SuperMC.
  • show_by_material.py select a material as found in the CSV file and only the components that make use of that material will be visible

License

Copyright 2019 F4E | European Joint Undertaking for ITER and the Development of Fusion Energy (‘Fusion for Energy’). Licensed under the EUPL, Version 1.1 or - as soon they will be approved by the European Commission - subsequent versions of the EUPL (the “Licence”). You may not use this work except in compliance with the Licence. You may obtain a copy of the Licence at: http://ec.europa.eu/idabc/eupl.html
Unless required by applicable law or agreed to in writing, software distributed under the Licence is distributed on an “AS IS” basis, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the Licence permissions and limitations under the Licence.

About

This is a package grouping a set of useful routines to manipulate/analyse/modify CAD files in SpaceClaim environment.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages