Changeset 3825


Ignore:
Timestamp:
Oct 18, 2006, 5:51:41 PM (18 years ago)
Author:
ole
Message:

Work on validation

Location:
anuga_validation/automated_validation_tests/okushiri_tank_validation
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • anuga_validation/automated_validation_tests/okushiri_tank_validation/create_okushiri.py

    r3799 r3825  
    8282    #--------------------------------------------------------------------------
    8383
    84     base_resolution = 1
     84    base_resolution = 10
    8585
    8686    # Basic geometry
     
    137137
    138138    interior_regions = [[gulleys, 0.00002*base_resolution],
    139                         [island, 0.0003*base_resolution]]
     139                        [island, 0.00007*base_resolution]]
    140140   
    141141
     
    149149                                 boundary_tags={'wall': [0, 1, 2, 4, 5],
    150150                                                'wave': [3]},
    151                                  maximum_triangle_area=0.1,
     151                                 maximum_triangle_area=0.1*base_resolution,
    152152                                 interior_regions=interior_regions,
     153                                 filename=project.mesh_filename,
    153154                                 use_cache=True,
    154155                                 verbose=True)
    155156
    156     m.generateMesh('pzq28.0za1000000a') #???
    157    
    158     import project
    159     m.export_mesh_file(project.mesh_filename)
    160 
    161     import sys; sys.exit()
    162 
    163 
    164 
    165     #Localised refined area for gulleys
    166     dict = {}
    167     xl = 4.8
    168     xr = 5.3
    169     yb = 1.6
    170     yt = 2.3
    171     p0 = [xl, yb]
    172     p1 = [xr, yb]
    173     p2 = [xr, yt]
    174     p3 = [xl, yt]
    175    
    176     dict['points'] = [p0, p1, p2, p3]
    177     dict['segments'] = [[0,1], [1,2], [2,3], [3,0]]
    178     dict['segment_tags'] = ['', '', '', '']
    179     m.addVertsSegs(dict)   
    180 
    181     #Island area
    182     island_0 = [xleft + 2*(xright-xleft)/3+1.2, ytop-0.5]
    183     island_1 = [xleft + 2*(xright-xleft)/3+0.5, ybottom + 2*(ytop-ybottom)/3]
    184     island_2 = [xleft + (xright-xleft)/2+0.3, ybottom + 2*(ytop-ybottom)/3-0.3]
    185     island_3 = [xleft + (xright-xleft)/2+0.3, ybottom + (ytop-ybottom)/3+0.3]
    186     island_4 = [xleft + 2*(xright-xleft)/3+0.4, ybottom + (ytop-ybottom)/3-0.3]
    187     island_5 = [xleft + 2*(xright-xleft)/3+1.2, ybottom+0.2]
    188     island_6 = [xl-.01, yb]  #OK
    189     island_7 = [xl-.01, yt]  #OK     
    190    
    191 
    192     dict['points'] = [island_0, island_1, island_2,
    193                       island_3, island_4, island_5,
    194                       island_6, island_7]
    195 
    196                      
    197     dict['segments'] = [[0,1], [1,2], [2,3], [3,4],
    198                         [4,5], [5,6], [6,7], [7,0]]
    199                        
    200     dict['segment_tags'] = ['', '', '', '', '', '', '', '']
    201 
    202 
    203     m.addVertsSegs(dict)   
    204 
    205    
    206 #
    207    
    208     base_resolution = 10
    209 
    210     ocean = m.addRegionEN(xleft+.1, ybottom+.1)
    211     ocean.setMaxArea(0.1*base_resolution)
    212 
    213     mid = m.addRegionEN(point_mbottom[0]+.1, ybottom+.1)
    214     mid.setMaxArea(0.0005*base_resolution)
    215  
    216 
    217     inner = m.addRegionEN(island_3[0]+.1, island_3[1]+.1)
    218     inner.setMaxArea(0.0003*base_resolution)
    219 
    220 
    221     gulleys = m.addRegionEN(p0[0]+0.1, p0[1]+0.1)
    222     gulleys.setMaxArea(0.00002*base_resolution)
    223 
    224 
    225     m.generateMesh('pzq28.0za1000000a')
    226 
    227     import project
    228     m.export_mesh_file(project.mesh_filename)
    229    
  • anuga_validation/automated_validation_tests/okushiri_tank_validation/validate_okushiri.py

    r3799 r3825  
    5353domain.set_maximum_allowed_speed(0) # The default in August 2005
    5454
     55
     56# Set old (pre Sep 2006) defaults for limiters
     57domain.beta_w      = 0.9
     58domain.beta_w_dry  = 0.9
     59domain.beta_uh     = 0.9
     60domain.beta_uh_dry = 0.9
     61domain.beta_vh     = 0.9
     62domain.beta_vh_dry = 0.9
     63
    5564domain.check_integrity()
    5665
     66print domain.statistics()
    5767
    5868#-------------------------
Note: See TracChangeset for help on using the changeset viewer.