add msre by parts to the repo
and makes sure we tag all the parts by correct material
This commit is contained in:
parent
fab1de8e0f
commit
f5e136a362
2 changed files with 868287 additions and 2 deletions
|
|
@ -9,7 +9,7 @@ import CAD_to_OpenMC.assembly as ab
|
|||
###############################################################################
|
||||
|
||||
# inputs
|
||||
step_filepath = "./step_files/msre.step"
|
||||
step_filepath = "./step_files/msre_parts.step"
|
||||
h5m_out_filepath = os.getcwd() + '/h5m_files/msre.h5m'
|
||||
|
||||
# mesher config
|
||||
|
|
@ -25,5 +25,20 @@ ab.mesher_config['threads'] = 6
|
|||
# output
|
||||
a=ab.Assembly()
|
||||
a.stp_files=[step_filepath]
|
||||
a.import_stp_files()
|
||||
tags={'hold-down.*':'graphite',\
|
||||
'thimble.*':'inor', 'core\ support':'graphite',\
|
||||
'graphite':'graphite',\
|
||||
'core.*':'inor',\
|
||||
'vessel':'hastelloy',\
|
||||
'.*stringer.*':'graphite',\
|
||||
'inor.*':'inor',\
|
||||
'(bottom|top|basket)':'hastelloy',\
|
||||
'(lower|upper) lattice':'graphite',\
|
||||
'lifting stud':'inor',\
|
||||
'distributor':'inor',\
|
||||
'restrictor':'inor',\
|
||||
'(support|lower) ring':'inor',\
|
||||
'^(left|right|back|front)$':'graphite',\
|
||||
'.*grid support':'inor'}
|
||||
a.import_stp_files(tags=tags, match_anywhere=True)
|
||||
a.solids_to_h5m(backend='gmsh',h5m_filename=h5m_out_filepath)
|
||||
|
|
|
|||
868270
step_files/msre_parts.step
Normal file
868270
step_files/msre_parts.step
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue