Repository navigation
Releases
v0.4.0: case files, matched comparison, pre-chamber analysis, measurement uncertainty
From exported data to a comparison report, and the analyses needed to compare an open-chamber and a pre-chamber engine.
Important
All new models are verified against closed-form results and manufactured solutions (see Verification). The library has still not been validated against engine or CFD measurements, and the ANSYS Forte readers have not yet been exercised on real exports. Status: alpha.
Highlights
- Case files and command line. One
case.tomlper case (geometry, operating point, fuel, trace file and column mapping, uncertainties) and thecombustacommand:inspectlists the columns of an export,comparewrites a Markdown report with the SHA-256 of every input, a metrics CSV, and an overlay figure. Generic reader for test-bench crank-angle tables. Format reference: docs/case-file.md. - Comparison at matched conditions.
combusta matched --ca50 DEG | --mbtcompares spark-timing sweeps at a common CA50 (monotone cubic interpolation, no extrapolation) or each configuration at its own MBT timing (quadratic fit of gross IMEP with the uncertainty of the vertex). - Two-volume pre-chamber analysis.
combusta prechamber: isentropic orifice flow with choking, open-system heat release of pre-chamber and main chamber, jet start and end, jet mass, heat-release split, and an effective discharge coefficient fitted to exported mass exchange. - Pressure-measurement uncertainty.
combusta measurement: TDC phasing, pegging offset, transducer gain, and noise propagated into every cycle metric, as a linear uncertainty budget (JCGM 100) and by Monte Carlo (JCGM 101). - CFD output checklist. docs/forte-output-checklist.md lists the outputs a simulation must write for these analyses, including a separate pre-chamber region and a spark-timing sweep.
Fixes
- Without a temperature trace the gas temperature is now reconstructed with a composition-dependent gas constant inside the heat-release iteration; the previous unburned-gas constant overstated the gross heat release of a hydrogen case at λ = 2 by 0.4 %.
- Case directories are written with LF line endings on every platform (#17).
Known limitations
- Each pre-chamber volume uses a frozen unburned-charge gas model (#13).
- Thermal shock is not part of the measurement-uncertainty model (#14).
- MBT is defined on gross IMEP (friction and pumping assumed independent of spark timing).
Planned work: v0.5.0 milestone.
Installation
python -m pip install "combusta @ git+https://github.com/alpztel/combusta.git@v0.4.0"The wheel and source distribution below are built by the release workflow and carry build provenance attestations.
Full list of changes: CHANGELOG.md · v0.3.0...v0.4.0
v0.3.0: Combusta
First release under the name Combusta: a fuel-agnostic toolkit for engine cycle analysis, case comparison, and verification & validation of CFD and test-bench data.
Important
All models are verified against closed-form solutions and published reference data (see Verification). The library has not yet been validated against engine or CFD measurements, and its readers have not been exercised on real ANSYS Forte output. Status: alpha.
Highlights
- Fuel-agnostic thermodynamics. Any CxHyOz fuel, including pure hydrogen, at any air-excess ratio λ; GRI-Mech 3.0 NASA polynomials for H2 and CH4; fuel library (H2, CH4, iso-octane, n-dodecane, diesel and Jet A-1 surrogates).
- Heat release with composition-dependent γ. Mass-fraction-burned blending of unburned and burned gas properties, solved by fixed-point iteration (Gatowski et al., 1984; Brunt et al., 1998).
- Engine cases and comparison. Source-independent
EngineCasewith provenance; cycle metrics (peak pressure, IMEP, indicated power and efficiency, ISFC, CA10/50/90); side-by-side comparison with a significance test against the combined GCI uncertainty. - Emissions. ppm (wet/dry) to mass, NOx as NO2 equivalent, g/kWh, emission indices, combustion efficiency (Heywood, 2018).
- ASME V&V 20 validation. Comparison error, validation uncertainty, model-error interval; GUM Type A/B experimental uncertainty; sensitivity-based input uncertainty; GCI-based numerical uncertainty.
Fixes to the 0.2.0 models
- Hardenberg-Hase ignition delay now uses the published multiplicative form; the old additive form overestimated delays by about 2.3×.
- Exergy destruction now comes from entropy generation (Gouy-Stodola), so the budget closure is a real consistency check.
- GCI warns on divergent triplets and can cap the apparent order at the formal order.
Breaking changes
- Package renamed: distribution
combusta,import combusta(formerlyice_cfd_validator). The base exception isCombustaError;ValidationAssistantErrorremains as an alias. hardenberg_hase_delaydefaults topressure_coupling="multiplicative";"additive"is deprecated.
Installation
python -m pip install "combusta @ git+https://github.com/alpztel/combusta.git@v0.3.0"The wheel and source distribution below are built by the release workflow and carry build provenance attestations.
Full list of changes: CHANGELOG.md · v0.2.0...v0.3.0
v0.2.0 (ice-cfd-validation-assistant)
Historical release. Published as
ice-cfd-validation-assistant(import nameice_cfd_validator) before the project was renamed to Combusta. It is no longer supported; use the latest release.
Added auto-ignition and Second-Law modules and consolidated the test suite.
- Wolfer, Assanis et al., and Hardenberg-Hase ignition delay; Livengood-Wu integral; CFD ignition and two-stage heat-release detection
- Altitude-dependent dead state, fuel chemical exergy, thermomechanical exergy, and a cycle exergy budget
- Test suite reorganized into seven modules (65 tests)
Known issues (fixed in 0.3.0)
- The default Hardenberg-Hase form added the temperature and pressure terms instead of multiplying them, which overestimates the ignition delay by a factor of about 2.3 at typical conditions.
- Exergy destruction was computed as the balance residual, so the reported budget closure was zero by construction and not an independent check.
- The example started combustion before the predicted ignition and labeled synthetic spray data as Forte output.
See the changelog for details.
v0.1.0 (ice-cfd-validation-assistant)
Historical release. Published as
ice-cfd-validation-assistant(import nameice_cfd_validator) before the project was renamed to Combusta. It is no longer supported; use the latest release.
Initial release: a diesel-oriented toolkit for post-processing ANSYS Forte output.
- SI constants, unit-conversion tables, and the ISO 2533 standard atmosphere
- Forte CSV and ECN spray data readers
- Zero-phase filtering and high-order derivatives of pressure traces
- Slider-crank kinematics, NASA-polynomial gas properties, Woschni and Hohenberg heat transfer, single-zone heat release, burn fractions, IMEP, knock metrics
- Hiroyasu-Arai and Naber-Siebers spray penetration
- Three-grid GCI (Celik et al., 2008)
- Publication figures and a synthetic altitude-sweep example
See the changelog for details.