Exemple #1
0
    def __init__(self, card=None, data=None, comment=''):
        ThermalLoad.__init__(self, card, data)
        if comment:
            self._comment = comment
        if card:
            #: Load set identification number. (Integer > 0)
            self.sid = integer(card, 1, 'eid')

            self.flag = string(card, 2, 'flag')
            assert self.flag in ['POINT', 'LINE', 'REV', 'AREA3', 'AREA4',
                                 'AREA6', 'AREA8']

            #: Magnitude of thermal flux into face. Q0 is positive for heat
            #: into the surface. (Real)
            self.Q0 = double(card, 3, 'Q0')

            #: Area factor depends on type. (Real > 0.0 or blank)
            self.af = double_or_blank(card, 4, 'af')
            nfields = card.nFields()

            #: grids
            self.grids = fields(integer, card, 'grid', i=5, j=nfields)

            #: Grid point identification of connected grid points.
            #: (Integer > 0 or blank)
            self.grids = expand_thru_by(self.grids)
        else:
            self.sid = data[0]
            self.flag = data[1]
            self.Q0 = data[2]
            self.af = data[3]
            self.grids = data[4:]
Exemple #2
0
    def __init__(self, card=None, data=None, comment=""):
        ThermalBC.__init__(self, card, data)
        if comment:
            self._comment = comment

        if card:
            #: NODAMB Ambient point for radiation exchange. (Integer > 0)
            self.nodamb = integer(card, 1, "nodamb")
            assert self.nodamb > 0

            #: Radiation view factor between the face and the ambient point.
            #: (Real > 0.0)
            self.famb = double(card, 2, "famb")
            assert self.famb > 0.0

            #: Control point for thermal flux load. (Integer > 0; Default = 0)
            self.cntrlnd = integer_or_blank(card, 3, "cntrlnd", 0)
            assert self.cntrlnd >= 0

            nfields = card.nfields
            eids = fields(integer_or_string, card, "eid", i=4, j=nfields)
            #: CHBDYi element identification number
            self.eids = expand_thru_by(eids)
        else:
            raise NotImplementedError(data)

        min_eid = min(self.eids)
        if min_eid < 1:
            msg = "min(eids)=%i" % min_eid
            raise ValueError(msg)
Exemple #3
0
    def __init__(self, card=None, data=None, comment=''):
        ThermalLoad.__init__(self, card, data)
        if comment:
            self._comment = comment
        if card:
            #: Load set identification number. (Integer > 0)
            self.sid = integer(card, 1, 'eid')

            self.flag = string(card, 2, 'flag')
            assert self.flag in [
                'POINT', 'LINE', 'REV', 'AREA3', 'AREA4', 'AREA6', 'AREA8'
            ]

            #: Magnitude of thermal flux into face. Q0 is positive for heat
            #: into the surface. (Real)
            self.Q0 = double(card, 3, 'Q0')

            #: Area factor depends on type. (Real > 0.0 or blank)
            self.af = double_or_blank(card, 4, 'af')
            nfields = card.nFields()

            #: grids
            self.grids = fields(integer, card, 'grid', i=5, j=nfields)

            #: Grid point identification of connected grid points.
            #: (Integer > 0 or blank)
            self.grids = expand_thru_by(self.grids)
        else:
            self.sid = data[0]
            self.flag = data[1]
            self.Q0 = data[2]
            self.af = data[3]
            self.grids = data[4:]
Exemple #4
0
    def __init__(self, card=None, data=None, comment=''):
        ThermalBC.__init__(self, card, data)
        if comment:
            self._comment = comment

        if card:
            #: NODAMB Ambient point for radiation exchange. (Integer > 0)
            self.nodamb = integer(card, 1, 'nodamb')
            assert self.nodamb > 0

            #: Radiation view factor between the face and the ambient point.
            #: (Real > 0.0)
            self.famb = double(card, 2, 'famb')
            assert self.famb > 0.0

            #: Control point for thermal flux load. (Integer > 0; Default = 0)
            self.cntrlnd = integer_or_blank(card, 3, 'cntrlnd', 0)
            assert self.cntrlnd >= 0

            nfields = card.nFields()
            eids = fields(integer_or_string, card, 'eid', i=4, j=nfields)
            #: CHBDYi element identification number
            self.eids = expand_thru_by(eids)
        else:
            raise NotImplementedError(data)

        min_eid = min(self.eids)
        if min_eid < 1:
            msg = 'min(eids)=%i' % min_eid
            raise ValueError(msg)
Exemple #5
0
    def __init__(self, card=None, data=None):
        ThermalBC.__init__(self, card, data)

        ## NODAMB Ambient point for radiation exchange. (Integer > 0)
        self.nodamb = card.field(1)
        ## Radiation view factor between the face and the ambient point.
        ## (Real > 0.0)
        self.famb = card.field(2)
        ## Control point for thermal flux load. (Integer > 0; Default = 0)
        self.cntrlnd = card.field(3, 0)

        eids = card.fields(4)
        ## CHBDYi element identification number
        self.eids = expand_thru_by(eids)
Exemple #6
0
 def __init__(self, card=None, data=None, comment=''):
     if comment:
         self._comment = comment
     if card:
         self.oid = integer(card, 1, 'oid')
         n = 1
         ddvals = []
         for i in range(2, len(card)):
             ddval = double_string_or_blank(card, i, 'DDVAL%s' % n)
             if ddval:
                 ddvals.append(ddval)
         self.ddvals = expand_thru_by(ddvals)
         self.ddvals.sort()
     else:
         raise NotImplementedError(data)
 def __init__(self, card=None, data=None, comment=''):
     if comment:
         self._comment = comment
     if card:
         self.oid = integer(card, 1, 'oid')
         n = 1
         ddvals = []
         for i in range(2, len(card)):
             ddval = double_string_or_blank(card, i, 'DDVAL%s' % n)
             if ddval:
                 ddvals.append(ddval)
         self.ddvals = expand_thru_by(ddvals)
         self.ddvals.sort()
     else:
         raise NotImplementedError(data)
Exemple #8
0
    def __init__(self, card, data=None, comment=''):
        ThermalLoad.__init__(self, card, data)
        if comment:
            self._comment = comment
        if card:
            #: Load set identification number. (Integer > 0)
            self.sid = integer(card, 1, 'sid')

            self.qvol = double(card, 2, 'qvol')
            self.control_point = integer_or_blank(card, 3, 'control_id', 0)

            i = 1
            eids = []
            for ifield in range(4, len(card)):
                eid = integer_or_string(card, ifield, 'eid_%i' % i)
                eids.append(eid)
                i += 1
            self.elements = expand_thru_by(eids)
Exemple #9
0
 def __init__(self, card=None, data=None, comment=''):
     if comment:
         self._comment = comment
     if card:
         #: Set identification number. (Unique Integer > 0)
         self.sid = integer(card, 1, 'sid')
         #: Number (float)
         n = card.nFields()
         i = 2
         eid_data = []
         while i < n:
             d = integer_string_or_blank(card, i, 'field_%s' % i)
             if d is not None:
                 eid_data.append(d)
             i += 1
         #: Element identification numbers of shell elements. (Integer > 0)
         self.eids = expand_thru_by(eid_data)
     else:
         msg = '%s has not implemented data parsing' % self.type
         raise NotImplementedError(msg)
Exemple #10
0
 def __init__(self, card=None, data=None, comment=''):
     if comment:
         self._comment = comment
     if card:
         #: Set identification number. (Unique Integer > 0)
         self.sid = integer(card, 1, 'sid')
         #: Number (float)
         nfields = card.nfields
         i = 2
         eid_data = []
         while i < nfields:
             d = integer_string_or_blank(card, i, 'field_%s' % i)
             if d is not None:
                 eid_data.append(d)
             i += 1
         #: Element identification numbers of shell elements. (Integer > 0)
         self.eids = expand_thru_by(eid_data)
     else:
         msg = '%s has not implemented data parsing' % self.type
         raise NotImplementedError(msg)
Exemple #11
0
    def __init__(self, card=None, data=None, comment=''):
        ThermalLoad.__init__(self, card, data)
        if comment:
            self._comment = comment
        if card:
            #: Load set identification number. (Integer > 0)
            self.sid = integer(card, 1, 'sid')
            #: Heat flux into element
            self.Q0 = double(card, 2, 'Q0')
            #: Control point for thermal flux load. (Integer > 0; Default = 0)
            self.cntrlnd = integer_or_blank(card, 3, 'cntrlnd', 0)

            nfields = card.nFields()
            eids = fields(integer_or_string, card, 'eid', i=4, j=nfields)
            #: CHBDYj element identification numbers
            self.eids = expand_thru_by(eids)
        else:
            self.sid = data[0]
            self.Q0 = data[1]
            self.cntrlnd = data[2]
            self.eids = list(data[3:])
Exemple #12
0
    def __init__(self, card=None, data=None, comment=''):
        ThermalLoad.__init__(self, card, data)
        if comment:
            self._comment = comment
        if card:
            #: Load set identification number. (Integer > 0)
            self.sid = integer(card, 1, 'sid')
            #: Heat flux into element
            self.Q0 = double(card, 2, 'Q0')
            #: Control point for thermal flux load. (Integer > 0; Default = 0)
            self.cntrlnd = integer_or_blank(card, 3, 'cntrlnd', 0)

            nfields = card.nFields()
            eids = fields(integer_or_string, card, 'eid', i=4, j=nfields)
            #: CHBDYj element identification numbers
            self.eids = expand_thru_by(eids)
        else:
            self.sid = data[0]
            self.Q0 = data[1]
            self.cntrlnd = data[2]
            self.eids = list(data[3:])
Exemple #13
0
    def __init__(self, card=None, data=None, comment=''):
        ThermalBC.__init__(self, card, data)
        if comment:
            self._comment = comment
        if card:
            #: NODAMB Ambient point for radiation exchange. (Integer > 0)
            self.nodamb = integer(card, 1, 'nodamb')
            assert self.nodamb > 0

            #: Radiation view factor between the face and the ambient point.
            #: (Real > 0.0)
            self.famb = double(card, 2, 'famb')
            assert self.famb > 0.0

            #: Control point for thermal flux load. (Integer > 0; Default = 0)
            self.cntrlnd = integer_or_blank(card, 3, 'cntrlnd', 0)
            assert self.cntrlnd >= 0

            nfields = card.nFields()
            eids = fields(integer_or_string, card, 'eid', i=4, j=nfields)
            #: CHBDYi element identification number
            self.eids = expand_thru_by(eids)
        else:
            raise NotImplementedError(data)
Exemple #14
0
 def __init__(self, card=None, data=None):
     self.oid = card.field(1)
     ddvals = [ddval for ddval in card.fields(2) if ddval is not None]
     self.ddvals = expand_thru_by(ddvals)
     self.ddvals.sort()
Exemple #15
0
 def __init__(self, card=None, data=None):
     self.oid = card.field(1)
     ddvals = [ddval for ddval in card.fields(2) if ddval is not None]
     self.ddvals = expand_thru_by(ddvals)
     self.ddvals.sort()