source: development/momentum_sink/project_friction.py @ 2465

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

Creation of looped friction to auto generate multiple friction blocks. CCS.py created as modified copy of PCS.py ( plots cross section at various times of buildings and friction blocks)

File size: 924 bytes
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 = 'friction_n='
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
25
26meshname = meshdir + basename + '.tsh'
27outputname = outputdir + basename  + '.sww' #Used by post processing
28
29#-------------------------------------------------------------
30if __name__ == "__main__":
31    print "mesh_elevname",mesh_elevname
32    update_names(999)
33    print "mesh_elevname",mesh_elevname
Note: See TracBrowser for help on using the repository browser.