Skip to main content

SorbFlow

SorbFlow es una herramienta en Python para modelar, simular, calibrar y diseñar procesos de adsorción en fase acuosa, en reactores batch y en columnas de lecho fijo.

pip install sorbflow                 # núcleo
pip install "sorbflow[optimize]"     # + optimización multiobjetivo NSGA-II
pip install "sorbflow[parquet]"      # + exportación Parquet

Qué hace

  • Equilibrio: isotermas lineal, Langmuir y Freundlich, con derivadas analíticas.
  • Cinética y transporte: fuerza impulsora lineal (LDF) y difusión superficial homogénea (HSDM) con resistencia de película, dispersión axial y condiciones de frontera de Danckwerts.
  • Motores numéricos: volúmenes finitos conservativos en el eje del lecho y en el radio de la partícula, integradores rígidos BDF/Radau, Jacobiano analítico disperso y modo streaming de baja memoria.
  • Calibración e incertidumbre: ajuste de isotermas y constantes cinéticas, diagnósticos SVD, perfiles de verosimilitud, objetivos multiensayo, Monte Carlo con semilla y sensibilidad local.
  • Diseño: EBCT, pérdida de carga de Ergun, potencia de bombeo, costo de operación, envolvente DXF y optimización multiobjetivo con restricciones.
  • Trazabilidad: cada resultado guarda configuración, unidades, versiones, revisión del código, balance de masa y huellas SHA-256.
  • Tres formas de uso sobre el mismo motor: API Python, comando sorbflow e interfaz web local (python -m sorbflow.web).

Cualquier soluto, adsorbente o mezcla de N componentes se describe como datos de configuración, con unidades SI explícitas.

Uso rápido

sorbflow column column_ldf.json --output resultados --cells 100
from pathlib import Path
from sorbflow import SimulationConfig
from sorbflow.simulate import column
from sorbflow.solvers import SolverOptions

config = SimulationConfig.from_json(Path("column_ldf.json").read_text())
result = column(config, options=SolverOptions(axial_cells=200, jacobian="analytic"))
print(result.outlet_concentration_kg_m3[-1])

Las configuraciones de ejemplo (batch_ldf.json, column_ldf.json, column_hsdm.json) están en la carpeta examples/ del repositorio.

Modelo de columna (resumen)

ε ∂c/∂t + ρ_b ∂q̄/∂t = −∂J/∂z,     J = u c − ε D_ax ∂c/∂z
LDF:   ∂q̄/∂t = k_LDF [q*(c) − q̄]
HSDM:  ∂q/∂t = D_s r⁻² ∂/∂r (r² ∂q/∂r),   ρ_p D_s ∂q/∂r|_R = k_f (c − c_s)

Calidad

588 pruebas automatizadas; integración continua en Windows y Linux con Python 3.11, 3.12 y 3.13; verificación frente a soluciones de referencia; documentación construida en modo estricto.

Documentación, cita y licencia

  • Documentación: https://sorbflow.readthedocs.io
  • Autores: Karel Aldrin Sanchez Hernandez, David Esteban Rodriguez Saiz, Dayana Ximena Cabrera Obando y Gabriela Johana Romo Cadena.
  • Cita: archivo CITATION.cff del repositorio.
  • Licencia: Apache-2.0.

Metadata

Release files for sorbflow 0.3.0

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

Source distribution (sdist)

Source distribution for sorbflow 0.3.0
File Size Uploaded Provenance Actions
sorbflow-0.3.0.tar.gz 510.0 kB With provenance Details for sorbflow-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sorbflow 0.3.0
File Interpreter ABI Platform Actions
sorbflow-0.3.0-py3-none-any.whl Python 3 none any Details for sorbflow-0.3.0-py3-none-any.whl

Total release size: 590.4 kB

Release files / sorbflow-0.3.0.tar.gz

Download URL sorbflow-0.3.0.tar.gz
Size 510.0 kB
Tags Source
SHA-256 checksum
How to use checksums
51e1b2356c0e49d4ff23acc3e5dab86dacaccf9af9bcc4f8f2d825e56ccb53f9
BLAKE2b-256 checksum
How to use checksums
2cc98f61c73945d1a1297e303d6c77e11b5a6a2bbbe8d307be3696f889685907
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.

Transparency log

Release files / sorbflow-0.3.0-py3-none-any.whl

Download URL sorbflow-0.3.0-py3-none-any.whl
Size 80.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2bb8e8a92d6ab317ffc7009790509b2ee920c89d8508b12d515d265a73ea2eee
BLAKE2b-256 checksum
How to use checksums
a0b1c5ed414b57d41e74a1d0b5a148bba4ddcbc6a7aac24e7d3c893a8110c319
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.

Transparency log

Security for sorbflow 0.3.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for sorbflow-0.3.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files Full provenance

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