Skip to main content

Una librería para análisis de combustión con Cantera.

Project description

SimCombustion

Una librería de Python para realizar análisis de combustión en un reactor de mezcla perfecta (Ideal Gas Reactor) utilizando Cantera.

El paquete incluye el mecanismo de reacción '91sp_991re.yaml', que contiene 91 especies y 991 reacciones.

Instalación

Puedes instalar simcombustion directamente desde PyPI:

pip install simcombustion


 - Combustible: NC10H22 para sustituto del queroseno, CH4... explorar en el archivo 91sp_991re.yaml
 - Condiciones iniciales: 
	+ rel_equivalencia-> es igual a 1/coeficiente de exceso de aire, 
	+ T_in_K -> Temperatura inicial de la mezcla en grados Kelvin, 
	+ P_in_atm -> Presión (constante) en la cámara de combustión en atmósferas,
	+ tiempo_residencia_s -> tiempo que permanece la mezcla reaccionando en el interior de la cámara de combustión (normalmente valores de milisegundos) en segundos.

==============================================================
Puedes listar todas las especies (y por tanto, combustibles potenciales) disponibles en el mecanismo con el siguiente método:
==============================================================
from simcombustion import CombustionAnalyzer
print(CombustionAnalyzer.list_available_fuels())

==============================================================
script de ejemplo
==============================================================
# Importa la clase desde tu nuevo paquete 'simcombustion'
from simcombustion import CombustionAnalyzer

try:
    # Crear la instancia
    analyzer = CombustionAnalyzer(fuel_name='NC10H22') #aproximacion al keroseno NC10H22, metano: CH4...

    # Calcular propiedades
    results = analyzer.calcular_propiedades(rel_equivalencia=0.98, T_in_K=479, P_in_atm=12,
                                            tiempo_residencia_s=0.025)

    print("\nResultados de la simulación:")
    # Imprime los resultados...
    print(results)

except ValueError as e:
    print(f"Error al usar la librería: {e}")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

simcombustion-0.2.0.tar.gz (34.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

simcombustion-0.2.0-py3-none-any.whl (34.1 kB view details)

Uploaded Python 3

File details

Details for the file simcombustion-0.2.0.tar.gz.

File metadata

  • Download URL: simcombustion-0.2.0.tar.gz
  • Upload date:
  • Size: 34.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for simcombustion-0.2.0.tar.gz
Algorithm Hash digest
SHA256 0c2cc4f7842847401df4b3cd06795caa7430d973d8217aab8216cf2a1baf3f65
MD5 19148545ea8cc50e5c011269bab94fff
BLAKE2b-256 dac52ece97fdeee6b17f07c73b7f0a1840effc7d0d7130da71bd37b2f2bf5a66

See more details on using hashes here.

File details

Details for the file simcombustion-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: simcombustion-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 34.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for simcombustion-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6a3ac894ca271a8efba799f649d7deaf445be805beeb111e7d045c61a55468ab
MD5 222aa18805a255a048d20749c0890f5a
BLAKE2b-256 79bdf1203aa5619793b6014569bd22f7f44a1b53e06277ff50e988f391a85266

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page