Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revised twin flame #356

Closed
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# coding: utf-8

"""
-Simulate two counter-flow jets of reactants shooting into each other. This
-simulation differs from the similar premixed_counterflow_flame.py example as the
-latter simulates a jet of reactants shooting into products.
"""

import cantera as ct
import numpy as np

Expand Down Expand Up @@ -87,8 +93,8 @@ def solveOpposedFlame(oppFlame, massFlux=0.12, loglevel=1,
# Create the flame object
oppFlame = ct.CounterflowTwinPremixedFlame(gas, width=width)

# Use mixture-averaged properties
oppFlame.transport_model = 'Mix'
# Uncomment this line to use a Multi-component formulation. Default is mixture-averaged
#oppFlame.transport_model = 'Mix'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this say 'Multi' to match the comment? Or should the comment be changed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the catch. Changed in 833e850


# Now run the solver

Expand All @@ -109,16 +115,3 @@ def solveOpposedFlame(oppFlame, massFlux=0.12, loglevel=1,
print("Consumption Speed: {0} cm/s".format(Sc*100))
oppFlame.write_csv("premixed_twin_flame.csv", quiet=False)

"""
#Uncomment to generate plots and verify the solution
plt.plot(oppFlame.grid, oppFlame.u/max(oppFlame.u),'bs')
plt.plot(oppFlame.grid, oppFlame.T/max(oppFlame.T),'gd')

plt.axvline(oppFlame.grid[strainRatePoint], color='k')

plt.title("Normalized velocity and strain-rate. Vertical line is location of characterstic strain rate")

plt.xlabel('Distance (m)')
plt.show()
"""