From 9010ecc644c58205bb863a493df3ea5a210846f8 Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Thu, 7 Feb 2013 23:41:37 +0000 Subject: [PATCH] [Cython] Added the radial pressure gradient as the property FlameBase.L Resolves Issue 142. --- interfaces/cython/cantera/onedim.pyx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/interfaces/cython/cantera/onedim.pyx b/interfaces/cython/cantera/onedim.pyx index 876387e79..25fec0aef 100644 --- a/interfaces/cython/cantera/onedim.pyx +++ b/interfaces/cython/cantera/onedim.pyx @@ -839,6 +839,14 @@ class FlameBase(Sim1D): """ return self.profile(self.flame, 'V') + @property + def L(self): + """ + Array containing the radial pressure gradient (1/r)(dP/dr) [N/m^4] at + each point. Note: This value is named 'lambda' in the C++ code. + """ + return self.profile(self.flame, 'lambda') + def solution(self, component, point=None): if point is None: return self.profile(self.flame, component)