CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > SU2

A few SU2_EDU issues to be aware of

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   February 14, 2016, 03:23
Default A few SU2_EDU issues to be aware of
  #1
Disabled
 
Join Date: Jul 2015
Posts: 7
Rep Power: 10
anon_k is on a distinguished road
Hi,

I went to download SU2_EDU today, to install on a new computer. The parallel windows binary link is broken. Also, I noticed this awhile ago, but the python script you have to make the pressure plot is broke. I hacked a fix awhile back, but you may want to provide a functioning version in the download. The hack I did is as follows:

import os, time
import pandas as pd
from optparse import OptionParser
from numpy import *
from matplotlib import pyplot as plt
from matplotlib import mlab

filename = "surface_flow.csv"

# Load the csv file with the airfoil coordinate and pressure data (sorted)

data = pd.read_csv(filename)
data = data.sort('Global_Index')
data.to_csv(filename, index=False)
data = mlab.csv2rec(filename, comments='#', skiprows=0, checkrows=0)

# Plot the airfoil shape and pressure distribution

fig = plt.figure()
ax1 = fig.add_subplot(111)
ax1.plot(data.x_coord[:],data.pressure_coefficient[:],'-b',linewidth = 2.0)
ax1.set_ylim(ax1.get_ylim()[::-1])
ax1.set_xlabel(r'$x/c$', fontsize=20)
ax1.set_ylabel(r'$C_p$', fontsize=20)

ax2 = ax1.twinx()
ax2.plot(data.x_coord[:],data.y_coord[:],'-k',linewidth = 1.5)
ax2.axis('equal')
ax2.axis('off')
ax2.set_xlim([-0.02,1.02])
ax2.set_ylim([-0.1,0.7])
ax2.set_ylabel(r'$y / c$', fontsize=20)
plt.savefig('pressure_distribution.png',format='pn g')
anon_k is offline   Reply With Quote

 

Tags
su2_edu


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Issues on the simulation of high-speed compressible flow within turbomachinery dowlee OpenFOAM Running, Solving & CFD 11 August 6, 2021 06:40
Meshing issues stevepaddock2511 Siemens 1 May 31, 2017 10:39
Porous media setup issues in Fluent Bernard Van FLUENT 29 January 26, 2017 04:09
Multigrid Stability Issues ThomasHermann SU2 1 November 5, 2014 16:18
[General] Some Paraview Issues I can not solve MR_Chicho ParaView 1 September 24, 2012 05:03


All times are GMT -4. The time now is 00:45.