示例#1
0
文件: expander.py 项目: ibell/pdsim
 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)
示例#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)
示例#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
示例#4
0
文件: core.py 项目: 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
示例#5
0
 def __init__(self):
     PDSimCore.__init__(self)
示例#6
0
 def __init__(self):
     #Initialize the base class that PistonExpander is derived from
     PDSimCore.__init__(self)
示例#7
0
 def __init__(self):
     #Initialize the base class that PURecip is derived from
     PDSimCore.__init__(self)
示例#8
0
 def __init__(self):
     #Initialize the base class that PistonExpander is derived from
     PDSimCore.__init__(self)
示例#9
0
 def __init__(self):
     #Initialize the base class that PURecip is derived from
     PDSimCore.__init__(self)
示例#10
0
文件: core.py 项目: ibell/pdsim
 def __init__(self):
     PDSimCore.__init__(self)