def pre_run(self): """ Intercepts the call to pre_run and does some scroll processing, then calls the base class function """ #Call the base class function PDSimCore.pre_run(self)
def _PDSimCore__post_solve(self): """ {\eta _{motor}} = \frac{{{{\dot W}_{shaft}}}}{{{{\dot W}_{shaft}} + {{\dot W}_{motor}}}} {\eta _{motor}}\left( {{{\dot W}_{shaft}} + {{\dot W}_{motor}}} \right) = {{\dot W}_{shaft}} {{\dot W}_{motor}} = \frac{{{{\dot W}_{shaft}}}}{{{\eta _{motor}}}} - {{\dot W}_{shaft}} """ #Call the base class function PDSimCore._PDSimCore__post_solve(self) #Extra code for the recip #Motor losses self.Wdot_motor = self.Wdot*(1/self.eta_motor-1) #Electrical Power self.Wdot_electrical = self.Wdot + self.Wdot_motor #Overall isentropic efficiency self.eta_oi = self.Wdot_i/self.Wdot_electrical
def __init__(self): PDSimCore.__init__(self)
def __init__(self): #Initialize the base class that PistonExpander is derived from PDSimCore.__init__(self)
def __init__(self): #Initialize the base class that PURecip is derived from PDSimCore.__init__(self)