diff options
author | brenda-br | 2023-02-24 11:55:27 +0530 |
---|---|---|
committer | brenda-br | 2023-02-24 11:55:27 +0530 |
commit | 2b94618c50110c38cd67564a5b58630aeeb2adc5 (patch) | |
tree | 180474d0ed0b1faba9066bb8b9d98432473d9157 /src/main/python/utils/UnitOperations.py | |
parent | d476d2e053f937c0060f696312f301591e4f43ea (diff) | |
download | Chemical-Simulator-GUI-2b94618c50110c38cd67564a5b58630aeeb2adc5.tar.gz Chemical-Simulator-GUI-2b94618c50110c38cd67564a5b58630aeeb2adc5.tar.bz2 Chemical-Simulator-GUI-2b94618c50110c38cd67564a5b58630aeeb2adc5.zip |
Fix #62 Remove Redundant Lines
Diffstat (limited to 'src/main/python/utils/UnitOperations.py')
-rw-r--r-- | src/main/python/utils/UnitOperations.py | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/main/python/utils/UnitOperations.py b/src/main/python/utils/UnitOperations.py index d3cf3d7..a016c55 100644 --- a/src/main/python/utils/UnitOperations.py +++ b/src/main/python/utils/UnitOperations.py @@ -268,10 +268,8 @@ class DistillationColumn(UnitOperation): self.EngStm2 = EngStm(name='EngStm2'+self.name) self.count = DistillationColumn.counter self.thermo_pack_req = True - # self.modes_list = ['RR', 'Nout', 'T'] self.modes_list = [] self.parameters = ['Nt', 'Ni', 'Ctype', 'Pcond', 'condmode', 'C_comp', 'C_Spec', 'Preb', 'rebmode', 'rebcomp', 'R_Spec'] - #self.parameters = ['Nt', 'InT_s', 'In_s', 'thermo_package', 'Ctype', 'Pcond', 'Preb'] self.result_parameters = ['Cduty.Q', 'Rduty.Q'] self.Cspec_list = ['Reflux Ratio','Product Molar Flow (mol/s)', 'Temperature (K)', 'Compound Molar Fraction', 'Compound Molar Flow (mol/s)'] self.Rspec_list = ['Product Molar Flow (mol/s)', 'Temperature (K)', 'Compound Molar Fraction', 'Compound Molar Flow (mol/s)'] @@ -360,17 +358,10 @@ class DistillationColumn(UnitOperation): + str(self.variables['Ni']['value']) + ",InT_s=" + "{" + str(self.variables['InT_s']['value']).strip('[').strip(']') + "}" + ',Ctype ="' + self.variables['Ctype']['value'] + '");\n') - # self.OM_data_init = self.OM_data_init + 'Simulator.Streams.Energy_Stream '+self.EngStm1.name+';\n' - # self.OM_data_init = self.OM_data_init + 'Simulator.Streams.Energy_Stream '+self.EngStm2.name+';\n' return self.OM_data_init def OM_Flowsheet_Equation(self): self.OM_data_eqn = '' - # self.OM_data_eqn = self.name + '.pressDrop = ' + str(self.PressDrop) + ';\n' - # self.OM_data_eqn = self.OM_data_eqn + ( - # 'connect(' + self.name + '.' + 'condensor_duty' + ',' + self.EngStm1.name + '.inlet);\n') - # self.OM_data_eqn = self.OM_data_eqn + ( - # 'connect(' + self.name + '.reboiler_duty' + ', ' + self.EngStm2.name + '.inlet);\n') self.OM_data_eqn = self.OM_data_eqn + ( 'connect(' + self.name + '.Dist' + ", " + self.output_stms[1].name + '.In);\n') self.OM_data_eqn = self.OM_data_eqn + ( @@ -476,11 +467,6 @@ class CompoundSeparator(UnitOperation): self.variables['SepVal_c']['value'][index//2] = float(params[i]) else: self.variables['SepFact_c']['value'][index//2] = params[i] - - # self.variables['SepFact_c']['value'] = json.dumps(self.variables['SepFact_c']['value']).replace('[','{').replace(']','}') - # self.variables['SepStrm']['value'] = str(self.variables['SepStrm']['value']) - # self.variables['SepVal_c']['value'] = json.dumps(self.variables['SepVal_c']['value']).replace('[','{').replace(']','}') - def OM_Flowsheet_Initialize(self): SepStrm = str(self.variables['SepStrm']['value']) |