Changeset 1707


Ignore:
Timestamp:
Aug 11, 2005, 2:49:45 PM (19 years ago)
Author:
ole
Message:
 
Location:
inundation/ga/storm_surge/validation/LWRU2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • inundation/ga/storm_surge/validation/LWRU2/create_mesh.py

    r1705 r1707  
    7575    m.addVertsSegs(dict)
    7676
     77
     78
     79    #Localised refined area for gulleys
     80    dict = {}
     81    dict['points'] = [ [4.5, 1.8],
     82                       [5.0, 1.8],
     83                       [5.0, 2.5],
     84                       [4.5, 2.5] ]                       
     85                       
     86    dict['segments'] = [[0,1], [1,2], [2,3], [3,0]]
     87    dict['segment_tags'] = ['', '', '', '']
     88    m.addVertsSegs(dict)   
     89
    7790   
    7891    base_resolution = 1
     
    8497    mid.setMaxArea(0.001*base_resolution)
    8598   
     99
    86100    inner = m.addRegionEN(point_mr2[0]+1, ybottom+1)
    87     inner.setMaxArea(0.00001*base_resolution)
     101    inner.setMaxArea(0.0001*base_resolution)
     102
     103    gulleys = m.addRegionEN(dict['points'][0]+0.1, dict['points'][1]+0.1)
     104    gulleys.setMaxArea(0.00001*base_resolution)   
     105   
    88106   
    89107    m.generateMesh('pzq28.0za1000000a')
  • inundation/ga/storm_surge/validation/LWRU2/lwru2.py

    r1704 r1707  
    8181
    8282try:
    83     raise Exception
     83    #raise Exception
    8484    fid = open(picklefile)
    8585    print 'Read pickled domain'
     
    130130                                                  points,
    131131                                                  attributes['elevation'],
    132                                                   alpha = 0,
     132                                                  alpha = 0.0001,
    133133                                                  verbose=True)
    134134
     
    159159
    160160#Set boundary conditions
    161 domain.set_boundary({'left': Bts, 'right': Br, 'bottom': Br, 'top': Br})
     161#domain.set_boundary({'left': Bts, 'right': Br, 'bottom': Br, 'top': Br})
     162domain.set_boundary({'wave': Bts, 'wall': Br})
    162163
    163164#Evolve
    164165import time
    165166t0 = time.time()
    166 domain.visualise = True
     167#domain.visualise = True
    167168
    168169for t in domain.evolve(yieldstep = 0.05, finaltime = 22.5):
Note: See TracChangeset for help on using the changeset viewer.