source: inundation/steve/get_triangle_data_new.py @ 2113

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 
1import sys
2from os import sep
3sys.path.append('..'+sep+'pyvolution')
4
5
6
7
8alpha = 1
9mesh_file = 'merimbula_10785.tsh'
10point_file = 'meri0.xya'
11mesh_output_file = 'merimbula_10785_%g.tsh'%alpha
12
13print mesh_output_file
14
15from shallow_water import Domain
16from pmesh2domain import pmesh_to_domain_instance
17from util import file_function, Polygon_function, read_polygon
18from Numeric import zeros, Float, maximum, minimum
19
20#-------
21# Domain
22filename = mesh_output_file
23print 'Creating domain from', filename
24domain = pmesh_to_domain_instance(filename, Domain)
25print "Number of triangles = ", len(domain)
26
27
28from realtime_visualisation_new import *
29
30surface =  Surface(domain, scale_z = 1.0/50.0)
31
32
33
Note: See TracBrowser for help on using the repository browser.