/[ascend]/trunk/models/johnpye/fprops/regenerator_plot.py
ViewVC logotype

Diff of /trunk/models/johnpye/fprops/regenerator_plot.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2673 by jpye, Wed Aug 8 03:37:15 2012 UTC revision 2674 by jpye, Thu Jan 24 02:27:41 2013 UTC
# Line 24  def regenerator_plot_fprops(self): Line 24  def regenerator_plot_fprops(self):
24      """Plot T-H diagram of regenerator"""      """Plot T-H diagram of regenerator"""
25      import loading; loading.load_matplotlib(throw=True)      import loading; loading.load_matplotlib(throw=True)
26      ioff(); figure(); hold(1)      ioff(); figure(); hold(1)
27      D = fprops.fprops_fluid(str(self.cd.component.getSymbolValue()))      FH = fprops.fluid(str(self.hxd.component_hot.getSymbolValue()),str(self.hxd.type_hot.getSymbolValue()))
28      extpy.getbrowser().reporter.reportNote("Fluid is %s" % D.name)        FC = fprops.fluid(str(self.hxd.component.getSymbolValue()),str(self.hxd.type.getSymbolValue()))
29    
30        extpy.getbrowser().reporter.reportNote("Hot fluid is %s, cold fluid is %s" % (FH.name, FC.name))    
31    
32      plot_TH(pconsth(self.inlet_hot, self.outlet_hot, 50),'r-',      plot_TH(pconsth(self.inlet_hot, self.outlet_hot, 50),'r-',
33          Href = (float(self.outlet_hot.h)*float(self.outlet_hot.mdot))\          Href = (float(self.outlet_hot.h)*float(self.outlet_hot.mdot))\
# Line 35  def regenerator_plot_fprops(self): Line 37  def regenerator_plot_fprops(self):
37          Href = (float(self.inlet.h)*float(self.inlet.mdot))\          Href = (float(self.inlet.h)*float(self.inlet.mdot))\
38      )      )
39    
40      title(unicode(r"%s heat exchanger" % D.name))      title(unicode(r"%s-%s heat exchanger" % (FH.name, FC.name)))
41      ylabel(unicode(r"T / [°C]"))      ylabel(unicode(r"T / [°C]"))
42      xlabel("H / [MW]")      xlabel("H / [MW]")
43    

Legend:
Removed from v.2673  
changed lines
  Added in v.2674

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22