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

(feat) Modify test case for data structures modifications

parent 95a7caf2
No related branches found
No related tags found
No related merge requests found
Pipeline #52981 failed
......@@ -175,6 +175,7 @@ def main():
from matplotlib import pyplot as plt
for icp in range(len(cpi)):
blaster_nodes = isol.vBnd[0][icp][0].getNodes('all')
plt.figure()
plt.plot(cpi[icp][:, 0], cpi[icp][:, 2], label='Inviscid')
plt.plot(cpv[icp][:, 0], cpv[icp][:, 2], label='Viscous')
......@@ -184,7 +185,7 @@ def main():
plt.legend()
plt.draw()
plt.figure()
plt.plot(isol.vBnd[0][icp][0].nodesCoord[:,0], isol.vBnd[0][icp][0].nodesCoord[:,2], '-', label='Paulzer')
plt.plot(blaster_nodes[:,0], blaster_nodes[:,2], '-', label='BLASTER')
plt.plot(cpi[icp][:, 0], cpi[icp][:, 1], '--', label='VTK')
plt.legend()
plt.axis('equal')
......
......@@ -133,7 +133,7 @@ def main():
tms[gen_section].stop()
for isec in range(len(vcfg['sections']['wing'])):
wing_sections[imethod].append(copy.deepcopy(isol.vBnd[0][isec][0].nodesCoord))
wing_sections[imethod].append(copy.deepcopy(isol.vBnd[0][isec][0].getNodes('all')))
del isol
tms['total'].stop()
......
......@@ -87,7 +87,7 @@ def cfgBlast(verb):
'couplTol' : 1e-4, # Tolerance of the VII methodology
'iterPrint': 1, # int, number of iterations between outputs
'resetInv' : True, # bool, flag to reset the inviscid calculation at every iteration.
'sections' : [0],
'sections' : {'airfoil': [0]},
'xtrF' : [0.03, 0.03],# Forced transition location
'interpolator' : 'Matching',
'nDim' : 2
......@@ -124,7 +124,7 @@ def main():
print('{0:6.1f}e6 {1:8.2f} {2:8.1f} {3:8.4f} {4:8.4f} {5:8.4f} {6:8.4f} {7:8.4f}'.format(vcfg['Re']/1e6, isol.getMinf(), isol.getAoA()*180/math.pi, isol.getCl(), vsol.Cdt, vsol.Cdp, vsol.Cdf, isol.getCm()))
# Write results to file.
vSolution = vutils.getSolution(isol.sec)
vSolution = vutils.getSolution(vsol.bodies[0].sections)[0]
tms['total'].stop()
print(ccolors.ANSI_BLUE + 'PyTiming...' + ccolors.ANSI_RESET)
......
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