Changeset 991
- Timestamp:
- Mar 2, 2005, 11:11:30 PM (20 years ago)
- Location:
- inundation/ga/storm_surge/pyvolution
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/ga/storm_surge/pyvolution/config.py
r907 r991 23 23 # shallow water wave equation 24 24 # 25 #The actual soundspeed can be as high as 1530m 26 #(see http://staff.washington.edu/aganse/public.projects/clustering/clustering.html), but that would only happen with h>225000m in this equation. Why ? 25 #The actual soundspeed can be as high as 1530m/s 26 #(see http://staff.washington.edu/aganse/public.projects/clustering/clustering.html), 27 #but that would only happen with h>225000m in this equation. Why ? 27 28 #The maximal speed we specify is really related to the max speed 28 29 #of surface pertubation … … 37 38 38 39 g = 9.8 #Gravity 39 manning = 0.3 #Manning's friction coefficient40 manning = 0.3 #Manning's friction coefficient 40 41 41 42 … … 71 72 72 73 beta_w = 0.9 73 beta_h = 0.2 74 beta_h = 0.2 75 CFL = 1.0 74 76 75 77 … … 86 88 87 89 88 use_extensions = True #Try to use C-extensions90 use_extensions = True #Try to use C-extensions 89 91 #use_extensions = False #Do not use C-extensions 90 92 -
inundation/ga/storm_surge/pyvolution/domain.py
r955 r991 51 51 52 52 #Defaults 53 from config import max_smallsteps, beta_w, beta_h, epsilon 53 from config import max_smallsteps, beta_w, beta_h, epsilon, CFL 54 54 self.beta_w = beta_w 55 55 self.beta_h = beta_h … … 64 64 self.number_of_steps = 0 65 65 self.number_of_first_order_steps = 0 66 66 self.CFL = CFL 67 67 68 #Model time 68 69 self.time = 0.0 -
inundation/ga/storm_surge/pyvolution/netherlands.py
r907 r991 75 75 # 76 76 77 N = 250 78 #N= 8 79 N = 16 80 #N = 4 81 #N = 102 82 N = 25 83 N = 16 84 N = 60 77 85 78 N = 150 #size = 45000 86 79 N = 130 #size = 33800 87 #N = 6088 #N = 4089 N = 26090 #N = 15091 N = 26492 93 80 N = 600 #Size = 720000 94 N = 20 95 #N = 150 96 N = 110 97 N = 60 98 99 #N = 140 81 N = 30 100 82 101 83 #N = 15 … … 113 95 114 96 #Output params 115 domain.smooth = True97 domain.smooth = False 116 98 domain.reduction = min #Looks a lot better on top of steep slopes 117 99 … … 169 151 t0 = time.time() 170 152 171 for t in domain.evolve(yieldstep = 0. 01, finaltime = 7.0):153 for t in domain.evolve(yieldstep = 0.1, finaltime = 7.0): 172 154 domain.write_time() 173 155 -
inundation/ga/storm_surge/pyvolution/shallow_water_ext.c
r990 r991 781 781 for (i=0; i<3; i++) { 782 782 n = ((long*) neighbours -> data)[k3+i]; 783 // FIXME SR This line should be included to ensure conservation, 784 // but the unit tests give errors at the moment! 785 //((double*) hvbar -> data)[k3+i] = ((double*) hc -> data)[k]; 783 ((double*) hvbar -> data)[k3+i] = ((double*) hc -> data)[k]; 786 784 if (n >= 0) { 787 785 hn = ((double*) hc -> data)[n]; //Neighbour's centroid value -
inundation/ga/storm_surge/pyvolution/test_data_manager.py
r967 r991 693 693 694 694 695 def test_sww_ DSG(self):695 def test_sww_extent(self): 696 696 """Not a test, rather a look at the sww format 697 697 """ … … 723 723 [xmin, xmax, ymin, ymax, stagemin, stagemax] = \ 724 724 extent_sww(file_and_extension_name ) 725 #print "[xmin, xmax, ymin, ymax, stagemin, stagemax ",[xmin, xmax, ymin, ymax, stagemin, stagemax]725 #print "[xmin, xmax, ymin, ymax, stagemin, stagemax]",[xmin, xmax, ymin, ymax, stagemin, stagemax] 726 726 assert allclose(xmin, 0.0) 727 727 assert allclose(xmax, 1.0) 728 728 assert allclose(ymin, 0.0) 729 assert allclose(ymax, 1.0) 730 assert allclose(stagemin, -0.8 8)731 assert allclose(stagemax, 0.1 2)729 assert allclose(ymax, 1.0) 730 assert allclose(stagemin, -0.85) 731 assert allclose(stagemax, 0.15) 732 732 733 733 def test_ferret2sww_nz_origin(self):
Note: See TracChangeset
for help on using the changeset viewer.