[Cython] Added 'mass' property to Reactor

This commit is contained in:
Ray Speth 2013-02-07 23:40:22 +00:00
parent 655af462b0
commit 677cb69a4a

View file

@ -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):