[Cython] Added 'mass' property to Reactor
This commit is contained in:
parent
655af462b0
commit
677cb69a4a
1 changed files with 5 additions and 0 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue