GasphaseReactions
Documentation for GasphaseReactions.
GasphaseReactions.calculate_molar_production_rates!
GasphaseReactions.clean_up!
GasphaseReactions.collect_species!
GasphaseReactions.compile_gaschemistry
GasphaseReactions.delete_tbs!
GasphaseReactions.fall_off_species
GasphaseReactions.modify_coefficients!
GasphaseReactions.parse_reaction
GasphaseReactions.parse_third_body_collision_data
GasphaseReactions.pressure_dependent_params
GasphaseReactions.rate_constant
GasphaseReactions.read_gaschem!
GasphaseReactions.reduced_pressure
GasphaseReactions.third_body_collision
GasphaseReactions.unit_conversion_A
GasphaseReactions.unit_conversion_E
GasphaseReactions.calculate_molar_production_rates!
— Methodcalculatemolarproductionrates!(ms::MixtureState, gd::GasmechDefinition, thermoobj)
- ms: State object
- gd: Struct of the type GasMechDefinition
- thermo_obj: ThermoObj structure
return value is in mol/m3
GasphaseReactions.clean_up!
— Methodcleanup!(species::Array{T}, allspecies::Array{T}) where T <: AbstractString
- In the case of fall-off reactions, the reactant and product species may contain
"(" as part of the species name and this occurs at the end of the name. This needs to be cleaned up
GasphaseReactions.collect_species!
— Methodcollectspecies!(gasphasespecies::Array{T}, data_string::T)
- This function is not for extermal calls
function for reading the species present in the gasphase mechanism from the SPECIES .. END block
GasphaseReactions.compile_gaschemistry
— Methodcompilegaschemistry(inputfile::T)
- inputfile : inputfile including the path
Function for reading the gasphase input file. The function returns the definition of gasphase mechanism
GasphaseReactions.delete_tbs!
— Methoddelete_tbs(tbs, args...) function to delete the third body species from the reactant and product list
GasphaseReactions.fall_off_species
— Methodfalloffspecies(rxn_string::AbstractString)
- Function to find the species acting as third body in a fall-off
reaction. The species could be (+M) or (+Sp), where sp is any species present in the mechanism
GasphaseReactions.modify_coefficients!
— Methodmodify_coefficients!(args...)
- Chemkin gasphase chemistry allows non unity stoichiometric coefficients.
This function identifies the coefficients of any species that is not 1 and modifies the reactant and product species list accordingly
GasphaseReactions.parse_reaction
— Methodfunction parsereaction(datastring::AbstractString)
- function for reading the reactions present in the REACTIONS... END block
GasphaseReactions.parse_third_body_collision_data
— Methodparsethirdbodycollisiondata(gasphasespecies::Array{T}, datastring::T)
- Function for parsing the third body collision data
GasphaseReactions.pressure_dependent_params
— Methodparsepressuredependentmodelparams(gasphase_reactions::AbstractString) Function for parsing the pressure dependent model parameters TROE and SRI reactions
GasphaseReactions.rate_constant
— MethodCalculate Arrhenius rate constant
GasphaseReactions.read_gaschem!
— Methodreadgaschem!(gasphasespecies::Array{T}, inputfile::T, libdir::T) where T <: AbstractString
- gasphase_species : list of species present in the mechanism
- input_file : input file including the path
Function for reading the gasphase mechanism file. Only chemkin input file is supported
GasphaseReactions.reduced_pressure
— Methodreduced_pressure(id, k, T, conc, low, high)
- calculate the reduced pressure
- id: reaction id
- k : forward reaction rate constant
- T : mixture temperature
- tb_conc : third body concentration
- low : struct Arrhenius
- high : struct Arrhenius
- unimol : whether unimolecular or bimolecular boolean
GasphaseReactions.third_body_collision
— Methodthirdbodycollision(rxnid::Int64,conc::Array{Float64},tbcall::Dict{Int64, Dict{Int64, Float64}})
- Function for the calculation of third body collision effciencies. If third body effciency is not specified for a species then that is assumed as 1. If no collision effciencies are specified then [M] is nothing but the concentration of the mixture
GasphaseReactions.unit_conversion_A
— MethodunitconversionA(params::Array{Arrhenius}, factor)
- Function for converting pre-exponential factor to units of moles the units are in cm-mol-s-K
GasphaseReactions.unit_conversion_E
— MethodunitconversionE(params::Array{Arrhenius}, factor)
- Function for converting the activation energy to SI units J/Mol