Ejemplo n.º 1
0
 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)
Ejemplo n.º 2
0
 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)
Ejemplo n.º 3
0
 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
Ejemplo n.º 4
0
Archivo: core.py Proyecto: ibell/pdsim
 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
Ejemplo n.º 5
0
 def __init__(self):
     PDSimCore.__init__(self)
Ejemplo n.º 6
0
 def __init__(self):
     #Initialize the base class that PistonExpander is derived from
     PDSimCore.__init__(self)
Ejemplo n.º 7
0
 def __init__(self):
     #Initialize the base class that PURecip is derived from
     PDSimCore.__init__(self)
Ejemplo n.º 8
0
 def __init__(self):
     #Initialize the base class that PistonExpander is derived from
     PDSimCore.__init__(self)
Ejemplo n.º 9
0
 def __init__(self):
     #Initialize the base class that PURecip is derived from
     PDSimCore.__init__(self)
Ejemplo n.º 10
0
Archivo: core.py Proyecto: ibell/pdsim
 def __init__(self):
     PDSimCore.__init__(self)