Ignore:
Timestamp:
Nov 3, 2006, 5:15:13 PM (18 years ago)
Author:
ole
Message:

Okushiri demo

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_validation/okushiri_2005/create_okushiri.py

    r3913 r3915  
    153153
    154154    # Island area and drawdown region (original)
     155    #island_0 = [xleft + 2*(xright-xleft)/3+1.2, ytop-0.5]
     156    #island_1 = [xleft + 2*(xright-xleft)/3+0.5, ybottom + 2*(ytop-ybottom)/3]
     157    #island_2 = [xleft + (xright-xleft)/2+0.3, ybottom + 2*(ytop-ybottom)/3-0.3]
     158    #island_3 = [xleft + (xright-xleft)/2+0.3, ybottom + (ytop-ybottom)/3+0.3]
     159    #island_4 = [xleft + 2*(xright-xleft)/3+0.4, ybottom + (ytop-ybottom)/3-0.3]
     160    #island_5 = [xleft + 2*(xright-xleft)/3+1.2, ybottom+0.2]
     161    #island_6 = [xl-.01, yb]  #OK
     162    #island_7 = [xl-.01, yt]  #OK     
     163
     164
     165    # Island area and drawdown region
    155166    island_0 = [xleft + 2*(xright-xleft)/3+1.2, ytop-0.5]
    156167    island_1 = [xleft + 2*(xright-xleft)/3+0.5, ybottom + 2*(ytop-ybottom)/3]
    157     island_2 = [xleft + (xright-xleft)/2+0.3, ybottom + 2*(ytop-ybottom)/3-0.3]
    158     island_3 = [xleft + (xright-xleft)/2+0.3, ybottom + (ytop-ybottom)/3+0.3]
    159     island_4 = [xleft + 2*(xright-xleft)/3+0.4, ybottom + (ytop-ybottom)/3-0.3]
    160     island_5 = [xleft + 2*(xright-xleft)/3+1.2, ybottom+0.2]
    161     island_6 = [xl-.01, yb]  #OK
    162     island_7 = [xl-.01, yt]  #OK     
    163 
    164 
    165     # Island area and drawdown region
    166     #island_0 = [xleft + 2*(xright-xleft)/3+1.2, ytop-0.5]
    167     #island_1 = [xleft + 2*(xright-xleft)/3+0.5, ybottom + 2*(ytop-ybottom)/3]
    168     #island_2 = [xleft + (xright-xleft)/2+0.4, ybottom + 2*(ytop-ybottom)/3-0.3]
    169     #island_3 = [xleft + (xright-xleft)/2+0.4, ybottom + (ytop-ybottom)/3+0.3]
    170     #island_4 = [xleft + 2*(xright-xleft)/3+0.4, ybottom + (ytop-ybottom)/3-0.3]
    171     #island_5 = [xleft + 2*(xright-xleft)/3+1.2, ybottom+0.8]
    172     #island_6 = [xl-.01, yb]  # Keep right edge just off the gulleys
    173     #island_7 = [xl-.01, yt]
     168    island_2 = [xleft + (xright-xleft)/2+0.4, ybottom + 2*(ytop-ybottom)/3-0.3]
     169    island_3 = [xleft + (xright-xleft)/2+0.4, ybottom + (ytop-ybottom)/3+0.3]
     170    island_4 = [xleft + 2*(xright-xleft)/3+0.4, ybottom + (ytop-ybottom)/3-0.3]
     171    island_5 = [xleft + 2*(xright-xleft)/3+1.2, ybottom+0.8]
     172    island_6 = [xl-.01, yb]  # Keep right edge just off the gulleys
     173    island_7 = [xl-.01, yt]
    174174 
    175175    island = [island_0, island_1, island_2,
     
    179179
    180180    # Region spanning half right hand side of domain just inside boundary (org)
    181     rhs_nw = [xleft + (xright-xleft)/3+1, ytop-0.02]
    182     rhs_sw = [xleft + (xright-xleft)/3+1, ybottom+0.02]
    183     rhs_se = [xright-0.02, ybottom+0.02]
    184     rhs_ne = [xright-0.02, ytop-0.02]
     181    #rhs_nw = [xleft + (xright-xleft)/3+1, ytop-0.02]
     182    #rhs_sw = [xleft + (xright-xleft)/3+1, ybottom+0.02]
     183    #rhs_se = [xright-0.02, ybottom+0.02]
     184    #rhs_ne = [xright-0.02, ytop-0.02]
    185185
    186186    # Region spanning half right hand side of domain just inside boundary
    187     #rhs_nw = [xleft + (xright-xleft)/3+1, ytop-1.4]
    188     #rhs_sw = [xleft + (xright-xleft)/3+1, ybottom+0.5]
    189     #rhs_se = [xright-0.1, ybottom+0.2]
    190     #rhs_ne = [xright-0.1, ytop-0.2]       
     187    rhs_nw = [xleft + (xright-xleft)/3+1, ytop-1.4]
     188    rhs_sw = [xleft + (xright-xleft)/3+1, ybottom+0.5]
     189    rhs_se = [xright-0.1, ybottom+0.2]
     190    rhs_ne = [xright-0.1, ytop-0.2]       
    191191
    192192    rhs_region = [rhs_nw, rhs_ne, rhs_se, rhs_sw]
    193 
    194193
    195194   
    196195    # Interior regions and creation of mesh
    197196    interior_regions = [[rhs_region, 0.0005],
    198                         [island, 0.0003*base_resolution],
    199                         [gulleys, 0.00003*base_resolution]]   
     197                        [island, 0.0002*base_resolution],
     198                        [gulleys, 0.00002*base_resolution]]   
    200199
    201200    meshname = project.mesh_filename + '.msh'
     
    206205                                 interior_regions=interior_regions,
    207206                                 filename=project.mesh_filename,
    208                                  use_cache=True,
    209207                                 verbose=True)
    210208
Note: See TracChangeset for help on using the changeset viewer.