Esempio n. 1
0
    def __init__(self, eid, pid, rings, comment=''):
        """
        Creates a CCONEAX card

        Parameters
        ----------
        eid : int
            element id
        pid : int
            property id (PCONEAX)
        nids : List[int, int]
            node ids
        comment : str; default=''
            a comment for the card
        """
        Element.__init__(self)
        if comment:
            self.comment = comment
        self.eid = eid
        self.pid = pid
        #self.prepare_node_ids(nids)
        self.rings = rings
        assert len(self.rings) == 2
        self.rings_ref = None
        self.pid_ref = None
        self.rings_ref = None
Esempio n. 2
0
 def __init__(self,
              eid,
              pid,
              Type,
              ida,
              idb,
              gs,
              ga,
              gb,
              xs,
              ys,
              zs,
              comment=''):
     Element.__init__(self)
     if comment:
         self.comment = comment
     self.eid = eid
     self.pid = pid
     self.Type = Type
     self.ida = ida
     self.idb = idb
     self.gs = gs
     self.ga = ga
     self.gb = gb
     self.xs = xs
     self.ys = ys
     self.zs = zs
Esempio n. 3
0
 def __init__(self,
              eid,
              pid,
              Type,
              ida,
              idb,
              gs=None,
              ga=None,
              gb=None,
              xs=None,
              ys=None,
              zs=None,
              comment=''):
     Element.__init__(self)
     if comment:
         self.comment = comment
     if pid is None:
         pid = eid
     self.eid = eid
     self.pid = pid
     self.Type = Type
     self.ida = ida
     self.idb = idb
     self.gs = gs
     self.ga = ga
     self.gb = gb
     self.xs = xs
     self.ys = ys
     self.zs = zs
     self.pid_ref = None
     self.gs_ref = None
     self.ga_ref = None
     self.gb_ref = None
Esempio n. 4
0
 def __init__(self, eid, pid, nodes, comment=''):
     Element.__init__(self)
     if comment:
         self.comment = comment
     self.eid = eid
     self.pid = pid
     self.nodes = self.prepare_node_ids(nodes, allow_empty_nodes=True)
Esempio n. 5
0
 def __init__(self, eid, pid, ga, gb, x, g0, cid, comment=''):
     """
     # .. todo:: not done...
     """
     Element.__init__(self)
     if comment:
         self.comment = comment
     self.eid = eid
     self.pid = pid
     self.ga = ga
     self.gb = gb
     self.x = x
     self.g0 = g0
     self.cid = cid
Esempio n. 6
0
 def __init__(self, eid, pid, nodes, comment=''):
     """
     EID Element identification number. (0 < Integer < 100,000,000)
     PID Property identification number of a PACABS entry. (Integer > 0)
     Gi Grid point identification numbers of connection points. (Integer > 0 or blank)
     """
     Element.__init__(self)
     if comment:
         self.comment = comment
     self.eid = eid
     self.pid = pid
     self.nodes = self.prepare_node_ids(nodes, allow_empty_nodes=True)
     self.nodes_ref = None
     self.pid_ref = None
Esempio n. 7
0
 def __init__(self, eid, pid, ga, gb, x, g0, cid, comment=''):
     """
     # .. todo:: not done...
     """
     Element.__init__(self)
     if comment:
         self.comment = comment
     self.eid = eid
     self.pid = pid
     self.ga = ga
     self.gb = gb
     self.x = x
     self.g0 = g0
     self.cid = cid
Esempio n. 8
0
 def __init__(self, eid, pid, Type, ida, idb, gs, ga, gb, xs, ys, zs, comment=''):
     Element.__init__(self)
     if comment:
         self.comment = comment
     self.eid = eid
     self.pid = pid
     self.Type = Type
     self.ida = ida
     self.idb = idb
     self.gs = gs
     self.ga = ga
     self.gb = gb
     self.xs = xs
     self.ys = ys
     self.zs = zs
Esempio n. 9
0
 def __init__(self, eid, pid, nodes, comment=''):
     """
     n1 - point source
     n1-n2 - line source
     n1-n3 - tri face
     n1-n4 - quad face
     """
     Element.__init__(self)
     if comment:
         self.comment = comment
     self.eid = eid
     self.pid = pid
     self.nodes_ref = None
     self.pid_ref = None
     self.nodes = self.prepare_node_ids(nodes, allow_empty_nodes=True)
Esempio n. 10
0
    def __init__(self, eid, pid, nids, x, g0, cid=None, comment=''):
        """
        Creates a CGAP card

        Parameters
        ----------
        eid : int
            Element ID
        pid : int
            Property ID (PGAP)
        nids : List[int, int]
            node ids; connected grid points at ends A and B
        x : List[float, float, float]
            Components of the orientation vector,
            from GA, in the displacement coordinate system at GA
        g0 : int
            GO Alternate method to supply the orientation vector using
            grid point GO. Direction of is from GA to GO
        cid : int; default=None
            Element coordinate system identification number.
            CID must be specified if GA and GB are coincident
            (distance from GA to GB < 10^-4)
        comment : str; default=''
            a comment for the card

        """
        Element.__init__(self)
        if comment:
            self.comment = comment
        if pid is None:
            pid = eid
        self.eid = eid
        self.pid = pid
        self.ga = nids[0]
        self.gb = nids[1]
        self.x = x
        self.g0 = g0
        self.cid = cid
        self.ga_ref = None
        self.gb_ref = None
        self.g0_ref = None
        self.cid_ref = None
        self.pid_ref = None
Esempio n. 11
0
 def __init__(self):
     Element.__init__(self)
     self.nodes = [None, None]
Esempio n. 12
0
 def __init__(self):
     Element.__init__(self)
     self.nodes_ref = None  # type: Optional[List[Any]]
     self.pid_ref = None  # type: Optional[Any]
Esempio n. 13
0
 def __init__(self):
     Element.__init__(self)
     self.pid_ref = None  # type: Optional[Any]
Esempio n. 14
0
 def __init__(self):
     Element.__init__(self)
     self.nodes = [None, None]
 def __init__(self):
     Element.__init__(self)
Esempio n. 16
0
 def __init__(self):
     self.cid = None
     Element.__init__(self)
Esempio n. 17
0
 def __init__(self):
     Element.__init__(self)
     self.eid = 0
     self.nodes_ref = None
     self.pid_ref = None
Esempio n. 18
0
 def __init__(self):
     Element.__init__(self)
Esempio n. 19
0
 def __init__(self):
     self.cid = None
     Element.__init__(self)