Changeset 991


Ignore:
Timestamp:
Mar 2, 2005, 11:11:30 PM (20 years ago)
Author:
steve
Message:
 
Location:
inundation/ga/storm_surge/pyvolution
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • inundation/ga/storm_surge/pyvolution/config.py

    r907 r991  
    2323# shallow water wave equation
    2424#
    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 ?
    2728#The maximal speed we specify is really related to the max speed
    2829#of surface pertubation
     
    3738
    3839g = 9.8        #Gravity
    39 manning = 0.3 #Manning's friction coefficient
     40manning = 0.3  #Manning's friction coefficient
    4041
    4142
     
    7172
    7273beta_w = 0.9
    73 beta_h = 0.2
     74beta_h = 0.2
     75CFL = 1.0
    7476
    7577
     
    8688
    8789
    88 use_extensions = True   #Try to use C-extensions
     90use_extensions = True    #Try to use C-extensions
    8991#use_extensions = False   #Do not use C-extensions
    9092
  • inundation/ga/storm_surge/pyvolution/domain.py

    r955 r991  
    5151
    5252        #Defaults
    53         from config import max_smallsteps, beta_w, beta_h, epsilon
     53        from config import max_smallsteps, beta_w, beta_h, epsilon, CFL
    5454        self.beta_w = beta_w
    5555        self.beta_h = beta_h       
     
    6464        self.number_of_steps = 0
    6565        self.number_of_first_order_steps = 0       
    66 
     66        self.CFL = CFL
     67       
    6768        #Model time   
    6869        self.time = 0.0
  • inundation/ga/storm_surge/pyvolution/netherlands.py

    r907 r991  
    7575#
    7676
    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
    8578N = 150 #size = 45000
    8679N = 130 #size = 33800
    87 #N = 60
    88 #N = 40
    89 N = 260
    90 #N = 150
    91 N = 264
    92 
    9380N = 600 #Size = 720000
    94 N = 20
    95 #N = 150
    96 N = 110
    97 N = 60
    98 
    99 #N = 140
     81N = 30
    10082
    10183#N = 15
     
    11395
    11496#Output params
    115 domain.smooth = True
     97domain.smooth = False
    11698domain.reduction = min  #Looks a lot better on top of steep slopes
    11799
     
    169151t0 = time.time()
    170152
    171 for t in domain.evolve(yieldstep = 0.01, finaltime = 7.0):
     153for t in domain.evolve(yieldstep = 0.1, finaltime = 7.0):
    172154    domain.write_time()
    173155   
  • inundation/ga/storm_surge/pyvolution/shallow_water_ext.c

    r990 r991  
    781781    for (i=0; i<3; i++) {
    782782      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]; 
    786784      if (n >= 0) {
    787785        hn = ((double*) hc -> data)[n]; //Neighbour's centroid value
  • inundation/ga/storm_surge/pyvolution/test_data_manager.py

    r967 r991  
    693693
    694694       
    695     def test_sww_DSG(self):
     695    def test_sww_extent(self):
    696696        """Not a test, rather a look at the sww format
    697697        """
     
    723723        [xmin, xmax, ymin, ymax, stagemin, stagemax] = \
    724724               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]
    726726        assert allclose(xmin, 0.0)
    727727        assert allclose(xmax, 1.0)
    728728        assert allclose(ymin, 0.0)
    729         assert allclose(ymax, 1.0) 
    730         assert allclose(stagemin, -0.88)
    731         assert allclose(stagemax, 0.12)
     729        assert allclose(ymax, 1.0)
     730        assert allclose(stagemin, -0.85)
     731        assert allclose(stagemax, 0.15)
    732732       
    733733    def test_ferret2sww_nz_origin(self):
Note: See TracChangeset for help on using the changeset viewer.