-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integrate model merging #4
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think a lot of the changes might not be worth since we plan on adding the logic to merge dagmc files into cubit.
Examples/pydagmc_example.py
Outdated
ribs = 150 | ||
rib_pts = 160 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm assuming this is what was needed to make it smooth?
Examples/pydagmc_example.py
Outdated
radial_build_dict = { | ||
"first_wall": { | ||
"thickness_matrix": ones * 5, | ||
"mat_tag": "iron", | ||
}, | ||
"breeder": { | ||
"thickness_matrix": challenge_thickness_matrix, | ||
"mat_tag": "iron", | ||
}, | ||
"back_wall": { | ||
"thickness_matrix": ones * 0.01, | ||
"mat_tag": "iron", | ||
}, | ||
"shield": { | ||
"thickness_matrix": ones * 50, | ||
"mat_tag": "iron", | ||
}, | ||
"vacuum_vessel": { | ||
"thickness_matrix": ones * 10, | ||
"mat_tag": "tungsten", | ||
}, | ||
"test_1": { | ||
"thickness_matrix": ones * 0.1, | ||
"mat_tag": "tungsten", | ||
}, | ||
"test_": { | ||
"thickness_matrix": ones * 5, | ||
"mat_tag": "tungsten", | ||
}, | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should try and keep the radial build more inline with the parastell_example.py file. The name of the layer probably shouldn't be test_.
Examples/pydagmc_example.py
Outdated
num_ribs=ribs * 3, | ||
num_rib_pts=rib_pts * 3, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better to not increase rib number this way.
import numpy as np | ||
import parastell.parastell as ps | ||
from parastell.utils import merge_dagmc_files | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add back in the labels from parastell_example.py
f6ecb3e
to
20f5a1a
Compare
by my royal(?) decree, this is good eneough and shall be merged |
added a short script demonstrating making the ivb with pydagmc and the coils with cubit, then merging the two dagmc models. Updated the merge function to take a list of models.