Ejemplo n.º 1
0
    def cross_reference(self, model: BDF) -> None:
        """
        Cross links the card so referenced cards can be extracted directly

        Parameters
        ----------
        model : BDF()
            the BDF object

        """
        msg = ', which is required by CSSCHD sid=%s' % self.sid
        self.aesid_ref = model.AESurf(self.aesid, msg=msg)
        self.lalpha_ref = model.AEFact(self.lalpha, msg=msg)
        self.lmach_ref = model.AEFact(self.lmach, msg=msg)
        self.lschd_ref = model.AEFact(self.lschd, msg=msg)
Ejemplo n.º 2
0
    def safe_cross_reference(self, model: BDF, xref_errors):
        msg = ', which is required by CSSCHD sid=%s' % self.sid
        try:
            self.aesid_ref = model.AESurf(self.aesid, msg=msg)
        except KeyError:
            pass

        self.lalpha_ref = model.safe_aefact(self.lalpha,
                                            self.sid,
                                            xref_errors,
                                            msg=msg)
        self.lmach_ref = model.safe_aefact(self.lmach,
                                           self.sid,
                                           xref_errors,
                                           msg=msg)
        self.lschd_ref = model.safe_aefact(self.lschd,
                                           self.sid,
                                           xref_errors,
                                           msg=msg)