File: nicks.py

package info (click to toggle)
python-scipy 0.3.2-6
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 13,572 kB
  • ctags: 20,326
  • sloc: ansic: 87,138; fortran: 51,876; python: 47,747; cpp: 2,134; objc: 384; makefile: 175; sh: 83
file content (44 lines) | stat: -rw-r--r-- 1,379 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Copyright (c) 1996, 1997, The Regents of the University of California.
# All rights reserved.  See Legal.htm for full text and disclaimer.

from Numeric import *
from scipy_base.fastumath import *
from surface import *
from graph3d import *
def paws ( ) :
    i = raw_input ("Type in any string to continue; ^C to return to prompt. ")
    return
from PFB import *
f = PFB ('nicks_plot')
x = f.xout
y = f.yout
z = f.rhoout
s1 = Surface (x = y, y = x, z = z, opt_3d = "s3", mask = "max")
g1 = Graph3d (s1, theta = 11, phi = 45, titles = "Density plot: reflecting shock wave")
g1.plot ( )
paws ( )
g1.quick_plot (surface = 1, opt_3d = "w3")
paws ( )
vx = f.vxout
vy = f.vyout
massfrac = f.massfrac1out
 
f.close ()
s1.set (z = vx, mask = "max", opt_3d = "w3")
g1.change_plot (send = 1, theta = 160, phi = 45, titles = "x velocity: reflecting shock wave")
paws ()
s1.set (z = vy, mask = "max", opt_3d = "w3")
g1.change_plot (send = 1, theta = 11, phi = 45, titles = "y velocity: reflecting shock wave")
paws ()
s1.set (z = massfrac)
g1.change_plot (send = 1, theta = 170, phi = 45, titles = "Mass fraction: reflecting shock wave")
paws ()
f = PFB ('mikes_plot')
x8 = f.x8
y8 = f.y8
z8 = f.z8
s2 = Surface (x = x8, y = y8, z = z8, opt_3d = "s3", mask = "max",
     color_card = "redgreen")
g2 = Graph3d (s2, phi = 26, theta = 80, titles = "3-D square mode")
g2.plot ( )
f.close ( )