Skip to content
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

Merged
merged 6 commits into from
Jan 27, 2025

Conversation

Edgar-21
Copy link
Owner

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.

Copy link

@FusionSandwich FusionSandwich left a 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.

Comment on lines 5 to 6
ribs = 150
rib_pts = 160

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?

Comment on lines 22 to 51
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",
},
}

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_.

Comment on lines 59 to 60
num_ribs=ribs * 3,
num_rib_pts=rib_pts * 3,

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

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

@Edgar-21 Edgar-21 force-pushed the integrate_model_merging branch from f6ecb3e to 20f5a1a Compare January 27, 2025 19:38
@Edgar-21
Copy link
Owner Author

by my royal(?) decree, this is good eneough and shall be merged

@Edgar-21 Edgar-21 merged commit 036ad43 into pydagmc_model_generation Jan 27, 2025
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants