{% extends "base.html" %} {% block content %}

Mixture CN Predictor

Predict the derived cetane number and supporting fuel properties of a multi-component fuel mixture using SMILES input and blend composition.

{% if error %}
{{ error }}
{% endif %} {% if warning %}
{{ warning }}
{% endif %}
Mixture Composition

Enter at least two components. The total composition must equal 100%.

SMILES input
{% if components %} {% for comp in components %}
{% endfor %} {% else %}
{% endif %}
Current total: 0.00%
Prediction Output
{% if result %}

Predicted Mixture CN

{{ result.dcn }}

Mixture YSI

{% if result.ysi is not none %}{{ result.ysi }}{% else %}N/A{% endif %}

Boiling Point

{% if result.bp is not none %}{{ result.bp }} °C{% else %}N/A{% endif %}

Density

{% if result.density is not none %}{{ result.density }} kg/m³{% else %}N/A{% endif %}

Components

{{ result.num_components }}
The mixture DCN is predicted using the GNN mixture model. YSI, boiling point, and density are estimated using pure-component predictions and blending laws.
{% else %}

No mixture prediction yet

Enter the blend composition and click Predict Mixture CN.

{% endif %}
{% if components %}
Component Summary
{% for comp in components %} {% endfor %}
Structure Name SMILES Formula MW (g/mol) Composition (%) Pure YSI Pure Density (kg/m³)
{% if comp.img_id %} Molecule structure {% else %} No image {% endif %} {{ comp.name }} {{ comp.smiles }} {{ comp.formula }} {{ comp.mol_weight }} {{ comp.percentage }}% {% if comp.pure_ysi is not none %}{{ comp.pure_ysi }}{% else %}N/A{% endif %} {% if comp.pure_density is not none %}{{ comp.pure_density }} kg/m³{% else %}N/A{% endif %}
{% endif %}
{% endblock %}