campo-estatico-mdf
Solver 2D de Laplace por diferencias finitas (Jacobi/Gauss-Seidel) y cálculo del campo eléctrico.
Incluye GUI en Streamlit (multipágina) y documentación Sphinx publicada en GitHub Pages.:contentReference[oaicite:0]{index=0}
Ejecutar GUI (Streamlit)
# activar entorno
source .venv/Scripts/activate # Windows (Git Bash)
# pip install dependencias
pip install -r requirements.txt
# instalar paquete backend en editable
pip install -e .
# correr la app
streamlit run app_streamlit/streamlit_app.py
Páginas
- Simulación: define N, ε (tolerancia), max_iter, método, y contornos. Muestra
V,Ey métricas. - Documentación: enlaza/embebe Sphinx (se publicará en Fase 4). Puedes exportar
DOCS_URLpara mostrarla en la app.
Si ves problemas con el render de quiver en mallas muy grandes, reduce N o sube el
stepde submuestreo.
Instalación y Uso del Paquete campo-estatico-mdf
Instalación desde PyPI
Asegúrate de tener Python 3.9 o superior.
pip install campo-estatico-mdf
Si prefieres probar una versión de desarrollo local:
pip install -e .
Verificación de instalación
Para comprobar que el paquete se instaló correctamente:
python -m pip show campo-estatico-mdf
También puedes verificar desde un intérprete de Python:
from campo_estatico_mdf import LaplaceSolver2D
print(LaplaceSolver2D)
Si no hay errores de importación, la instalación es correcta.
Uso rápido
Ejemplo básico para resolver el potencial electrostático 2D por diferencias finitas:
from campo_estatico_mdf import LaplaceSolver2D
# Definir el mallado y condiciones de contorno
N = 51
bc = {"left": 1.0, "right": 0.0, "top": 0.0, "bottom": 1.0}
solver = LaplaceSolver2D(
N=N,
bc=bc,
epsilon=1e-5,
max_iter=20000,
method="jacobi", # o "gauss_seidel"
)
V, n_iter, err = solver.solve()
Ex, Ey = solver.compute_e_field(V)
print(f"Iteraciones: {n_iter}, Error final: {err:.3e}")
print("Forma de la matriz de potencial:", V.shape)
Dependencias
El paquete requiere NumPy (≥1.22). Si no se instaló automáticamente, puedes hacerlo con:
pip install numpy>=1.22
Más información
- Documentación oficial: https://SanCriolloB.github.io/campo-estatico-mdf/
- Repositorio: https://github.com/SanCriolloB/campo-estatico-mdf
Autores: Santiago Criollo & Daniel Ramirez
Licencia: MIT
Versión: v1.0.2
Metadata
Release files for campo-estatico-mdf 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| campo_estatico_mdf-1.0.2.tar.gz | 15.0 kB | Without provenance | Details for campo_estatico_mdf-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| campo_estatico_mdf-1.0.2-py3-none-any.whl | Python 3 | none | any | Details for campo_estatico_mdf-1.0.2-py3-none-any.whl |
Total release size: 21.8 kB
Release files / campo_estatico_mdf-1.0.2.tar.gz
| Download URL | campo_estatico_mdf-1.0.2.tar.gz |
|---|---|
| Size | 15.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5417c638b11c2ad166d083356ce9f82587a06dba018b9f5e584bbf19dbabb01b
|
|
BLAKE2b-256 checksum How to use checksums |
cba1a82e9ad363a64129d8beb92e08412642df579127c0bdaaaaee0bee2c99ab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Release files / campo_estatico_mdf-1.0.2-py3-none-any.whl
| Download URL | campo_estatico_mdf-1.0.2-py3-none-any.whl |
|---|---|
| Size | 6.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cdcd78ffa7652a3fea6e414d8b13126c8a22a4a087c4738e39f43e580a6f8723
|
|
BLAKE2b-256 checksum How to use checksums |
662ff33d4cf3b0b7978a8efcd6859142daa19be93a0a0e40828aeb1564fb59f2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Security for campo-estatico-mdf 1.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.