Script clean-up. Bernhard Gscheider
This commit is contained in:
parent
32df6f133e
commit
aa9f902d61
2 changed files with 14 additions and 16 deletions
|
@ -59,16 +59,15 @@ for line in lines:
|
||||||
outfile=open('residual.dat','w')
|
outfile=open('residual.dat','w')
|
||||||
|
|
||||||
#HJ need better way of combining lists
|
#HJ need better way of combining lists
|
||||||
if iUp > 0:
|
|
||||||
for index in range(0,iUp):
|
|
||||||
outfile.write(str(tUp[index])+' '+str(Ux[index])+' '+str(Uy[index])+' '+str(Uz[index])+' '+str(p[index])+'\n')
|
|
||||||
|
|
||||||
if ikepsilon > 0:
|
|
||||||
for index in range(0,ikepsilon):
|
|
||||||
outfile.write(str(tUp[index])+' '+str(Ux[index])+' '+str(Uy[index])+' '+str(Uz[index])+' '+str(p[index])+' '+str(k[index])+' '+str(epsilon[index])+'\n')
|
|
||||||
if ikomega > 0:
|
if ikomega > 0:
|
||||||
for index in range(0,ikomega):
|
for data in zip(tUp,Ux,Uy,Uz,p,k,omega):
|
||||||
outfile.write(str(tUp[index])+' '+str(Ux[index])+' '+str(Uy[index])+' '+str(Uz[index])+' '+str(p[index])+' '+str(k[index])+' '+str(omega[index])+'\n')
|
outfile.write(' '.join([str(d) for d in data])+'\n')
|
||||||
|
elif ikepsilon > 0:
|
||||||
|
for data in zip(tUp,Ux,Uy,Uz,p,k,epsilon):
|
||||||
|
outfile.write(' '.join([str(d) for d in data])+'\n')
|
||||||
|
elif iUp > 0:
|
||||||
|
for data in zip(tUp,Ux,Uy,Uz,p):
|
||||||
|
outfile.write(' '.join([str(d) for d in data])+'\n')
|
||||||
|
|
||||||
outfile.close()
|
outfile.close()
|
||||||
|
|
||||||
|
|
|
@ -64,16 +64,15 @@ for line in lines:
|
||||||
|
|
||||||
outfile=open('residual.dat','w')
|
outfile=open('residual.dat','w')
|
||||||
|
|
||||||
#HJ need better way of combining lists
|
|
||||||
if iomega > 0:
|
if iomega > 0:
|
||||||
for index in range(0,iomega):
|
for data in zip(tUp,Ux,Uy,Uz,p,k,omega):
|
||||||
outfile.write(str(tUp[index])+' '+str(Ux[index])+' '+str(Uy[index])+' '+str(Uz[index])+' '+str(p[index])+' '+str(k[index])+' '+str(omega[index])+'\n')
|
outfile.write(' '.join([str(d) for d in data])+'\n')
|
||||||
elif iepsilon > 0:
|
elif iepsilon > 0:
|
||||||
for index in range(0,iepsilon):
|
for data in zip(tUp,Ux,Uy,Uz,p,k,epsilon):
|
||||||
outfile.write(str(tUp[index])+' '+str(Ux[index])+' '+str(Uy[index])+' '+str(Uz[index])+' '+str(p[index])+' '+str(k[index])+' '+str(epsilon[index])+'\n')
|
outfile.write(' '.join([str(d) for d in data])+'\n')
|
||||||
elif iUp > 0:
|
elif iUp > 0:
|
||||||
for index in range(0,iUp):
|
for data in zip(tUp,Ux,Uy,Uz,p):
|
||||||
outfile.write(str(tUp[index])+' '+str(Ux[index])+' '+str(Uy[index])+' '+str(Uz[index])+' '+str(p[index])+'\n')
|
outfile.write(' '.join([str(d) for d in data])+'\n')
|
||||||
|
|
||||||
outfile.close()
|
outfile.close()
|
||||||
|
|
||||||
|
|
Reference in a new issue