Skip to content

Commit

Permalink
adds new function for creating Cubit instances
Browse files Browse the repository at this point in the history
  • Loading branch information
tokamaster committed Nov 21, 2024
1 parent 6cfe305 commit ac5dca6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions parastell/cubit_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,3 +205,14 @@ def export_dagmc_cubit_native(
# exports
if delete_upon_export:
cubit.cmd(f"delete mesh volume all propagate")


def create_new_cubit_instance():
"""Creates new cubit instance checking if Cubit has been already
initialized.
"""
if initialized:
cubit.cmd("new")
else:
init_cubit()

0 comments on commit ac5dca6

Please sign in to comment.