Dibujando con python


In [2]:
%matplotlib


Using matplotlib backend: TkAgg

In [3]:
import scipy as np
from matplotlib import pyplot as plt

Lectura


In [4]:
data = np.loadtxt('cylinder2/postProcessing/forceCoeffs1/0/forceCoeffs.dat')

t = data[:,0]

Cm  = data[:,1] # total moment coefficient: Cm
Cd  = data[:,2] # total drag coefficient: Cd
Cl  = data[:,3] # total lift coefficient: Cl
Cfl = data[:,4] # total front lift coefficient: Cl(f)
Crl = data[:,5] # total rear lift coefficient: Cl(r)

In [6]:
plt.plot( t , Cl )


Out[6]:
[<matplotlib.lines.Line2D at 0x7f96104d5d10>]