Skip to content
Snippets Groups Projects
Verified Commit 6b71dd47 authored by Paul Dechamps's avatar Paul Dechamps :speech_balloon:
Browse files

(chore) Added density in boundary layer output file

parent 84597546
No related branches found
No related tags found
1 merge request!1BLASTER v1.0
Pipeline #37685 failed
...@@ -123,7 +123,7 @@ def getSolution(sections, write=False, toW=['x', 'xelm', 'theta', 'H', 'deltaSta ...@@ -123,7 +123,7 @@ def getSolution(sections, write=False, toW=['x', 'xelm', 'theta', 'H', 'deltaSta
varKeys = ['theta', 'H', 'N', 'ue', 'Ct'] varKeys = ['theta', 'H', 'N', 'ue', 'Ct']
attrKeys = ['x', 'y', 'z', 'xoc', 'deltaStar', \ attrKeys = ['x', 'y', 'z', 'xoc', 'deltaStar', \
'cd', 'cf', 'Hstar', 'Hstar2', 'Hk', 'ctEq', 'us', 'delta',\ 'cd', 'cf', 'Hstar', 'Hstar2', 'Hk', 'ctEq', 'us', 'delta',\
'vt', 'Ret'] 'vt', 'rhoe', 'Ret']
elemsKeys = ['xelm', 'yelm', 'zelm'] elemsKeys = ['xelm', 'yelm', 'zelm']
for iSec, sec in enumerate(sections): for iSec, sec in enumerate(sections):
...@@ -194,8 +194,8 @@ def getSolution(sections, write=False, toW=['x', 'xelm', 'theta', 'H', 'deltaSta ...@@ -194,8 +194,8 @@ def getSolution(sections, write=False, toW=['x', 'xelm', 'theta', 'H', 'deltaSta
f.write('# Stagnation point at index '+str(sec[0].x.size()-1)+'\n') f.write('# Stagnation point at index '+str(sec[0].x.size()-1)+'\n')
f.write('# Wake at index '+str(sec[0].x.size()+sec[1].x.size())+'\n') f.write('# Wake at index '+str(sec[0].x.size()+sec[1].x.size())+'\n')
for key in toW: for i, key in enumerate(toW):
f.write(' {0:>21s}'.format(key)) f.write(' {0:>21s}'.format(str(i)+' '+key))
f.write('\n') f.write('\n')
for i in range(len(sol[iSec]['x'])): for i in range(len(sol[iSec]['x'])):
for key in toW: for key in toW:
...@@ -229,4 +229,4 @@ def plot(cfg): ...@@ -229,4 +229,4 @@ def plot(cfg):
if 'legend' in cfg and cfg['legend'] is True: plt.legend(frameon=False) if 'legend' in cfg and cfg['legend'] is True: plt.legend(frameon=False)
if 'xlabel' in cfg: plt.xlabel(cfg['xlabel']) if 'xlabel' in cfg: plt.xlabel(cfg['xlabel'])
if 'ylabel' in cfg: plt.ylabel(cfg['ylabel']) if 'ylabel' in cfg: plt.ylabel(cfg['ylabel'])
plt.show() plt.show()
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment