Skip to main content

fing_fac

Librería desarrollada para el curso Física con Apoyo Computacional (FAC) de la Facultad de Ingeniería (Universidad de la República), por Mateo Dutra.

Descripción

Esta librería permite visualizar de forma interactiva el movimiento de uno o dos objetos a partir de listas de tiempo, posición, velocidad y aceleración.

Incluye:

  • simulaciones del movimiento en una dimensión;
  • representación gráfica de las magnitudes cinemáticas;
  • animaciones del movimiento de dos partículas en el plano.

Funciones disponibles

  • simular_pos(t, x)
    Simula el movimiento de una partícula a partir de su posición.

  • simular_vel_y_pos(t, v, x)
    Simula el movimiento mostrando simultáneamente la velocidad y la posición.

  • simular_a_vel_y_pos(t, a, v, x)
    Simula el movimiento mostrando aceleración, velocidad y posición.

  • animar_particulas(t, x1, y1, x2, y2)
    Realiza una animación del movimiento de dos partículas en el plano a partir de las listas de tiempo y de sus coordenadas.

Ejemplo de uso

from fing_fac import simular_a_vel_y_pos

t_i = 0       # Tiempo inicial
t_f = 10      # Tiempo final
dt = 0.15     # Paso de tiempo
x_i = -90     # Posición inicial
v_i = 40      # Velocidad inicial
a_i = -8      # Aceleración

t = [t_i]     # Lista de tiempos
v = [v_i]     # Lista de velocidades
x = [x_i]     # Lista de posiciones
a = [a_i]     # Lista de aceleraciones

while t[-1] < t_f:
    t.append(t[-1] + dt)
    a.append(a[-1])
    v.append(v[-1] + a[-1]*dt)
    x.append(x[-1] + v[-2]*dt)

simular_a_vel_y_pos(t, a, v, x)

Animación de dos partículas

from fing_fac import animar_particulas

t = [0, 1, 2, 3, 4]

x1 = [0, 1, 2, 3, 4]
y1 = [0, 1, 2, 3, 4]

x2 = [4, 4, 4, 4, 4]
y2 = [4, 3, 2, 1, 0]

animar_particulas(t, x1, y1, x2, y2)

Release files for fing-fac 1.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fing-fac 1.0.4
File Size Uploaded
fing_fac-1.0.4.tar.gz 378.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fing-fac 1.0.4
File Interpreter ABI Platform
fing_fac-1.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 755.7 kB

Release files / fing_fac-1.0.4.tar.gz

Download URL fing_fac-1.0.4.tar.gz
Size 378.9 kB
Tags Source
SHA-256 checksum
How to use checksums
5f63ad9c85d398f69c899ebb096fd7b5a85a59f7dc0ce60e594b030787b09852
BLAKE2b-256 checksum
How to use checksums
374486ac18c89b903dc71ed211e38a38452f4fba13d43780b838c3e86047f11f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.11

Release files / fing_fac-1.0.4-py3-none-any.whl

Download URL fing_fac-1.0.4-py3-none-any.whl
Size 376.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7c7dba8ad0883af5faac5555be1d59b1dc571933945e6bacad25516000267e52
BLAKE2b-256 checksum
How to use checksums
3eb2db478825e5672c194881f7684e8b11bee664de77dffc9cb151b90209b0c4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.11

Release history Release notifications | RSS feed

This release

1.0.4 This release

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page