Runner of the General Simulator of Rankine Cycle python rankine.py Last updated: 2019.01.10 Author:Cheng Maohua Email: [email protected] """ import glob import rankine_cycle as rkc json_filesname_str = r'./cyclefile/rankine8[0-9].json' #json_filesname_str=r'./cyclefile/rankine85.json' json_filesname = glob.glob(json_filesname_str) cycle = [] for i in range(len(json_filesname)): cycle.append(rkc.SimRankineCycle(json_filesname[i])) cycle[i].CycleSimulator() # Specified Net Output Power(MW) Wcycledot = 100 for i in range(len(json_filesname)): cycle[i].SpecifiedNetOutputPowerSimulatorAndOutput(Wcycledot) # Specified Mass Flow (kg/h) mdot = 150 * 3600 # kg/h for i in range(len(json_filesname)): cycle[i].SpecifiedMassFlowSimulatorAndOutput(mdot)
Author:Cheng Maohua Email: [email protected] """ import glob import rankine_cycle as rkc nds_filesname_str=r'./cyclefile/rankine?[0-9]-nds.csv' dev_filesname_str=r'./cyclefile/rankine??-dev.csv' #nds_filesname_str=r'./cyclefile/rankine85-nds.csv' #dev_filesname_str=r'./cyclefile/rankine85-dev.csv' nds_filesname=glob.glob(nds_filesname_str) dev_filesname=glob.glob(dev_filesname_str) cycle=[] for i in range(len(nds_filesname)): cycle.append(rkc.SimRankineCycle(nds_filesname[i],dev_filesname[i])) cycle[i].CycleSimulator() # Specified Net Output Power(MW) Wcycledot = 100 for i in range(len(nds_filesname)): cycle[i].SpecifiedNetOutputPowerSimulatorAndOutput(Wcycledot) # Specified Mass Flow (kg/h) mdot= 150*3600 # kg/h for i in range(len(nds_filesname)): cycle[i].SpecifiedMassFlowSimulatorAndOutput(mdot)