SimuladorBohr
SimuladorBohr es una librería en Python para realizar cálculos y visualización del modelo atómico de Bohr.
Incluye funciones para niveles de energía, radios orbitales, transiciones electrónicas y representaciones gráficas.
Autores
Daniel Felipe Ramirez – dfrc5528@gmail.com
Santiago Criollo Bermudez – santicriollo@hotmail.com
Alexei Duran – amidamarulas@gmail.com
Propósito
El objetivo de esta librería es proporcionar una herramienta educativa y de apoyo para el estudio del modelo atómico de Bohr.
Permite calcular energías en diferentes unidades, radios de órbitas electrónicas, características de transiciones y generar gráficas ilustrativas.
Instalación
Clonar el repositorio e instalar en modo editable:
git clone https://github.com/amidamarulas/SimuladorBohr.git
cd SimuladorBohr
pip install -e .
Instalación de libreria
pip install SimuladorBohr
Uso básico
Importar las funciones principales del paquete:
from SimuladorBohr.energy import energy_ev
from SimuladorBohr.radius import orbit_radius
from SimuladorBohr.transitions import wavelength
Ejemplos
Calculo de la energía de un nivel
from SimuladorBohr.energy import energy_ev
print("Energía n=1:", energy_ev(1), "eV")
Radio de la órbita
from SimuladorBohr.radius import orbit_radius print("Radio de la órbita n=2:", orbit_radius(2), "m")
from SimuladorBohr.radius import orbit_radius
print("Radio de la órbita n=2:", orbit_radius(2), "m")
Longitud de onda de una transición
from SimuladorBohr.transitions import wavelength
print("Transición 3 → 2:", wavelength(3,2)*1e9, "nm")
Ejemplo completo
from SimuladorBohr.energy import energy_ev
from SimuladorBohr.radius import orbit_radius
from SimuladorBohr.transitions import transition_energy_ev, wavelength, frequency
from SimuladorBohr.plotting import plot_energy_levels, plot_orbits
Z = 1 # Hidrógeno
for n in range(1,5):
print(f"n={n}: E = {energy_ev(n, Z):.3f} eV, r = {orbit_radius(n):.2e} m")
dE = transition_energy_ev(3,2,Z)
lam = wavelength(3,2,Z)
nu = frequency(3,2,Z)
print(f"ΔE = {dE:.3f} eV, λ = {lam*1e9:.2f} nm, ν = {nu:.2e} Hz")
plot_energy_levels(Z, max_n=6)
plot_orbits(Z, ns=[1,2,3])
Metadata
Release files for SimuladorBohr 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| simuladorbohr-0.1.0.tar.gz | 5.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| simuladorbohr-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.2 kB
Release files / simuladorbohr-0.1.0.tar.gz
| Download URL | simuladorbohr-0.1.0.tar.gz |
|---|---|
| Size | 5.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bba596809856c7836a30275c17cbaeeb8265c79e18d0531c67636f797480a2a8
|
|
BLAKE2b-256 checksum How to use checksums |
c7cd787efdfcf3dd8ddbb5287a25bf5c35030ffd075de41365228c5c509588f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Release files / simuladorbohr-0.1.0-py3-none-any.whl
| Download URL | simuladorbohr-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fbe34fa93f949442fb3350a3197799447c249b9ff645a1e5804ddeeef8e9f25b
|
|
BLAKE2b-256 checksum How to use checksums |
720b676a51b5b6175827192d76a2564e024e843440fb2106c35477544fb5e545
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|