pyHarm.Elements.NodeToNodeElements.GeneralOrderForcing ====================================================== .. py:module:: pyHarm.Elements.NodeToNodeElements.GeneralOrderForcing Classes ------- .. autoapisummary:: pyHarm.Elements.NodeToNodeElements.GeneralOrderForcing.GeneralOrderForcing Functions --------- .. autoapisummary:: pyHarm.Elements.NodeToNodeElements.GeneralOrderForcing.GOFResidual pyHarm.Elements.NodeToNodeElements.GeneralOrderForcing.GOFJacobian Module Contents --------------- .. py:function:: GOFResidual(x, om, loadvec, Pdir, Pslave, dto, nabo, amp) .. py:function:: GOFJacobian(x, om, loadvec, Pdir, Pslave, dto, nabo, amp) .. py:class:: GeneralOrderForcing(nh: int, nti: int, name: str, data: dict, CS: pyHarm.CoordinateSystem.CoordinateSystem) Bases: :py:obj:`pyHarm.Elements.NodeToNodeElements.NodeToNodeElement.NodeToNodeElement` This element is the general polynomial external forcing. A forcing is an element that cannot be applied in between substructures (only considers the first entry in "connect" keyword). .. attribute:: dto order of the time derivative. :type: int .. attribute:: ho order of the harmonic where the forcing is applied. :type: int .. attribute:: phi phase lag to apply between the cosine and sine term (0 = pure cosinus forcing). :type: float .. attribute:: amp amplitude of the forcing. :type: float .. py:attribute:: factory_keyword :type: str :value: 'GOForcing' keyword that is used to call the creation of this class in the system factory. :type: str .. py:method:: __post_init__() .. py:method:: __flag_update__() .. py:method:: _loadingdofs() .. py:method:: _evalResidual(x, om) .. py:method:: _evalJacobian(x, om) .. py:method:: adim(lc, wc) Modifies the element properties according to the characteristic length and angular frequency. .. attribute:: amp modified amplitude according to the characteristic parameters. :type: float .. attribute:: flag_adim True if equations are to be adimensionalized :type: bool .. py:method:: evalResidual(xg, om) Computes the residual. :param xg: full displacement vector. :type xg: np.ndarray :param om: angular frequency value. :type om: float :returns: residual vector. :rtype: np.ndarray .. py:method:: evalJacobian(xg, om) Computes the jacobians. :param xg: full displacement vector. :type xg: np.ndarray :param om: angular frequency value. :type om: float :returns: Jacobian with respect to displacement. np.ndarray: Jacobian with respect to angular frequency. :rtype: np.ndarray