コード例 #1
0
    def __init__(self,
                 eid: int,
                 pid: int,
                 nids: List[int],
                 theta: float,
                 comment: str = '') -> None:
        """
        Creates a CTRIA3 card

        Parameters
        ----------
        eid : int
            element id
        pid : int
            property id (PSHELL/PCOMP/PCOMPG)
        nids : List[int, int, int]
            node ids
        comment : str; default=''
            a comment for the card

        """
        TriShell.__init__(self)
        if comment:
            self.comment = comment
        self.eid = eid
        self.pid = pid
        self.theta = theta
        assert len(nids) == 6, nids
        self.nodes = self.prepare_node_ids(nids)
        assert len(self.nodes) == 6
        self.theta_ref = None  # type: Optional[Any]
コード例 #2
0
 def __init__(self, eid, pid, nids, theta_mcid=0., comment=''):
     TriShell.__init__(self)
     if comment:
         self.comment = comment
     #: Element ID
     self.eid = eid
     #: Property ID of a PLPLANE or PAXSYMH entry
     self.pid = pid
     self.theta_mcid = theta_mcid
     self.nodes = nids
     assert len(nids) == 6, 'error on CTRIAX'
コード例 #3
0
 def __init__(self, eid, pid, nids, theta_mcid=0., comment=''):
     TriShell.__init__(self)
     if comment:
         self.comment = comment
     #: Element ID
     self.eid = eid
     #: Property ID of a PLPLANE or PAXSYMH entry
     self.pid = pid
     self.theta_mcid = theta_mcid
     self.nodes = nids
     assert len(nids) == 6, 'error on CTRIAX'
コード例 #4
0
 def __init__(self, eid, mid, nids, theta=0., comment=''):
     TriShell.__init__(self)
     if comment:
         self.comment = comment
     #: Element ID
     self.eid = eid
     #: Material ID
     self.mid = mid
     #: theta
     self.theta = theta
     self.prepare_node_ids(nids, allow_empty_nodes=True)
     assert len(nids) == 6, 'error on CTRIAX6'
コード例 #5
0
 def __init__(self, eid, mid, nids, theta=0., comment=''):
     TriShell.__init__(self)
     if comment:
         self.comment = comment
     #: Element ID
     self.eid = eid
     #: Material ID
     self.mid = mid
     #: theta
     self.theta = theta
     self.prepare_node_ids(nids, allow_empty_nodes=True)
     assert len(nids) == 6, 'error on CTRIAX6'