Changeset 774 for inundation/ga


Ignore:
Timestamp:
Jan 21, 2005, 2:41:01 PM (20 years ago)
Author:
ole
Message:

Changed quantity name 'level' to 'stage'

Location:
inundation/ga/storm_surge
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • inundation/ga/storm_surge/analytical solutions/Analytical solution_oblique_shock.py

    r634 r774  
    8888#Initial condition
    8989h = 0.5
    90 domain.set_quantity('level', Constant_height(x_slope, h) )
     90domain.set_quantity('stage', Constant_height(x_slope, h) )
    9191
    9292
  • inundation/ga/storm_surge/analytical solutions/Analytical solution_wave_runup.py

    r550 r774  
    115115    return [stage, uh, vh]
    116116
    117 def boundary_level(t):
     117def boundary_stage(t):
    118118    x = -200
    119119    return stage_setup(x,t)
     
    137137
    138138#Set the water depth
    139 def level(x,y):
     139def stage(x,y):
    140140    z = x_slope(x,y)
    141141    n = x.shape[0]
     
    149149    return w   
    150150
    151 domain.set_quantity('level', level)
     151domain.set_quantity('stage', stage)
    152152
    153153
     
    155155#Set up boundary conditions
    156156Br = Reflective_boundary(domain)
    157 Bw = Time_boundary(domain, boundary_level)
     157Bw = Time_boundary(domain, boundary_stage)
    158158domain.set_boundary({'left': Bw, 'external': Br})
    159159
     
    165165for t in domain.evolve(yieldstep = 1., finaltime = 100):
    166166    domain.write_time()
    167     print boundary_level(domain.time)
     167    print boundary_stage(domain.time)
    168168   
    169169print 'That took %.2f seconds' %(time.time()-t0)
  • inundation/ga/storm_surge/analytical solutions/Analytical_solution_MacDonald_import_mesh.py

    r647 r774  
    7575#---------------------------------------------------------
    7676#Decide which quantities are to be stored at each timestep
    77 domain.quantities_to_be_stored = ['level', 'xmomentum', 'ymomentum']
     77domain.quantities_to_be_stored = ['stage', 'xmomentum', 'ymomentum']
    7878
    7979#Reduction operation for get_vertex_values             
     
    9999#Initial condition
    100100domain.set_quantity('elevation', 0.0)
    101 domain.set_quantity('level', 0.2)
     101domain.set_quantity('stage', 0.2)
    102102   
    103103#-----------------
  • inundation/ga/storm_surge/analytical solutions/Analytical_solution_Sampson_import_mesh.py

    r563 r774  
    9292
    9393
    94 #Set the water level
    95 def level(x,y):
     94#Set the water stage
     95def stage(x,y):
    9696    z = x_slope(x,y)
    9797    n = x.shape[0]
     
    105105    return h   
    106106
    107 domain.set_quantity('level', level)
     107domain.set_quantity('stage', stage)
    108108
    109109
  • inundation/ga/storm_surge/analytical solutions/Analytical_solution_Yoon_import_mesh.py

    r556 r774  
    7474domain.set_quantity('elevation', x_slope)
    7575
    76 #Set the initial water level
    77 def level(x,y):
     76#Set the initial water stage
     77def stage(x,y):
    7878    z = x_slope(x,y)
    7979    n = x.shape[0]
     
    8787    return h   
    8888
    89 domain.set_quantity('level', level)
     89domain.set_quantity('stage', stage)
    9090
    9191
  • inundation/ga/storm_surge/analytical solutions/Analytical_solution_contracting_channel_import_mesh.py

    r620 r774  
    4646
    4747#Decide which quantities are to be stored at each timestep
    48 domain.quantities_to_be_stored = ['level', 'xmomentum', 'ymomentum']
     48domain.quantities_to_be_stored = ['stage', 'xmomentum', 'ymomentum']
    4949
    5050#Reduction operation for get_vertex_values             
     
    6363#Initial condition
    6464domain.set_quantity('elevation', 0.0)
    65 domain.set_quantity('level', 0.2)
     65domain.set_quantity('stage', 0.2)
    6666   
    6767
  • inundation/ga/storm_surge/analytical solutions/Hobart.py

    r700 r774  
    5353#Initial condition
    5454#   Throughout
    55 domain.set_quantity('level', 0.)
     55domain.set_quantity('stage', 0.)
    5656
    5757#    Within polygon region
     
    6767
    6868zp = domain.get_quantity('elevation', location='centroids', indexes=indices)
    69 #        Set the level to bed elevation plus depth for all triangle vertices in the polygon region
     69#        Set the stage to bed elevation plus depth for all triangle vertices in the polygon region
    7070
    71 domain.set_quantity('level', zp+depth, location='centroids', indexes=indices)
     71domain.set_quantity('stage', zp+depth, location='centroids', indexes=indices)
    7272
    7373
     
    8080#for i in indices:
    8181#    w[i, :] = z[i, :] + depth
    82 #domain.set_quantity('level', w)
     82#domain.set_quantity('stage', w)
    8383
    8484
     
    9191#---------------------------------------------------------
    9292#Decide which quantities are to be stored at each timestep
    93 domain.quantities_to_be_stored = ['level', 'xmomentum', 'ymomentum']
     93domain.quantities_to_be_stored = ['stage', 'xmomentum', 'ymomentum']
    9494
    9595#----------------------------
  • inundation/ga/storm_surge/analytical solutions/Malpasset_new.py

    r669 r774  
    4949#-----------------
    5050#Initial condition
    51 domain.set_quantity('level', 0.)
     51domain.set_quantity('stage', 0.)
    5252
    5353#-------------------------------------
  • inundation/ga/storm_surge/analytical solutions/Sydney.py

    r696 r774  
    5454domain.set_quantity('elevation', x_slope)
    5555
    56 #Set the initial water level
    57 def level(x,y):
     56#Set the initial water stage
     57def stage(x,y):
    5858    z = x_slope(x,y)
    5959    n = x.shape[0]
     
    6161    return h   
    6262
    63 domain.set_quantity('level', level)
     63domain.set_quantity('stage', stage)
    6464p0 = [[334429.024416, 6251238.11488],[334428.532417, 6251234.42489],
    6565      [334432.468407, 6251233.93289],[334431.730409, 6251238.36088]]
    66 domain.set_quantity('level',Polygon_function([(p0,10000.0)]))
     66domain.set_quantity('stage',Polygon_function([(p0,10000.0)]))
    6767
    6868############
  • inundation/ga/storm_surge/examples/beach.py

    r694 r774  
    113113print 'That took %.2f seconds' %(time.time()-t0)
    114114                     
    115 print 'Set level'                     
    116 domain.set_quantity('level',
     115print 'Set stage'                     
     116domain.set_quantity('stage',
    117117                    Polygon_function( [(water, -1.5),
    118118                    (land, -10)] ))
  • inundation/ga/storm_surge/examples/run_tsh.py

    r718 r774  
    115115    #domain.set_region(Set_region('mound', 'elevation', 100, location='unique vertices'))
    116116    domain.set_region(Add_value_to_region('mound', 'elevation', 100, location='unique vertices', initial_quantity='elevation'))
    117     domain.set_region(Add_value_to_region('reservoir', 'level', 100.0,initial_quantity='elevation'))
     117    domain.set_region(Add_value_to_region('reservoir', 'stage', 100.0,initial_quantity='elevation'))
    118118   
    119119    #print domain.quantities['elevation'].vertex_values
    120     #print domain.quantities['level'].vertex_values
     120    #print domain.quantities['stage'].vertex_values
    121121         
    122122    domain.check_integrity()
Note: See TracChangeset for help on using the changeset viewer.