Librería en Python para cálculos y visualización del modelo atómico de Bohr para el átomo de hidrogéno e hidrogenoides.
Project description
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])
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file simuladorbohr-0.1.0.tar.gz.
File metadata
- Download URL: simuladorbohr-0.1.0.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bba596809856c7836a30275c17cbaeeb8265c79e18d0531c67636f797480a2a8
|
|
| MD5 |
5c6a501b41bf956975bdc6b5476cc274
|
|
| BLAKE2b-256 |
c7cd787efdfcf3dd8ddbb5287a25bf5c35030ffd075de41365228c5c509588f6
|
File details
Details for the file simuladorbohr-0.1.0-py3-none-any.whl.
File metadata
- Download URL: simuladorbohr-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fbe34fa93f949442fb3350a3197799447c249b9ff645a1e5804ddeeef8e9f25b
|
|
| MD5 |
1914787f4bda582f8f15104295703bc8
|
|
| BLAKE2b-256 |
720b676a51b5b6175827192d76a2564e024e843440fb2106c35477544fb5e545
|