Species Namelists¶
Classes for defining chemical species and combustion parameters in FDS simulations.
Species¶
The Species class represents the FDS SPEC namelist for defining gas species.
Species
¶
Bases: NamelistBase
FDS SPEC namelist - gas species definition.
Defines gas species for combustion and pyrolysis modeling. Species can be predefined (from FDS database), user-defined with chemical composition, or lumped components for simplified modeling.
| ATTRIBUTE | DESCRIPTION |
|---|---|
id |
Unique species identifier
TYPE:
|
formula |
Chemical formula (e.g., 'C2H6O2')
TYPE:
|
alt_id |
Alternative species ID for lookups
TYPE:
|
background |
Use as background species, default: False
TYPE:
|
primitive |
Treat duplicate species as primitive, default: False
TYPE:
|
copy_lumped |
Create copy of lumped species, default: False
TYPE:
|
c |
Number of carbon atoms in molecule
TYPE:
|
h |
Number of hydrogen atoms in molecule
TYPE:
|
o |
Number of oxygen atoms in molecule
TYPE:
|
n |
Number of nitrogen atoms in molecule
TYPE:
|
mw |
Molecular weight [g/mol]
TYPE:
|
mass_fraction_0 |
Initial mass fraction in ambient (e.g., 0.23 for oxygen)
TYPE:
|
mass_fraction_cond_0 |
Initial condensed mass fraction
TYPE:
|
lumped_component_only |
Species is a lumped component (predefined properties), default: False
TYPE:
|
spec_id |
Component species IDs for mixture species
TYPE:
|
mass_fraction |
Mass fractions of components for mixture species
TYPE:
|
volume_fraction |
Volume fractions of components for mixture species
TYPE:
|
specific_heat |
Specific heat capacity [kJ/(kg·K)]
TYPE:
|
conductivity |
Thermal conductivity [W/(m·K)]
TYPE:
|
conductivity_solid |
Solid phase conductivity for aerosols [W/(m·K)]
TYPE:
|
viscosity |
Dynamic viscosity [kg/(m·s)]
TYPE:
|
diffusivity |
Mass diffusivity [m²/s]
TYPE:
|
reference_temperature |
Reference temperature [°C]
TYPE:
|
reference_enthalpy |
Enthalpy at reference temp [kJ/kg]
TYPE:
|
enthalpy_of_formation |
Formation enthalpy [kJ/mol]
TYPE:
|
polynomial |
Polynomial type ('NASA7' or 'NASA9')
TYPE:
|
polynomial_coeff |
NASA polynomial coefficients (2 sets)
TYPE:
|
polynomial_temp |
Polynomial temperature ranges [K] (3 values: T_low, T_mid, T_high)
TYPE:
|
ramp_cp |
Specific heat ramp ID
TYPE:
|
ramp_cp_l |
Liquid specific heat ramp ID
TYPE:
|
ramp_k |
Conductivity ramp ID
TYPE:
|
ramp_d |
Diffusivity ramp ID
TYPE:
|
ramp_mu |
Viscosity ramp ID
TYPE:
|
ramp_g_f |
Gibbs free energy ramp ID
TYPE:
|
aerosol |
Species is an aerosol, default: False
TYPE:
|
density_solid |
Density of aerosol particles [kg/m³]
TYPE:
|
mean_diameter |
Mean diameter of aerosol particles [m]
TYPE:
|
thermophoretic_diameter |
Thermophoretic diameter [m]
TYPE:
|
radcal_id |
RadCal surrogate species for absorption
TYPE:
|
mass_extinction_coefficient |
Mass extinction coefficient for smoke
TYPE:
|
pr_gas |
Gas phase Prandtl number
TYPE:
|
turbulent_schmidt_number |
Turbulent Schmidt number
TYPE:
|
sigmalj |
Lennard-Jones sigma [Å]
TYPE:
|
epsilonklj |
Lennard-Jones epsilon/k [K]
TYPE:
|
vaporization_temperature |
Vaporization temperature [°C]
TYPE:
|
heat_of_vaporization |
Heat of vaporization [kJ/kg]
TYPE:
|
h_v_reference_temperature |
Reference temp for vaporization [°C]
TYPE:
|
beta_liquid |
Liquid thermal expansion coefficient [1/K]
TYPE:
|
density_liquid |
Liquid density [kg/m³]
TYPE:
|
specific_heat_liquid |
Liquid specific heat [kJ/(kg·K)]
TYPE:
|
conductivity_liquid |
Liquid conductivity [W/(m·K)]
TYPE:
|
viscosity_liquid |
Liquid viscosity [kg/(m·s)]
TYPE:
|
melting_temperature |
Melting temperature [°C]
TYPE:
|
fic_concentration |
FIC concentration for FED calculations [ppm]
TYPE:
|
fld_lethal_dose |
FLD lethal dose for FED calculations [ppm*min]
TYPE:
|
real_refractive_index |
Real part of refractive index for condensation
TYPE:
|
complex_refractive_index |
Complex part of refractive index for condensation
TYPE:
|
min_diameter |
Minimum diameter for agglomeration [m]
TYPE:
|
max_diameter |
Maximum diameter for agglomeration [m]
TYPE:
|
n_bins |
Number of bins for agglomeration
TYPE:
|
ode_abs_error |
ODE absolute error tolerance for detailed chemistry
TYPE:
|
ode_rel_error |
ODE relative error tolerance for detailed chemistry
TYPE:
|
Examples:
>>> # User-defined fuel species with formula
>>> fuel = Species(id='MY_FUEL', formula='C3H8O3N4', mw=92.0)
>>> # Background species
>>> air = Species(id='AIR', background=True, spec_id=['N2', 'O2'], volume_fraction=[0.79, 0.21])
>>> # Species with temperature-dependent properties
>>> gas = Species(id='HOT_GAS', ramp_cp='CP_RAMP', ramp_mu='MU_RAMP')
>>> # Species with Lennard-Jones parameters
>>> lj_species = Species(id='LJ_SPEC', sigmalj=3.5, epsilonklj=150.0)
See Also
Reaction : Combustion reaction using species. Material : Solid materials that produce gas species. Initialization : Initial species concentrations.
Species with NASA polynomials¶
thermo_spec = Species( ... id='THERMO_SPEC', ... polynomial='NASA7', ... polynomial_coeff=[ ... [2.5, 1.2e-3, -5.1e-7, 1.0e-9, -8.5e-13, -1.2e3, 3.5], ... [3.2, 1.5e-3, -4.8e-7, 9.2e-10, -7.1e-13, -1.5e3, 4.2] ... ], ... polynomial_temp=[300.0, 1000.0, 5000.0] ... )
Liquid properties for droplet simulation¶
liquid = Species( ... id='WATER_LIQUID', ... density_liquid=1000.0, ... vaporization_temperature=100.0, ... heat_of_vaporization=2257.0 ... )
Notes
- ID must be specified for SPEC
- For user-defined species, specify chemical composition (C, H, O, N) or MW
- SPEC_ID and MASS_FRACTION/VOLUME_FRACTION must have matching lengths
- POLYNOMIAL can be 'NASA7' (7 coefficients) or 'NASA9' (9 coefficients)
- See FDS User Guide Appendix for list of predefined species
Combustion¶
The Combustion class represents the FDS COMB namelist for combustion model parameters.
Combustion
¶
Bases: NamelistBase
FDS COMB namelist - combustion model parameters.
Controls global combustion behavior including extinction models, turbulent combustion, mixing parameters, and ODE solver configuration.
| ATTRIBUTE | DESCRIPTION |
|---|---|
extinction_model |
Extinction model ('EXTINCTION 1' or 'EXTINCTION 2').
TYPE:
|
suppression |
Enable flame suppression model, default: True.
TYPE:
|
initial_unmixed_fraction |
Initial unmixed fraction (0-1), default: 1.0.
TYPE:
|
tau_chem |
Minimum bound for mixing time [s], default: 1e-5.
TYPE:
|
tau_flame |
Maximum bound for mixing time [s], default: 1e10.
TYPE:
|
ode_solver |
ODE solver for chemistry integration ('EXPLICIT EULER', 'RK2', 'RK2 RICHARDSON', 'RK3', 'CVODE').
TYPE:
|
Examples:
See Also
Reaction : Combustion reaction chemistry. Misc : Additional solver parameters.
Usage Examples¶
Predefined Species¶
from pyfds import Simulation, Species, Reaction
sim = Simulation(chid="species_example")
# Use a predefined fuel - FDS knows the properties
sim.add(Reaction(fuel="METHANE", co_yield=0.1))
Custom Species¶
from pyfds import Simulation, Species
sim = Simulation(chid="custom_species")
# Define a custom species with specific properties
sim.add(Species(
id="MY_GAS",
formula="C2H6O", # Ethanol
mw=46.07
))
Lumped Species¶
from pyfds import Simulation, Species
sim = Simulation(chid="lumped_example")
# Define component species
sim.add(Species(id="NITROGEN", lumped_component_only=True))
sim.add(Species(id="OXYGEN", lumped_component_only=True))
# Define lumped species from components
sim.add(Species(
id="AIR",
spec_id=["NITROGEN", "OXYGEN"],
mass_fraction=[0.767, 0.233],
background=True
))
See Also¶
- Species Examples - Working species examples
- Combustion Guide - Combustion modeling
- Reaction Class - Reaction definitions