source: development/steve/get_triangle_data_new.py @ 3514

Last change on this file since 3514 was 3514, checked in by duncan, 18 years ago

Hi all,
I'm doing a change in the anuga structure, moving the code to

\anuga_core\source\anuga

After you have done an svn update, the PYTHONPATH has to be changed to;
PYTHONPATH = anuga_core/source/

This is part of changes required to make installation of anuga quicker and reducing the size of our sandpits.

If any imports are broken, try fixing them. With adding anuga. to them for example. If this seems to have really broken things, email/phone me.

Cheers
Duncan

File size: 740 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 anuga.pyvolution.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.