Exemplo n.º 1
0
    def __init__(self, data_code, is_sort1, isubcase, dt):
        StressObject.__init__(self, data_code, isubcase)
        self.eType = {}

        self.code = [self.format_code, self.sort_code, self.s_code]
        self.o11 = {}
        self.o22 = {}
        self.t12 = {}
        self.t1z = {}
        self.t2z = {}
        self.angle = {}
        self.majorP = {}
        self.minorP = {}
        #self.fiberCurvature = {}
        self.ovmShear = {}
        #if self.isVonMisesStress():

        self.dt = dt
        if is_sort1:
            if dt is not None:
                self.add = self.add_sort1
                self.add_new_eid = self.add_new_eid_sort1
        else:
            assert dt is not None
            self.add = self.addSort2
            self.add_new_eid = self.add_new_eid_sort2
Exemplo n.º 2
0
    def __init__(self, data_code, is_sort1, isubcase, dt):
        StressObject.__init__(self, data_code, isubcase)
        self.eType = 'CSHEAR'

        self.code = [self.format_code, self.sort_code, self.s_code]
        self.maxShear = {}
        self.avgShear = {}
        self.margin = {}

        self.getLength = self.getLength
        self.isImaginary = False
        #if dt is not None:
        #    self.add_new_transient = self.add_new_transient
        #    self.add_new_eid       = self.addNewEidTransient
        #else:
        #    self.add_new_eid = self.add_new_eid

        self.dt = dt
        if is_sort1:
            if dt is not None:
                self.add = self.add_sort1
                self.add_new_eid = self.add_new_eid_sort1
        else:
            assert dt is not None
            self.add = self.addSort2
            self.add_new_eid = self.add_new_eid_sort2
Exemplo n.º 3
0
    def __init__(self, data_code, is_sort1, isubcase, dt):
        StressObject.__init__(self, data_code, isubcase)
        self.eType = 'CBUSH'

        self.code = [self.format_code, self.sort_code, self.s_code]
        self.axial = {}
        self.torsion = {}
Exemplo n.º 4
0
    def __init__(self, data_code, is_sort1, isubcase, dt):
        StressObject.__init__(self, data_code, isubcase)
        self.eType = {}

        self.code = [self.format_code, self.sort_code, self.s_code]
        self.s1 = {}
        self.s2 = {}
        self.s3 = {}
        self.s4 = {}
        self.axial = {}
        self.smax = {}
        self.smin = {}
        self.MS_tension = {}
        self.MS_compression = {}

        #if self.element_type==100:
            #self.getLength = self.getLength100_format1_sort0
            #self.add_new_eid = self.addNewEid100

        self.dt = dt
        #print "BAR dt=%s" %(dt)
        if is_sort1:
            if dt is not None:
                #self.add = self.add_sort1
                self.add_new_eid = self.add_new_eid_sort1
        else:
            assert dt is not None
Exemplo n.º 5
0
    def __init__(self, data_code, is_sort1, isubcase, dt):
        StressObject.__init__(self, data_code, isubcase)
        # self.eType = 'QUAD4FD' # or CTRIA3

        self.code = [self.format_code, self.sort_code, self.s_code]
        self.eType = {}
        self.fiberDistance = {}
        self.oxx = {}
        self.oyy = {}
        self.ozz = {}
        self.txy = {}

        self.exx = {}
        self.eyy = {}
        self.ezz = {}
        self.exy = {}

        self.es = {}
        self.eps = {}
        self.ecs = {}

        self.dt = dt
        if is_sort1:
            if dt is not None:
                self.add = self.add_sort1
                self.add_new_eid = self.add_new_eid_sort1
        else:
            assert dt is not None
Exemplo n.º 6
0
    def __init__(self, data_code, is_sort1, isubcase, dt):
        StressObject.__init__(self, data_code, isubcase)

        self.result_flag = 0
        self.eType = {}
        self.code = [self.format_code, self.sort_code, self.s_code]

        self.cid = {}  # gridGauss
        if self.result_flag == 0:
            self.oxx = {}
            self.oyy = {}
            self.ozz = {}
            self.txy = {}
            self.tyz = {}
            self.txz = {}
        elif self.result_flag == 1:
            self.wmax = {}
            self.oxx = {}  # dummy

        if is_sort1:
            pass
            #if dt is not None:
                #self.add = self.add_sort1
                #self.add_new_eid = self.add_new_eid_sort1
        else:
            assert dt is not None
            raise NotImplementedError('SORT2')
Exemplo n.º 7
0
    def __init__(self, data_code, is_sort1, isubcase, dt):
        StressObject.__init__(self, data_code, isubcase)
        self.eType = {}

        #self.append_data_member('sCodes','s_code')
        #print "self.s_code = ",self.s_code
        self.code = [self.format_code, self.sort_code, self.s_code]

        self.fiberCurvature = {}
        self.oxx = {}
        self.oyy = {}
        self.txy = {}

        self.dt = dt
Exemplo n.º 8
0
    def __init__(self, data_code, is_sort1, isubcase, dt):
        StressObject.__init__(self, data_code, isubcase)
        self.eType = {}

        self.code = [self.format_code, self.sort_code, self.s_code]

        self.translations = {}
        self.rotations = {}

        self.dt = dt
        if is_sort1:
            if dt is not None:
                self.add_new_eid = self.add_new_eid_sort1
        else:
            assert dt is not None
Exemplo n.º 9
0
    def __init__(self, data_code, is_sort1, isubcase, dt):
        StressObject.__init__(self, data_code, isubcase)
        self.eType = {}
        self.element_name = self.data_code['element_name']

        self.code = [self.format_code, self.sort_code, self.s_code]
        self.force = {}
        self.stress = {}

        self.dt = dt
        if is_sort1:
            if dt is not None:
                self.add_new_eid = self.add_new_eid_sort1
        else:
            assert dt is not None
            self.add_new_eid = self.add_new_eid_sort2
Exemplo n.º 10
0
    def __init__(self, data_code, is_sort1, isubcase, dt):
        StressObject.__init__(self, data_code, isubcase)
        self.eType = {}

        self.code = [self.format_code, self.sort_code, self.s_code]

        self.s1 = {}
        self.s2 = {}
        self.s3 = {}
        self.s4 = {}
        self.axial = {}

        #if self.element_type==100:
            #self.getLength = self.getLength100_format1_sort0
            #self.add_new_eid = self.addNewEid100

        self.dt = dt
Exemplo n.º 11
0
    def __init__(self, data_code, is_sort1, isubcase, dt):
        StressObject.__init__(self, data_code, isubcase)
        self.eType = 'CROD'

        self.code = [self.format_code, self.sort_code, self.s_code]
        self.axial = {}
        self.torsion = {}

        self.dt = dt
        if is_sort1:
            if dt is not None:
                #self.add = self.add_sort1
                self.add_new_eid = self.add_new_eid_sort1
        else:
            assert dt is not None
            #self.add = self.addSort2
            self.add_new_eid = self.add_new_eid_sort2
Exemplo n.º 12
0
    def __init__(self, data_code, is_sort1, isubcase, dt):
        StressObject.__init__(self, data_code, isubcase)
        self.eType = 'CSHEAR'

        self.code = [self.format_code, self.sort_code, self.s_code]
        self.maxShear = {}
        self.avgShear = {}

        self.isImaginary = False

        self.dt = dt
        if is_sort1:
            if dt is not None:
                #self.add = self.add_sort1
                self.add_new_eid = self.add_new_eid_sort1
        else:
            assert dt is not None
            #self.add = self.addSort2
            self.add_new_eid = self.add_new_eid_sort2
Exemplo n.º 13
0
    def __init__(self, data_code, is_sort1, isubcase, dt):
        StressObject.__init__(self, data_code, isubcase)
        self.eType = {}

        self.code = [self.format_code, self.sort_code, self.s_code]

        self.element_force = {}
        self.axial_displacement = {}
        self.axial_stress = {}
        self.axial_strain = {}

        self.dt = dt
        if is_sort1:
            if dt is not None:
                #self.add = self.add_sort1
                self.add_new_eid = self.add_new_eid_sort1
        else:
            assert dt is not None
            #self.add = self.addSort2
            self.add_new_eid = self.add_new_eid_sort2
Exemplo n.º 14
0
    def __init__(self, data_code, is_sort1, isubcase, dt):
        StressObject.__init__(self, data_code, isubcase)
        self.eType = {}

        #self.append_data_member('sCodes','s_code')
        #print "self.s_code = ",self.s_code
        self.code = [self.format_code, self.sort_code, self.s_code]

        self.fiberCurvature = {}
        self.oxx = {}
        self.oyy = {}
        self.txy = {}

        self.dt = dt
        if is_sort1:
            if dt is not None:
                self.add = self.add_sort1
                self.add_new_eid = self.add_new_eid_sort1
                self.addNewNode = self.addNewNodeSort1
        else:
            assert dt is not None
Exemplo n.º 15
0
    def __init__(self, data_code, is_sort1, isubcase, dt):
        StressObject.__init__(self, data_code, isubcase)
        self.eType = "QUAD4FD"

        self.code = [self.format_code, self.sort_code, self.s_code]
        self.Type = {}
        self.IDs = {}
        self.oxx = {}
        self.oyy = {}
        self.txy = {}
        self.angle = {}
        self.majorP = {}
        self.minorP = {}

        self.dt = dt
        if is_sort1:
            if dt is not None:
                self.add = self.add_sort1
                self.add_new_eid = self.add_new_eid_sort1
        else:
            assert dt is not None
Exemplo n.º 16
0
    def __init__(self, data_code, is_sort1, isubcase, dt):
        StressObject.__init__(self, data_code, isubcase)
        #self.eType = 'CROD'
        self.eTypeMap = {89: 'CRODNL', 92: 'CONRODNL'}
        self.code = [self.format_code, self.sort_code, self.s_code]

        self.eType = {}
        self.axialStress = {}
        self.equivStress = {}
        self.totalStrain = {}
        self.effectivePlasticCreepStrain = {}
        self.effectiveCreepStrain = {}
        self.linearTorsionalStress = {}

        self.dt = dt
        if is_sort1:
            if dt is not None:
                self.add = self.add_sort1
                #self.add_new_eid = self.add_new_eid_sort1
        else:
            assert dt is not None
Exemplo n.º 17
0
    def __init__(self, data_code, is_sort1, isubcase, dt):
        StressObject.__init__(self, data_code, isubcase)
        self.eType = 'CTRIAX6'

        self.code = [self.format_code, self.sort_code, self.s_code]
        self.radial = {}
        self.azimuthal = {}
        self.axial = {}
        self.shear = {}
        self.omax = {}
        self.oms = {}
        self.ovm = {}

        self.dt = dt
        if is_sort1:
            if dt is not None:
                self.add = self.add_sort1
                self.add_new_eid = self.add_new_eid_sort1
        else:
            assert dt is not None
            self.add = self.addSort2
            self.add_new_eid = self.add_new_eid_sort2
Exemplo n.º 18
0
    def __init__(self, data_code, is_sort1, isubcase, dt):
        StressObject.__init__(self, data_code, isubcase)
        self.eType = "CBEAM"

        self.code = [self.format_code, self.sort_code, self.s_code]
        self.xxb = {}
        self.grids = {}
        self.smax = {}
        self.smin = {}
        self.MS_tension = {}
        self.MS_compression = {}

        self.sxc = {}
        self.sxd = {}
        self.sxe = {}
        self.sxf = {}
        # self.isImaginary = False

        self.dt = dt
        if is_sort1:
            if dt is not None:
                self.add = self.add_sort1
                self.add_new_eid = self.add_new_eid_sort1
Exemplo n.º 19
0
    def __init__(self, data_code, is_sort1, isubcase, dt):
        StressObject.__init__(self, data_code, isubcase)
        self.eType = {}
        self.element_name = self.data_code['element_name']

        self.code = [self.format_code, self.sort_code, self.s_code]
        self.compX = {}
        self.shearY = {}
        self.shearZ = {}
        self.axialU = {}
        self.shearV = {}
        self.shearW = {}
        self.slipV = {}
        self.slipW = {}

        self.dt = dt
        if is_sort1:
            if dt is not None:
                #self.add = self.add_sort1
                self.add_new_eid = self.add_new_eid_sort1
        else:
            assert dt is not None
            #self.add = self.addSort2
            self.add_new_eid = self.add_new_eid_sort2
Exemplo n.º 20
0
    def __init__(self, data_code, is_sort1, isubcase, dt):
        StressObject.__init__(self, data_code, isubcase)
        self.eType = {}

        self.code = [self.format_code, self.sort_code, self.s_code]
        self.o11 = {}
        self.o22 = {}
        self.t12 = {}
        self.t1z = {}
        self.t2z = {}
        self.angle = {}
        self.majorP = {}
        self.minorP = {}
        #self.fiberCurvature = {}
        self.ovmShear = {}

        self.dt = dt
        if is_sort1:
            if dt is not None:
                self.add = self.add_sort1
                self.add_new_eid = self.add_new_eid_sort1
        else:
            assert dt is not None, dt
            raise NotImplementedError('SORT2')
Exemplo n.º 21
0
 def __init__(self, data_code, is_sort1, isubcase, dt):
     RandomCompositePlateArray.__init__(self, data_code, is_sort1, isubcase,
                                        dt)
     StressObject.__init__(self, data_code, isubcase)
Exemplo n.º 22
0
 def __init__(self, data_code, is_sort1, isubcase, dt):
     RealNonlinearBeamArray.__init__(self, data_code, is_sort1, isubcase, dt)
     StressObject.__init__(self, data_code, isubcase)
Exemplo n.º 23
0
 def __init__(self, data_code, is_sort1, isubcase, dt):
     ComplexSpringDamperArray.__init__(self, data_code, is_sort1, isubcase, dt)
     StressObject.__init__(self, data_code, isubcase)
Exemplo n.º 24
0
 def __init__(self, data_code, is_sort1, isubcase, dt):
     RealBar10NodesArray.__init__(self, data_code, is_sort1, isubcase, dt)
     StressObject.__init__(self, data_code, isubcase)
Exemplo n.º 25
0
 def __init__(self, data_code, is_sort1, isubcase, dt):
     RandomShearArray.__init__(self, data_code, is_sort1, isubcase, dt)
     StressObject.__init__(self, data_code, isubcase)
Exemplo n.º 26
0
 def __init__(self, data_code, is_sort1, isubcase, dt):
     RandomPlateArray.__init__(self, data_code, is_sort1, isubcase, dt)
     StressObject.__init__(self, data_code, isubcase)
     str(self.has_von_mises)
Exemplo n.º 27
0
 def __init__(self, data_code, is_sort1, isubcase, dt):
     ComplexBendArray.__init__(self, data_code, is_sort1, isubcase, dt)
     StressObject.__init__(self, data_code, isubcase)
Exemplo n.º 28
0
 def __init__(self, data_code, is_sort1, isubcase, dt):
     RealBushArray.__init__(self, data_code, is_sort1, isubcase, dt)
     StressObject.__init__(self, data_code, isubcase)
Exemplo n.º 29
0
 def __init__(self, data_code, is_sort1, isubcase, dt):
     ComplexSolidArray.__init__(self, data_code, is_sort1, isubcase, dt)
     StressObject.__init__(self, data_code, isubcase)
Exemplo n.º 30
0
 def __init__(self, data_code, is_sort1, isubcase, dt):
     ComplexSpringDamperArray.__init__(self, data_code, is_sort1, isubcase,
                                       dt)
     StressObject.__init__(self, data_code, isubcase)
Exemplo n.º 31
0
 def __init__(self, data_code, is_sort1, isubcase, dt):
     RealPlateArray.__init__(self, data_code, is_sort1, isubcase, dt)
     StressObject.__init__(self, data_code, isubcase)
 def __init__(self, data_code, is_sort1, isubcase, dt):
     RealCompositePlateArray.__init__(self, data_code, is_sort1, isubcase, dt)
     StressObject.__init__(self, data_code, isubcase)
Exemplo n.º 33
0
 def __init__(self, data_code, is_sort1, isubcase, dt):
     RealCompositePlateStrengthRatioArray.__init__(self, data_code,
                                                   is_sort1, isubcase, dt)
     StressObject.__init__(self, data_code, isubcase)
Exemplo n.º 34
0
 def __init__(self, data_code, is_sort1, isubcase, dt):
     RealNonlinearBeamArray.__init__(self, data_code, is_sort1, isubcase,
                                     dt)
     StressObject.__init__(self, data_code, isubcase)
Exemplo n.º 35
0
 def __init__(self, data_code, is_sort1, isubcase, dt):
     RealSolidCompositeArray.__init__(self, data_code, is_sort1, isubcase,
                                      dt)
     StressObject.__init__(self, data_code, isubcase)