+
    
þÎja  ã                   ób   € ^ RI Ht ^ RIHtHt ^ RIHt ^ RIHt ^ RI	H
t
 R.t ! R R]4      tR# )	é    )ÚS)ÚcrossÚdot)ÚBodyBase)Úinertia_of_point_mass)Úsympy_deprecation_warningÚParticlec                   óp   a a€ ] tR t^
t oRt]P                  tR	V 3R lltR t	R t
R tR tR tRtVtV ;t# )
r	   a  A particle.

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

Particles have a non-zero mass and lack spatial extension; they take up no
space.

Values need to be supplied on initialization, but can be changed later.

Parameters
==========

name : str
    Name of particle
point : Point
    A physics/mechanics Point which represents the position, velocity, and
    acceleration of this Particle
mass : Sympifyable
    A SymPy expression representing the Particle's mass
potential_energy : Sympifyable
    The potential energy of the Particle.

Examples
========

>>> from sympy.physics.mechanics import Particle, Point
>>> from sympy import Symbol
>>> po = Point('po')
>>> m = Symbol('m')
>>> pa = Particle('pa', po, m)
>>> # Or you could change these later
>>> pa.mass = m
>>> pa.point = po

c                ó(   <€ \         SV `  WV4       R # )N)ÚsuperÚ__init__)ÚselfÚnameÚpointÚmassÚ	__class__s   &&&&€ÚV/opt/data/home/.local/lib/python3.14/site-packages/sympy/physics/mechanics/particle.pyr   ÚParticle.__init__1   s   ø€ Ü‰Ñ˜ dÖ+ó    c                óZ   € V P                   V P                  P                  V4      ,          # )aç  Linear momentum of the particle.

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

The linear momentum L, of a particle P, with respect to frame N is
given by:

L = m * v

where m is the mass of the particle, and v is the velocity of the
particle in the frame N.

Parameters
==========

frame : ReferenceFrame
    The frame in which linear momentum is desired.

Examples
========

>>> from sympy.physics.mechanics import Particle, Point, ReferenceFrame
>>> from sympy.physics.mechanics import dynamicsymbols
>>> from sympy.physics.vector import init_vprinting
>>> init_vprinting(pretty_print=False)
>>> m, v = dynamicsymbols('m v')
>>> N = ReferenceFrame('N')
>>> P = Point('P')
>>> A = Particle('A', P, m)
>>> P.set_vel(N, v * N.x)
>>> A.linear_momentum(N)
m*v*N.x

)r   r   Úvel©r   Úframes   &&r   Úlinear_momentumÚParticle.linear_momentum4   s!   € ðJ �y‰y˜4Ÿ:™:Ÿ>™>¨%Ó0Õ0Ð0r   c                ó    € \        V P                  P                  V4      V P                  V P                  P	                  V4      ,          4      # )aÐ  Angular momentum of the particle about the point.

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

The angular momentum H, about some point O of a particle, P, is given
by:

``H = cross(r, m * v)``

where r is the position vector from point O to the particle P, m is
the mass of the particle, and v is the velocity of the particle in
the inertial frame, N.

Parameters
==========

point : Point
    The point about which angular momentum of the particle is desired.

frame : ReferenceFrame
    The frame in which angular momentum is desired.

Examples
========

>>> from sympy.physics.mechanics import Particle, Point, ReferenceFrame
>>> from sympy.physics.mechanics import dynamicsymbols
>>> from sympy.physics.vector import init_vprinting
>>> init_vprinting(pretty_print=False)
>>> m, v, r = dynamicsymbols('m v r')
>>> N = ReferenceFrame('N')
>>> O = Point('O')
>>> A = O.locatenew('A', r * N.x)
>>> P = Particle('P', A, m)
>>> P.point.set_vel(N, v * N.y)
>>> P.angular_momentum(O, N)
m*r*v*N.z

)r   r   Úpos_fromr   r   ©r   r   r   s   &&&r   Úangular_momentumÚParticle.angular_momentum[   s<   € ôT �T—Z‘Z×(Ñ(¨Ó/Ø—Y‘Y §¡§¡°Ó!6Õ6ó8ð 	8r   c                óÊ   € \         P                  V P                  ,          \        V P                  P                  V4      V P                  P                  V4      4      ,          # )aî  Kinetic energy of the particle.

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

The kinetic energy, T, of a particle, P, is given by:

``T = 1/2 (dot(m * v, v))``

where m is the mass of particle P, and v is the velocity of the
particle in the supplied ReferenceFrame.

Parameters
==========

frame : ReferenceFrame
    The Particle's velocity is typically defined with respect to
    an inertial frame but any relevant frame in which the velocity is
    known can be supplied.

Examples
========

>>> from sympy.physics.mechanics import Particle, Point, ReferenceFrame
>>> from sympy import symbols
>>> m, v, r = symbols('m v r')
>>> N = ReferenceFrame('N')
>>> O = Point('O')
>>> P = Particle('P', O, m)
>>> P.point.set_vel(N, v * N.y)
>>> P.kinetic_energy(N)
m*v**2/2

)r   ÚHalfr   r   r   r   r   s   &&r   Úkinetic_energyÚParticle.kinetic_energyˆ   sE   € ôH �v‰v˜Ÿ	™	Õ!¤C¨¯
©
¯©°uÓ(=Ø(,¯
©
¯©°uÓ(=ó%?õ ?ð 	?r   c                ó.   € \        R RRR7       Wn        R# )zŒ
The sympy.physics.mechanics.Particle.set_potential_energy()
method is deprecated. Instead use

    P.potential_energy = scalar
            z1.5zdeprecated-set-potential-energy)Údeprecated_since_versionÚactive_deprecations_targetN)r   Úpotential_energy)r   Úscalars   &&r   Úset_potential_energyÚParticle.set_potential_energy¯   s   € Ü!ðð "'Ø#Dõ		
ð !'Ör   c                ób   € \        V P                  V P                  P                  V4      V4      # )aµ  Returns an inertia dyadic of the particle with respect to another
point and frame.

Parameters
==========

point : sympy.physics.vector.Point
    The point to express the inertia dyadic about.
frame : sympy.physics.vector.ReferenceFrame
    The reference frame used to construct the dyadic.

Returns
=======

inertia : sympy.physics.vector.Dyadic
    The inertia dyadic of the particle expressed about the provided
    point and frame.

)r   r   r   r   r   s   &&&r   Úparallel_axisÚParticle.parallel_axis¼   s+   € ô( % T§Y¡Y°·
±
×0CÑ0CÀEÓ0JØ%*ó,ð 	,r   )r(   )NN)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   Ú
masscenterr   r   r   r   r#   r*   r-   Ú__static_attributes__Ú__classdictcell__Ú__classcell__)r   Ú__classdict__s   @@r   r	   r	   
   s>   ù‡ € ñ#ðH ×Ñ€E÷,ò%1òN+8òZ%?òN'÷,ò ,r   N)Úsympyr   Úsympy.physics.vectorr   r   Ú!sympy.physics.mechanics.body_baser   Úsympy.physics.mechanics.inertiar   Úsympy.utilities.exceptionsr   Ú__all__r	   © r   r   Ú<module>r@      s)   ðÝ ß +Ý 6Ý AÝ @àˆ,€ôG,ˆxö G,r   