Last change
on this file since 2113 was
1266,
checked in by steve, 20 years ago
|
Played with weave to convert update of new visualisation code.
|
-
Property svn:executable set to
*
|
File size:
723 bytes
|
Line | |
---|
1 | import sys |
---|
2 | from os import sep |
---|
3 | sys.path.append('..'+sep+'pyvolution') |
---|
4 | |
---|
5 | |
---|
6 | |
---|
7 | |
---|
8 | alpha = 1 |
---|
9 | mesh_file = 'merimbula_10785.tsh' |
---|
10 | point_file = 'meri0.xya' |
---|
11 | mesh_output_file = 'merimbula_10785_%g.tsh'%alpha |
---|
12 | |
---|
13 | print mesh_output_file |
---|
14 | |
---|
15 | from shallow_water import Domain |
---|
16 | from pmesh2domain import pmesh_to_domain_instance |
---|
17 | from util import file_function, Polygon_function, read_polygon |
---|
18 | from Numeric import zeros, Float, maximum, minimum |
---|
19 | |
---|
20 | #------- |
---|
21 | # Domain |
---|
22 | filename = mesh_output_file |
---|
23 | print 'Creating domain from', filename |
---|
24 | domain = pmesh_to_domain_instance(filename, Domain) |
---|
25 | print "Number of triangles = ", len(domain) |
---|
26 | |
---|
27 | |
---|
28 | from realtime_visualisation_new import * |
---|
29 | |
---|
30 | surface = Surface(domain, scale_z = 1.0/50.0) |
---|
31 | |
---|
32 | |
---|
33 | |
---|
Note: See
TracBrowser
for help on using the repository browser.