+
    
þÎj  ã            
       ó¨   € ^ RI Ht ^ RIHt ^ RIHt ^ RIHtHtH	t	 . ROt
 ! R R]]! RR	R
.4      4      t ! R R]4      t ! R R]4      tR tR tR# )é    )ÚABC)Ú
namedtuple)ÚBodyBase)ÚVectorÚReferenceFrameÚPointÚLoadBaseÚForceÚTorquec                   ó8   a € ] tR t^	t o RtR tR t]t]tRt	V t
R# )r	   z2Abstract base class for the various loading types.c                óv   € \        R V P                  P                   RVP                  P                   R24      h)z$unsupported operand type(s) for +: 'ú' and 'Ú'©Ú	TypeErrorÚ	__class__Ú__name__©ÚselfÚothers   &&ÚS/opt/data/home/.local/lib/python3.14/site-packages/sympy/physics/mechanics/loads.pyÚ__add__ÚLoadBase.__add__   ó@   € Üð Ø ŸN™N×3Ñ3Ð4ð 5Ø!ŸO™O×4Ñ4Ð5°Qð8ó 9ð 	9ó    c                óv   € \        R V P                  P                   RVP                  P                   R24      h)z$unsupported operand type(s) for *: 'r   r   r   r   s   &&r   Ú__mul__ÚLoadBase.__mul__   r   r   © N)r   Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   r   Ú__radd__Ú__rmul__Ú__static_attributes__Ú__classdictcell__)Ú__classdict__s   @r   r	   r	   	   s   ø‡ € Ù<ò9ò
9ð
 €HØ†Hr   ÚlocationÚvectorc                   ó\   a a€ ] tR t^t oRtV 3R ltR t]R 4       t]R 4       t	Rt
VtV ;t# )r
   a×  Force acting upon a point.

Explanation
===========

A force is a vector that is bound to a line of action. This class stores
both a point, which lies on the line of action, and the vector. A tuple can
also be used, with the location as the first entry and the vector as second
entry.

Examples
========

A force of magnitude 2 along N.x acting on a point Po can be created as
follows:

>>> from sympy.physics.mechanics import Point, ReferenceFrame, Force
>>> N = ReferenceFrame('N')
>>> Po = Point('Po')
>>> Force(Po, 2 * N.x)
(Po, 2*N.x)

If a body is supplied, then the center of mass of that body is used.

>>> from sympy.physics.mechanics import Particle
>>> P = Particle('P', point=Po)
>>> Force(P, 2 * N.x)
(Po, 2*N.x)

c                óì   <€ \        V\        4      '       d   VP                  p\        V\        4      '       g   \	        R 4      h\        V\
        4      '       g   \	        R4      h\        SV `  WV4      # )z!Force location should be a Point.z Force vector should be a Vector.)Ú
isinstancer   Ú
masscenterr   r   r   ÚsuperÚ__new__)ÚclsÚpointÚforcer   s   &&&€r   r0   ÚForce.__new__:   s^   ø€ Ü�eœX×&Ò&Ø×$Ñ$ˆEÜ˜%¤×'Ò'ÜÐ?Ó@Ð@Ü˜%¤×(Ò(ÜÐ>Ó?Ð?Ü‰w‰˜s¨5Ó1Ð1r   c                óh   € V P                   P                   R V P                   RV P                   R2# )z(point=z, force=Ú))r   r   r2   r3   ©r   s   &r   Ú__repr__ÚForce.__repr__C   s6   € Ø—>‘>×*Ñ*Ð+¨7°4·:±:°,ð ?ØŸ™˜ Að'ð 	(r   c                ó   € V P                   # ©N©r)   r7   s   &r   r2   ÚForce.pointG   ó   € à�}‰}Ðr   c                ó   € V P                   # r;   ©r*   r7   s   &r   r3   ÚForce.forceK   ó   € à�{‰{Ðr   r   )r   r    r!   r"   r#   r0   r8   Úpropertyr2   r3   r&   r'   Ú__classcell__©r   r(   s   @@r   r
   r
      sA   ù‡ € ñõ>2ò(ð ñó ðð ñó ÷ð r   c                   ó\   a a€ ] tR t^Pt oRtV 3R ltR t]R 4       t]R 4       t	Rt
VtV ;t# )r   aÉ  Torque acting upon a frame.

Explanation
===========

A torque is a free vector that is acting on a reference frame, which is
associated with a rigid body. This class stores both the frame and the
vector. A tuple can also be used, with the location as the first item and
the vector as second item.

Examples
========

A torque of magnitude 2 about N.x acting on a frame N can be created as
follows:

>>> from sympy.physics.mechanics import ReferenceFrame, Torque
>>> N = ReferenceFrame('N')
>>> Torque(N, 2 * N.x)
(N, 2*N.x)

If a body is supplied, then the frame fixed to that body is used.

>>> from sympy.physics.mechanics import RigidBody
>>> rb = RigidBody('rb', frame=N)
>>> Torque(rb, 2 * N.x)
(N, 2*N.x)

c                óì   <€ \        V\        4      '       d   VP                  p\        V\        4      '       g   \	        R 4      h\        V\
        4      '       g   \	        R4      h\        SV `  WV4      # )z+Torque location should be a ReferenceFrame.z!Torque vector should be a Vector.)r-   r   Úframer   r   r   r/   r0   )r1   rH   Útorquer   s   &&&€r   r0   ÚTorque.__new__o   s\   ø€ Ü�eœX×&Ò&Ø—K‘KˆEÜ˜%¤×0Ò0ÜÐIÓJÐJÜ˜&¤&×)Ò)ÜÐ?Ó@Ð@Ü‰w‰˜s¨6Ó2Ð2r   c                óh   € V P                   P                   R V P                   RV P                   R2# )z(frame=z	, torque=r6   )r   r   rH   rI   r7   s   &r   r8   ÚTorque.__repr__x   s6   € Ø—>‘>×*Ñ*Ð+¨7°4·:±:°,ð ?ØŸ+™+˜ að)ð 	*r   c                ó   € V P                   # r;   r<   r7   s   &r   rH   ÚTorque.frame|   r>   r   c                ó   € V P                   # r;   r@   r7   s   &r   rI   ÚTorque.torque€   rB   r   r   )r   r    r!   r"   r#   r0   r8   rC   rH   rI   r&   r'   rD   rE   s   @@r   r   r   P   sA   ù‡ € ñõ<3ò*ð ñó ðð ñó ÷ð r   c                óâ   € . pV Ff  p\        V\        4      '       g   \        \        V4       R24      hVP	                  \        VP                  VP                  V ,          4      4       Kh  	  V# )aÜ  
Returns a list of gravity forces given the acceleration
due to gravity and any number of particles or rigidbodies.

Example
=======

>>> from sympy.physics.mechanics import ReferenceFrame, Particle, RigidBody
>>> from sympy.physics.mechanics.loads import gravity
>>> from sympy import symbols
>>> N = ReferenceFrame('N')
>>> g = symbols('g')
>>> P = Particle('P')
>>> B = RigidBody('B')
>>> gravity(g*N.y, P, B)
[(P_masscenter, P_mass*g*N.y),
 (B_masscenter, B_mass*g*N.y)]

z is not a body type)r-   r   r   ÚtypeÚappendr
   r.   Úmass)ÚaccelerationÚbodiesÚgravity_forceÚbodys   &*  r   ÚgravityrY   …   sa   € ð* €MÛˆÜ˜$¤×)Ò)Üœt D›z˜lÐ*=Ð>Ó?Ð?Ø×ÑœU 4§?¡?°D·I±IÀÕ4LÓMÖNñ ð Ðr   c                óÔ  € \        V \        4      '       d   V # \        V \        4      '       d¤   \        V 4      ^8w  d   \	        RV  R24      h\        V ^ ,          \
        4      '       d   \        V ^ ,          V ^,          4      # \        V ^ ,          \        4      '       d   \        V ^ ,          V ^,          4      # \	        RV ^ ,           R24      h\        R\        V 4       R24      h)zBHelper function to parse loads and convert tuples to load objects.zLoad z should have a length of 2.z'Load not recognized. The load location z. should either be a Point or a ReferenceFrame.z
Load type zA not recognized as a load. It should be a Force, Torque or tuple.)r-   r	   ÚtupleÚlenÚ
ValueErrorr   r
   r   r   r   rR   )Úloads   &r   Ú_parse_loadr_   ¢   sÑ   € ä�$œ×!Ò!ØˆÜ	�Dœ%×	 Ò	 Üˆt‹9˜Œ>Ü˜u T FÐ*EÐFÓGÐGÜ�d˜1•gœu×%Ò%Ü˜˜a� $ q¥'Ó*Ð*Ü˜˜Q�¤×0Ò0Ü˜$˜q�' 4¨¥7Ó+Ð+äÐFÀtÈAÅwÀiØMðOó Pð Pä
�j¤ d£ ð -:ð ;ó <ð <r   N)r	   r
   r   )Úabcr   Úcollectionsr   Ú!sympy.physics.mechanics.body_baser   Úsympy.physics.vectorr   r   r   Ú__all__r	   r
   r   rY   r_   r   r   r   Ú<module>re      sW   ðÝ Ý "Ý 6ß >Ñ >â
)€ôˆs‘J˜z¨J¸Ð+AÓBô ô"3ˆHô 3ôl2ˆXô 2òjô:<r   