Laminar flame speeds¶
This model uses a Cantera cantera.FreeFlame
to determine the propagation speed of a freely-propagating laminar flame.
Laminar flame speed model¶
-
class
flame_speed.
FlameSpeed
(T, Patm, composition, chemistry_model, domain_length=1.0, initial_points=10, loglevel=2, name='soln', **kwargs)¶ A model for laminar flame speed
This class provides a model for calculating a laminar flame speed in Cantera. It is based off of the tutorial.
This class implements the
initialize_reactor()
method required bycantera_chemistry_model()
and theevaluate()
method required bymumpce.model()
. It also redefines the following placeholder methods from func:cantera_chemistry_model:Parameters: - T (float) – The unburned gas temperature in Kelvins
- Patm (float) – The pressure in atmospheres (will be converted internally to Pa)
- composition (str,ndarray(float)) – The composition of the unburned gas. Can be a float array or a Cantera composition string
- chemistry_model (str) – The chemistry model for the flame. Must be a chemistry model that can be used to make a Cantera phase object
- domain_length (float) – The length of the computational domain, in meters, default 1
- initial_points (int) – The number of initial grid points in the computational domain, default 10
- loglevel (int) – The loglevel for the Cantera flame solver, default 2
-
evaluate
()¶ Compute the laminar flame speed
Returns: Laminar flame speed in cm/s
-
initialize_reactor
()¶ Initialize the freely-propagating laminar flame object
-
save_restart
(filename=None, solution_name='restart', description='Base solution for this flame speed')¶ Save the current flame solution to a restart file for use in later solutions
Parameters: - filename – The Cantera solution file that should contain the restart to be saved. The default is stored in save.savefile
- solution_name – The name of the solution that should be saved to the restart file. Default ‘restart’
- description – A possibly verbose description of the solution to be saved. Default ‘Base solution for this flame speed’
-
load_restart
(filename=None, solution_name='restart')¶ Load a solution from a restart file and set the self.restart flag so that the model knows that a restart has been read
Parameters: - filename – The Cantera solution file that contains the restart to be loaded. The default is stored in save.savefile
- solution_name – The name of the solution that should be loaded from the restart file. Default ‘restart’
-
ignore_restart
()¶ Tells the model that it should ignore the data in the restart file and instead generate a solution from scratch