def __init__(self, eid, pid, nids, theta=0., comment=''):
     QuadShell.__init__(self)
     if comment:
         self.comment = comment
     #: Element ID
     self.eid = eid
     #: Property ID
     self.pid = pid
     self.theta = theta
     self.prepare_node_ids(nids, allow_empty_nodes=True)
     assert len(self.nodes) == 8
Esempio n. 2
0
 def __init__(self, eid, pid, nids, theta=0., comment=''):
     QuadShell.__init__(self)
     if comment:
         self.comment = comment
     #: Element ID
     self.eid = eid
     #: Property ID
     self.pid = pid
     self.theta = theta
     self.prepare_node_ids(nids, allow_empty_nodes=True)
     assert len(self.nodes) == 4
Esempio n. 3
0
    def __init__(self, eid, pid, nids, theta=0.0, comment=''):
        """
        Creates a CQUAD1 card

        Parameters
        ----------
        eid : int
            element id
        pid : int
            property id (PSHELL/PCOMP/PCOMPG)
        nids : List[int, int, int, int]
            node ids
        zoffset : float; default=0.0
            Offset from the surface of grid points to the element reference
            plane.  Requires MID1 and MID2.
        theta_mcid : float; default=0.0
            float : material coordinate system angle (theta) is defined
                    relative to the element coordinate system
            int : x-axis from material coordinate system angle defined by
                  mcid is projected onto the element
        tflag : int; default=0
            0 : Ti are actual user specified thicknesses
            1 : Ti are fractions relative to the T value of the PSHELL
        T1 / T2 / T3 / T4 : float; default=None
            If it is not supplied, then T1 through T4 will be set equal
            to the value of T on the PSHELL entry.
        comment : str; default=''
            a comment for the card

        """
        QuadShell.__init__(self)
        if comment:
            self.comment = comment
        #: Element ID
        self.eid = eid
        #: Property ID
        self.pid = pid
        assert len(nids) == 4, nids
        self.nodes = self.prepare_node_ids(nids)
        self.theta = theta
        self.theta_ref = None  # type: Optional[Any]