From 677cb69a4a9471b599ca9f1f9ed5cb1e1ac4ba00 Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Thu, 7 Feb 2013 23:40:22 +0000 Subject: [PATCH] [Cython] Added 'mass' property to Reactor --- interfaces/cython/cantera/reactor.pyx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/interfaces/cython/cantera/reactor.pyx b/interfaces/cython/cantera/reactor.pyx index c50455619..dbc28de3f 100644 --- a/interfaces/cython/cantera/reactor.pyx +++ b/interfaces/cython/cantera/reactor.pyx @@ -68,6 +68,11 @@ cdef class ReactorBase: def __get__(self): return self.thermo.density + property mass: + """The mass of the reactor's contents.""" + def __get__(self): + return self.thermo.density_mass * self.volume + property Y: """The mass fractions of the reactor's contents.""" def __get__(self):