source: development/momentum_sink/project.py @ 2664

Last change on this file since 2664 was 2664, checked in by nicholas, 19 years ago

CCS.py still produces sudden jumps in friction values, 2nd normal test or implementation of it needs to be revised.

File size: 1.0 KB
Line 
1"""Common filenames and locations for topographic data, meshes and outputs.
2"""
3
4
5from os import sep
6from os import environ
7from os.path import expanduser
8import sys
9
10#Making assumptions about the location of scenario data
11# Assumes the INUNDATIONHOME environ variable exists
12
13scenario_dir_name = 'momentum_sink_2005'
14basename = 'buildings'
15
16if sys.platform == 'win32':
17    home = environ["INUNDATIONHOME"]     #Sandpit's parent dir
18else:   
19    home = expanduser('~')
20
21
22#Derive subdirectories and filenames
23meshdir = home+sep+scenario_dir_name+sep+'meshes'+sep
24outputdir = home+sep+scenario_dir_name+sep+'output'+sep
25building_dir = home+sep+scenario_dir_name+sep+'output'+sep
26friction_dir = home+sep+scenario_dir_name+sep+'output'+sep
27meshname = meshdir + basename + '.tsh'
28outputname = outputdir + basename  + '.sww' #Used by post processing
29
30#-------------------------------------------------------------
31if __name__ == "__main__":
32    print "mesh_elevname",mesh_elevname
33    update_names(999)
34    print "mesh_elevname",mesh_elevname
Note: See TracBrowser for help on using the repository browser.