source: anuga_work/development/landslide_4/project.py @ 5633

Last change on this file since 5633 was 5633, checked in by bridgette, 16 years ago

comments for benchmark problem 4

File size: 2.9 KB
RevLine 
[5572]1# -*- coding: cp1252 -*-
2"""Common filenames and locations for topographic data, meshes and outputs.
3"""
4
5from os import sep, environ, getenv, getcwd
6from os.path import expanduser
7import sys
8from time import localtime, strftime, gmtime
9from anuga.utilities.polygon import read_polygon, plot_polygons, is_inside_polygon, number_mesh_triangles
10from anuga.utilities.system_tools import get_user_name, get_host_name
11from anuga.shallow_water.data_manager import urs2sts,create_sts_boundary
12from anuga.utilities.polygon import read_polygon, plot_polygons, polygon_area, is_inside_polygon
13
14# file and system info
15#---------------------------------
16#codename = 'project.py'
17
18home = getenv('INUNDATIONHOME') + sep +'data'+sep #Sandpit's parent diruser = get_user_name()
19muxhome = getenv('MUXHOME')
20user = get_user_name()
21host = get_host_name()
22
23# INUNDATIONHOME is the inundation directory, not the data directory.
24
25#time stuff
26time = strftime('%Y%m%d_%H%M%S',localtime()) #gets time for new dir
27gtime = strftime('%Y%m%d_%H%M%S',gmtime()) #gets time for new dir
28build_time = time+'_build'
29run_time = time+'_run'
30print 'gtime: ', gtime
31
32#Making assumptions about the location of scenario data
33state = 'anuga_validation'
34scenario = 'benchmark_problem_4'
35sww_name = 'slide'
36
[5633]37friction=0.01 #basal friction
38starttime=0 
39finaltime=500 #duration of evolution
40remainder_res = 1. #area of mesh triangle in m*2
41export_cellsize=25 #length along side of mesh triangle
[5572]42
43dir_comment='_'+'finaltime'+str(finaltime)+'_'+str(user)
44
45anuga_dir = home+state+sep+scenario+sep+'anuga'+sep
46
47meshes_dir = anuga_dir+'meshes'+sep
48meshes_dir_name = meshes_dir + sww_name
49
50polygons_dir = anuga_dir+'polygons'+sep
51
52#output locations
53output_dir = anuga_dir+'outputs'+sep
54output_run_time_dir = anuga_dir+'outputs'+sep+run_time+dir_comment+sep
55output_run_time_dir_name = output_run_time_dir + sww_name  #Used by post processing
56
57#gauges
58gauge_name = 'gauge_location.csv'
59gauges_dir = home+sep+state+sep+scenario+sep+'anuga'+sep+'gauges'+sep
60gauges_dir_name = gauges_dir + gauge_name
61
62
63###############################
64# Interior region definitions
65###############################
66
67#Initial bounding polygon for data clipping
68#poly_all = read_polygon(polygons_dir+'poly_all.csv')
69#res_poly_all = 100000
70
71   
72###################################################################
73# Clipping regions for export to asc and regions for clipping data
74###################################################################
75
76
77#Geordie Bay extract ascii grid
78xminGeordie = 358000
79xmaxGeordie = 362000
80yminGeordie = 6458500
81ymaxGeordie = 6461000
82
83#Sorrento extract ascii grid
84xminSorrento = 379000
85xmaxSorrento = 382500
86yminSorrento = 6477000
87ymaxSorrento = 6480000
88
89#Fremantle extract ascii grid
90xminFremantle = 376000
91xmaxFremantle = 388000
92yminFremantle = 6449000
93ymaxFremantle = 6461000
94
95#Rockingham extract ascii grid
96xminRockingham = 373500
97xmaxRockingham = 385500
98yminRockingham = 6424000
99ymaxRockingham = 6433000
100
Note: See TracBrowser for help on using the repository browser.