Skip to content

Commit

Permalink
Adding Progress Printing
Browse files Browse the repository at this point in the history
  • Loading branch information
ShreySahai committed Oct 28, 2023
1 parent d05b366 commit 6671f5c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions RGP.py
Original file line number Diff line number Diff line change
Expand Up @@ -607,8 +607,10 @@ def genSuperTables(self):
elif self.sat_phase == 'gas':
Q = 1

print(len(self.table['p']),len(self.table['T']))
for j, p in enumerate(self.table['p']):
for i, T in enumerate(self.table['T']):
print(j,i,end="\r")
# Controla se corrige o erro de pressão muito proximo a saturação
fix = False
if self.fluid.backend!='REFPROP':
Expand Down Expand Up @@ -991,7 +993,9 @@ def writeSuperTables(self):
self.print('Writing Super Tables... ', end='\t')
stime = time.time()

print(len(self.properties))
for i, t in enumerate(self.properties):
print(i,end="\r")
f.write('$TABLE_'+str(i+1)+' \n')
f.write('\t'+ str(self.NT) + '\t' + str(self.Np))
f.write(vec2str(self.table['T']))
Expand Down

0 comments on commit 6671f5c

Please sign in to comment.