def makeComponent(self, upperCoolantInfo):
     excessCoolantHeight = upperCoolantInfo[0]
     flatToFlatUniverse = upperCoolantInfo[1]
     surfaceComment = "$Assembly: Upper Coolant"
     cellComment = "$Assembly: Upper Coolant"
     self.surfaceCard = mcnpCF.getRHPRotated(flatToFlatUniverse, excessCoolantHeight, self.position,  self.surfaceNum,
                                      surfaceComment)
     self.cellCard = mcnpCF.getSingleCell(self.cellNum, self.materialNum, self.material.atomDensity, self.surfaceNum,
                                          self.universe, cellComment)
Beispiel #2
0
 def makeComponent(self, pinInfo):
     self.radius = pinInfo[0] / 2
     self.height = pinInfo[1]
     surfaceComment = "$Pin: Fuel"
     cellComment = "$Pin: Fuel"
     self.surfaceCard = mcnpCF.getRCC(self.radius, self.height,
                                      self.position, self.surfaceNum,
                                      surfaceComment)
     self.cellCard = mcnpCF.getSingleCell(self.cellNum, self.materialNum,
                                          self.material.atomDensity,
                                          self.surfaceNum, self.universe,
                                          cellComment)
Beispiel #3
0
 def makeComponent(self, ductInfo):
     self.flat2flat = ductInfo[0]
     self.height = ductInfo[1]
     surfaceComment = "$Assembly: {}".format(self.componentName)
     cellComment = "$Assembly: {}".format(self.componentName)
     self.surfaceCard = mcnpCF.getRHPRotated(self.flat2flat, self.height,
                                             self.position, self.surfaceNum,
                                             surfaceComment)
     self.cellCard = mcnpCF.getSingleCell(self.cellNum, self.materialNum,
                                          self.material.atomDensity,
                                          self.surfaceNum, self.universe,
                                          cellComment)
Beispiel #4
0
 def makeComponent(self, coolantInfo):
     self.pitch = coolantInfo[0] / 2
     self.height = coolantInfo[1]
     self.blankCoolantSurfaceNum = coolantInfo[2]
     surfaceComment = "$Pin: Blank Pin - 1% higher than fuel"
     cellComment = "$Pin: Blank Pin Coolant"
     self.surfaceCard = mcnpCF.getRHP(self.pitch, self.height,
                                      self.position, self.surfaceNum,
                                      surfaceComment)
     self.cellCard = mcnpCF.getSingleCell(self.cellNum, self.materialNum,
                                          self.material.atomDensity,
                                          self.blankCoolantSurfaceNum,
                                          self.universe, cellComment)
Beispiel #5
0
 def makeComponent(self, lowerCoolantInfo):
     excessCoolantHeight = lowerCoolantInfo[0]
     flatToFlat = lowerCoolantInfo[1]
     surfaceComment = "$Assembly: Lower Coolant"
     cellComment = "$Assembly: Lower Coolant"
     position = copy.deepcopy(self.position)
     position[2] -= 0.1
     lowerNaHeight = excessCoolantHeight + 0.1
     self.surfaceCard = mcnpCF.getRHPRotated(flatToFlat, lowerNaHeight,
                                             position, self.surfaceNum,
                                             surfaceComment)
     self.cellCard = mcnpCF.getSingleCell(self.cellNum, self.materialNum,
                                          self.material.atomDensity,
                                          self.surfaceNum, self.universe,
                                          cellComment)
def test_getSingleCell():
    cellCard = MCF.getSingleCell(1, 2, 0.06, 3, 10, '$ Comment')
    cellCardKnown = '1 2 0.06 -3 u=10 imp:n=1 $ Comment'
    assert cellCard == cellCardKnown