Changeset 2433


Ignore:
Timestamp:
Feb 21, 2006, 5:27:25 PM (18 years ago)
Author:
ole
Message:

Coarsened okushiri mesh for use with stochastic study

Location:
development/stochastic_study
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • development/stochastic_study/create_mesh.py

    r2425 r2433  
    112112
    113113   
    114 #
    115    
     114    #res_1
     115    #base_resolution = 1
     116    #ocean = m.addRegionEN(xleft+.1, ybottom+.1)
     117    #ocean.setMaxArea(0.1*base_resolution)
     118    #mid = m.addRegionEN(point_mbottom[0]+.1, ybottom+.1)
     119    #mid.setMaxArea(0.0005*base_resolution)   
     120    #inner = m.addRegionEN(island_3[0]+.1, island_3[1]+.1)
     121    #inner.setMaxArea(0.00007*base_resolution)
     122
     123    #res_2 (try to improve by adding gulleys back in at a coarser res but coarsen inner and mid - this was OK) 
     124    #base_resolution = 1
     125    #ocean = m.addRegionEN(xleft+.1, ybottom+.1)
     126    #ocean.setMaxArea(0.1*base_resolution)
     127    #mid = m.addRegionEN(point_mbottom[0]+.1, ybottom+.1)
     128    #mid.setMaxArea(0.001*base_resolution)   
     129    #inner = m.addRegionEN(island_3[0]+.1, island_3[1]+.1)
     130    #inner.setMaxArea(0.0001*base_resolution)
     131    #gulleys = m.addRegionEN(p0[0]+0.1, p0[1]+0.1)
     132    ##gulleys.setMaxArea(0.00002*base_resolution)
     133    #gulleys.setMaxArea(0.0005*base_resolution)           
     134
     135    #res_3 (Coarsen a bit more: mid and inner - shoulders got rounded. Lost one reflection) 
     136    #base_resolution = 1
     137    #ocean = m.addRegionEN(xleft+.1, ybottom+.1)
     138    #ocean.setMaxArea(0.1*base_resolution)
     139    #mid = m.addRegionEN(point_mbottom[0]+.1, ybottom+.1)
     140    #mid.setMaxArea(0.01*base_resolution)   
     141    #inner = m.addRegionEN(island_3[0]+.1, island_3[1]+.1)
     142    #inner.setMaxArea(0.0002*base_resolution)
     143    #gulleys = m.addRegionEN(p0[0]+0.1, p0[1]+0.1)
     144    #gulleys.setMaxArea(0.0005*base_resolution)           
     145
     146    #res_4 (Refined inner again - still rounded. Need mid to be finer) 
     147    #base_resolution = 1
     148    #ocean = m.addRegionEN(xleft+.1, ybottom+.1)
     149    #ocean.setMaxArea(0.1*base_resolution)
     150    #mid = m.addRegionEN(point_mbottom[0]+.1, ybottom+.1)
     151    #mid.setMaxArea(0.01*base_resolution)   
     152    #inner = m.addRegionEN(island_3[0]+.1, island_3[1]+.1)
     153    #inner.setMaxArea(0.0001*base_resolution)
     154    #gulleys = m.addRegionEN(p0[0]+0.1, p0[1]+0.1)
     155    #gulleys.setMaxArea(0.0005*base_resolution)
     156
     157    #res_5 (Refined mid again - coarsened inner 5 times - this almost OK)
     158    #base_resolution = 1
     159    #ocean = m.addRegionEN(xleft+.1, ybottom+.1)
     160    #ocean.setMaxArea(0.1*base_resolution)
     161    #mid = m.addRegionEN(point_mbottom[0]+.1, ybottom+.1)
     162    #mid.setMaxArea(0.001*base_resolution)   
     163    #inner = m.addRegionEN(island_3[0]+.1, island_3[1]+.1)
     164    #inner.setMaxArea(0.0005*base_resolution)
     165    #gulleys = m.addRegionEN(p0[0]+0.1, p0[1]+0.1)
     166    #gulleys.setMaxArea(0.0005*base_resolution)
     167
     168    #res_6 (Like 5 but with inner a little finer, ocean and mid a bit coarser -  no worse than 5)
     169    #base_resolution = 1
     170    #ocean = m.addRegionEN(xleft+.1, ybottom+.1)
     171    #ocean.setMaxArea(0.2*base_resolution)
     172    #mid = m.addRegionEN(point_mbottom[0]+.1, ybottom+.1)
     173    #mid.setMaxArea(0.002*base_resolution)   
     174    #inner = m.addRegionEN(island_3[0]+.1, island_3[1]+.1)
     175    #inner.setMaxArea(0.0004*base_resolution)
     176    #gulleys = m.addRegionEN(p0[0]+0.1, p0[1]+0.1)
     177    #gulleys.setMaxArea(0.0005*base_resolution)
     178
     179    #res_7 (Like 6 but with everything coarsened a tad -
     180    #a bit smoothed but still OK)
    116181    base_resolution = 1
    117     base_resolution = 10   
     182    ocean = m.addRegionEN(xleft+.1, ybottom+.1)
     183    ocean.setMaxArea(0.3*base_resolution)
     184    mid = m.addRegionEN(point_mbottom[0]+.1, ybottom+.1)
     185    mid.setMaxArea(0.003*base_resolution)   
     186    inner = m.addRegionEN(island_3[0]+.1, island_3[1]+.1)
     187    inner.setMaxArea(0.0007*base_resolution)
     188    gulleys = m.addRegionEN(p0[0]+0.1, p0[1]+0.1)
     189    gulleys.setMaxArea(0.0007*base_resolution)                       
    118190
    119     ocean = m.addRegionEN(xleft+.1, ybottom+.1)
    120     ocean.setMaxArea(0.1*base_resolution)
    121 
    122     mid = m.addRegionEN(point_mbottom[0]+.1, ybottom+.1)
    123     mid.setMaxArea(0.0005*base_resolution)
    124 
    125     inner = m.addRegionEN(island_3[0]+.1, island_3[1]+.1)
    126     inner.setMaxArea(0.00007*base_resolution)
    127 
    128 
    129     #gulleys = m.addRegionEN(p0[0]+0.1, p0[1]+0.1)
    130     #gulleys.setMaxArea(0.00002*base_resolution)   
    131    
    132191   
    133192    m.generateMesh('pzq28.0za1000000a')
  • development/stochastic_study/run_model.py

    r2424 r2433  
    3535
    3636
    37 #------------------------------------------------------------------------------
    38 # Preparation of topographic data:
    39 # Convert txt file to pts NetCDF
    40 #------------------------------------------------------------------------------
    41 xya2pts(project.bathymetry_filename, verbose = True,
    42         z_func = lambda z: -z)
    43 
    44 
    4537#-----------------------------------------------------------------------------
    4638# Setup computational domain
     
    6759domain.set_quantity('elevation',
    6860                    filename = project.bathymetry_filename[:-4] + '.pts',
    69                     alpha = 0.0001,
     61                    alpha = 0.001,
    7062                    verbose = True,
    7163                    use_cache = True)
Note: See TracChangeset for help on using the changeset viewer.