Пример #1
0
 def make_component(self, lower_coolant_info):
     excess_coolant_height = lower_coolant_info[0]
     flat_to_flat = lower_coolant_info[1]
     surface_comment = "$Assembly: Lower Coolant"
     cell_comment = "$Assembly: Lower Coolant"
     position = copy.deepcopy(self.position)
     position[2] -= 0.1
     lower_na_height = excess_coolant_height + 0.1
     self.surfaceCard = mcnpCF.build_rotated_right_hexagonal_prism_surface(flat_to_flat, lower_na_height, position,
                                                                           self.surfaceNum, surface_comment)
     self.cellCard = mcnpCF.build_single_cell(self.cellNum, self.materialNum, self.material.atomDensity,
                                              self.surfaceNum, self.universe, cell_comment)
Пример #2
0
 def make_component(self, unit_info):
     self.flat2flat = unit_info[0]
     self.height = unit_info[1]
     surface_comment = "$Assembly: {}".format(self.componentName)
     cell_comment = "$Assembly: {}".format(self.componentName)
     self.surfaceCard = mcnpCF.build_rotated_right_hexagonal_prism_surface(
         self.flat2flat, self.height, self.position, self.surfaceNum,
         surface_comment)
     self.cellCard = mcnpCF.build_single_cell(self.cellNum,
                                              self.materialNum,
                                              self.material.atomDensity,
                                              self.surfaceNum,
                                              self.universe, cell_comment)
Пример #3
0
 def make_component(self, upper_coolant_info):
     excess_coolant_height = upper_coolant_info[0]
     flat_to_flat_universe = upper_coolant_info[1]
     surface_comment = "$Assembly: Upper Coolant"
     cell_comment = "$Assembly: Upper Coolant"
     self.surfaceCard = mcnpCF.build_rotated_right_hexagonal_prism_surface(
         flat_to_flat_universe, excess_coolant_height, self.position,
         self.surfaceNum, surface_comment)
     self.cellCard = mcnpCF.build_single_cell(self.cellNum,
                                              self.materialNum,
                                              self.material.atomDensity,
                                              self.surfaceNum,
                                              self.universe, cell_comment)
Пример #4
0
 def make_component(self, coolant_info):
     self.pitch = coolant_info[0] / 2
     self.height = coolant_info[1]
     self.blankCoolantSurfaceNum = coolant_info[2]
     surface_comment = "$Pin: Blank Pin - 1% higher than fuel"
     cell_comment = "$Pin: Blank Pin Coolant"
     self.surfaceCard = mcnpCF.build_right_hexagonal_prism_surface(
         self.pitch, self.height, self.position, self.surfaceNum,
         surface_comment)
     self.cellCard = mcnpCF.build_single_cell(self.cellNum,
                                              self.materialNum,
                                              self.material.atomDensity,
                                              self.blankCoolantSurfaceNum,
                                              self.universe, cell_comment)
Пример #5
0
def test_getSingleCell():
    cellCard = MCF.build_single_cell(1, 2, 0.06, 3, 10, '$ Comment')
    cellCardKnown = '1 2 0.06 -3 u=10 imp:n=1 $ Comment'
    assert cellCard == cellCardKnown