5.1.1.3. spitfire.griffon package

5.1.1.3.1. Submodules

5.1.1.3.2. spitfire.griffon.griffon module

class spitfire.griffon.griffon.PyCombustionKernels

Bases: object

This is the Python-side interface to the CombustionKernels class defined in the griffon C++ code.

cp_mix(T, y)
cv_mix(T, y)
dcpdT_species(T, mass_fractions, dcpdT_spec)
energy_mix(T, y)
enthalpy_mix(T, y)
flamelet2d_block_diag_solve(nx, ny, factors, pivots, b, out_x)
flamelet2d_factored_block_diag_jacobian(state, pressure, nx, ny, xcp, ycp, prefactor, out_values, out_factors, out_pivots)
flamelet2d_matvec(vec, nx, ny, xcp, xcl, xcr, ycp, ycb, yct, prefactor, block_diag_values, out_vec)
flamelet2d_offdiag_matvec(vec, nx, ny, xcp, xcl, xcr, ycp, ycb, yct, prefactor, out_vec)
flamelet2d_rhs(state, pressure, nx, ny, xcp, xcl, xcr, ycp, ycb, yct, out_rhs)
flamelet_jac_indices(nzi, out_row_indices, out_col_indices)
flamelet_jacobian(state, pressure, oxyState, fuelState, adiabatic, T_convection, T_radiation, h_convection, h_radiation, nzi, cmajor, csub, csup, mcoeff, ncoeff, chi, compute_eigenvalues, diffterm, scale_and_offset, prefactor, rates_sensitivity_option, sensitivity_transform_option, include_enthalpy_flux, include_variable_cp, use_scaled_heat_loss, out_expeig, out_jac)
flamelet_rhs(state, pressure, oxyState, fuelState, adiabatic, T_convection, T_radiation, h_convection, h_radiation, nzi, cmajor, csub, csup, mcoeff, ncoeff, chi, include_enthalpy_flux, include_variable_cp, use_scaled_heat_loss, out_rhs)
flamelet_stencils(dz, nzi, dissipationRate, invLewisNumbers, out_cmajor, out_csub, out_csup, out_mcoeff, out_ncoeff)
ideal_gas_density(p, T, y)
ideal_gas_pressure(rho, T, y)
mechanism_add_const_cp(spec_name, Tmin, Tmax, T0, h0, s0, cp)
mechanism_add_element(element_name)
mechanism_add_nasa7_cp(spec_name, Tmin, Tmid, Tmax, low_coeffs, high_coeffs)
mechanism_add_nasa9_cp(spec_name, Tmin, Tmax, coeffs)
mechanism_add_reaction_Lindemann(reactants_stoich, products_stoich, reversible, fwd_pre_exp_value, fwd_temp_exponent, fwd_act_energy, three_body_efficiencies, default_efficiency, flf_pre_exp_value, flf_temp_exponent, flf_act_energy)
mechanism_add_reaction_Lindemann_with_special_orders(reactants_stoich, products_stoich, reversible, fwd_pre_exp_value, fwd_temp_exponent, fwd_act_energy, three_body_efficiencies, default_efficiency, flf_pre_exp_value, flf_temp_exponent, flf_act_energy, special_orders)
mechanism_add_reaction_Troe(reactants_stoich, products_stoich, reversible, fwd_pre_exp_value, fwd_temp_exponent, fwd_act_energy, three_body_efficiencies, default_efficiency, flf_pre_exp_value, flf_temp_exponent, flf_act_energy, troe_parameters)
mechanism_add_reaction_Troe_with_special_orders(reactants_stoich, products_stoich, reversible, fwd_pre_exp_value, fwd_temp_exponent, fwd_act_energy, three_body_efficiencies, default_efficiency, flf_pre_exp_value, flf_temp_exponent, flf_act_energy, troe_parameters, special_orders)
mechanism_add_reaction_simple(reactants_stoich, products_stoich, reversible, fwd_pre_exp_value, fwd_temp_exponent, fwd_act_energy)
mechanism_add_reaction_simple_with_special_orders(reactants_stoich, products_stoich, reversible, fwd_pre_exp_value, fwd_temp_exponent, fwd_act_energy, special_orders)
mechanism_add_reaction_three_body(reactants_stoich, products_stoich, reversible, fwd_pre_exp_value, fwd_temp_exponent, fwd_act_energy, three_body_efficiencies, default_efficiency)
mechanism_add_reaction_three_body_with_special_orders(reactants_stoich, products_stoich, reversible, fwd_pre_exp_value, fwd_temp_exponent, fwd_act_energy, three_body_efficiencies, default_efficiency, special_orders)
mechanism_add_species(species_name, atom_map)
mechanism_resize_heat_capacity_data()
mechanism_set_element_mw_map(element_mw_map)
mechanism_set_gas_constant(Ru)
mechanism_set_ref_pressure(p)
mechanism_set_ref_temperature(T)
mixture_molecular_weight(y)
mole_fractions(y, x)
prod_rates_primitive_sensitivities(density, temperature, mass_fractions, rates_sensitivity_option, prod_rates_sens)
production_rates(density, temperature, mass_fractions, prodrates)
reactor_jac_isobaric(state, pressure, inflowTemperature, inflowY, tau, fluidTemperature, surfTemperature, hConv, epsRad, surfaceAreaOverVolume, heatTransferOption, open, rates_sensitivity_option, sensitivity_transform_option, rightHandSide, jacobian)
reactor_jac_isochoric(state, inflowDensity, inflowTemperature, inflowY, tau, fluidTemperature, surfTemperature, hConv, epsRad, surfaceAreaOverVolume, heatTransferOption, open, rates_sensitivity_option, rightHandSide, jacobian)
reactor_rhs_isobaric(state, pressure, inflowTemperature, inflowY, tau, fluidTemperature, surfTemperature, hConv, epsRad, surfaceAreaOverVolume, heatTransferOption, open, rightHandSide)
reactor_rhs_isochoric(state, inflowDensity, inflowTemperature, inflowY, tau, fluidTemperature, surfTemperature, hConv, epsRad, surfaceAreaOverVolume, heatTransferOption, open, rightHandSide)
species_cp(T, cpspecies)
species_cv(T, cvspecies)
species_energies(T, energyspecies)
species_enthalpies(T, enthalpyspecies)
spitfire.griffon.griffon.py_btddod_blockdiag_factorize(matrix_values, num_blocks, block_size, out_pivots, out_factors)
spitfire.griffon.griffon.py_btddod_blockdiag_matvec(matrix_values, vec, num_blocks, block_size, out_matvec)
spitfire.griffon.griffon.py_btddod_blockdiag_solve(pivots, factors, rhs, num_blocks, block_size, out_solution)
spitfire.griffon.griffon.py_btddod_full_factorize(out_d_factors, num_blocks, block_size, out_l_values, out_d_pivots)
spitfire.griffon.griffon.py_btddod_full_matvec(matrix_values, vec, num_blocks, block_size, out_matvec)
spitfire.griffon.griffon.py_btddod_full_solve(d_factors, l_values, d_pivots, rhs, num_blocks, block_size, out_solution)
spitfire.griffon.griffon.py_btddod_lowerfulltriangle_solve(pivots, factors, matrix_values, rhs, num_blocks, block_size, out_solution)
spitfire.griffon.griffon.py_btddod_scale_and_add_diagonal(in_out_matrix_values, matrix_scale, diagonal, diag_scale, num_blocks, block_size)
spitfire.griffon.griffon.py_btddod_scale_and_add_scaled_block_diagonal(in_out_matrix_values, matrix_scale, block_diag, diag_scale, num_blocks, block_size)
spitfire.griffon.griffon.py_btddod_upperfulltriangle_solve(pivots, factors, matrix_values, rhs, num_blocks, block_size, out_solution)

5.1.1.3.3. Module contents

This module contains Spitfire’s analytical Jacobian and numerical methods ‘engine’ named griffon, which is written in C++ and wrapped by Cython