def __init__( self, name, material, Tinput, Thot, base=None, height=None, mult=None, modArea=None, isotopics=None, mergeWith=None, components=None, ): ShapedComponent.__init__( self, name, material, Tinput, Thot, isotopics=isotopics, mergeWith=mergeWith, components=components, ) self._linkAndStoreDimensions( components, base=base, height=height, mult=mult, modArea=modArea )
def __init__( self, name, material, Tinput, Thot, op, ip=0.0, mult=1.0, modArea=None, isotopics=None, mergeWith=None, components=None, ): ShapedComponent.__init__( self, name, material, Tinput, Thot, isotopics=isotopics, mergeWith=mergeWith, components=components, ) self._linkAndStoreDimensions( components, op=op, ip=ip, mult=mult, modArea=modArea )
def __init__( self, name, material, Tinput, Thot, od=None, axialPitch=None, mult=None, helixDiameter=None, id=0.0, modArea=None, isotopics=None, mergeWith=None, components=None, ): ShapedComponent.__init__( self, name, material, Tinput, Thot, isotopics=isotopics, mergeWith=mergeWith, components=components, ) self._linkAndStoreDimensions( components, od=od, axialPitch=axialPitch, mult=mult, helixDiameter=helixDiameter, id=id, modArea=modArea, )
def __init__( self, name, material, Tinput, Thot, widthOuter=None, widthInner=0.0, mult=None, modArea=None, isotopics=None, mergeWith=None, components=None, ): ShapedComponent.__init__( self, name, material, Tinput, Thot, isotopics=isotopics, mergeWith=mergeWith, components=components, ) self._linkAndStoreDimensions( components, lengthOuter=widthOuter, widthOuter=widthOuter, widthInner=widthInner, lengthInner=widthInner, mult=mult, modArea=modArea, )
def __init__( self, name, material, Tinput, Thot, od=None, id=None, mult=None, modArea=None, isotopics=None, mergeWith=None, components=None, ): ShapedComponent.__init__( self, name, material, Tinput, Thot, isotopics=isotopics, mergeWith=mergeWith, components=components, ) self._linkAndStoreDimensions(components, od=od, id=id, mult=mult, modArea=modArea) self.setVolume(self.getVolume())
def __init__( self, name, material, Tinput, Thot, inner_minor_radius=None, outer_minor_radius=None, major_radius=None, mult=1, inner_theta=0.0, outer_theta=math.pi * 2, inner_phi=0, outer_phi=math.pi * 2, height=None, reference_volume=None, inner_radius=None, outer_radius=None, isotopics=None, mergeWith=None, components=None, ): ShapedComponent.__init__( self, name, material, Tinput, Thot, isotopics=isotopics, mergeWith=mergeWith, components=components, ) height = 2 * outer_minor_radius if height is None else height inner_radius = (major_radius - outer_minor_radius if inner_radius is None else inner_radius) outer_radius = (major_radius + outer_minor_radius if outer_radius is None else outer_radius) self._linkAndStoreDimensions( components, inner_minor_radius=inner_minor_radius, outer_minor_radius=outer_minor_radius, major_radius=major_radius, mult=mult, inner_theta=inner_theta, outer_theta=outer_theta, inner_phi=inner_phi, outer_phi=outer_phi, height=height, reference_volume=reference_volume, inner_radius=inner_radius, outer_radius=outer_radius, )
def __init__( self, name, material, Tinput, Thot, lengthOuter=None, widthOuter=None, mult=None, modArea=None, isotopics=None, mergeWith=None, components=None, ): ShapedComponent.__init__( self, name, material, Tinput, Thot, isotopics=isotopics, mergeWith=mergeWith, components=components, ) self._linkAndStoreDimensions( components, lengthOuter=lengthOuter, widthOuter=widthOuter, mult=mult, modArea=modArea, ) # these need to be set so that we don't try to write NoDefaults to the database. # Ultimately, it makes more sense to have the non-Solid Rectangle inherit from # this (and probably be called a HollowRectangle or RectangularShell or # whatever), since a solid rectangle is more generic of the two. Then the # Parameter definitions for the hollow rectangle could inherit from the ones, # adding the inner dimensions so that we wouln't need to do this here. self.p.lengthInner = 0 self.p.widthInner = 0
def __init__( self, name, material, Tinput, Thot, inner_radius=None, radius_differential=None, inner_axial=None, height=None, inner_theta=0, azimuthal_differential=2 * math.pi, mult=1, isotopics=None, mergeWith=None, components=None, ): ShapedComponent.__init__( self, name, material, Tinput, Thot, isotopics=isotopics, mergeWith=mergeWith, components=components, ) self._linkAndStoreDimensions( components, inner_radius=inner_radius, radius_differential=radius_differential, inner_axial=inner_axial, height=height, inner_theta=inner_theta, azimuthal_differential=azimuthal_differential, mult=mult, ) self.setVolume(self.getVolume())
def __init__( self, name, material, Tinput, Thot, inner_radius=None, outer_radius=None, height=None, mult=None, inner_theta=0, outer_theta=math.pi * 2, isotopics=None, mergeWith=None, components=None, ): ShapedComponent.__init__( self, name, material, Tinput, Thot, isotopics=isotopics, mergeWith=mergeWith, components=components, ) self._linkAndStoreDimensions( components, inner_radius=inner_radius, outer_radius=outer_radius, height=height, mult=mult, inner_theta=inner_theta, outer_theta=outer_theta, ) self.setVolume(self.getVolume())