Changeset 1734


Ignore:
Timestamp:
Aug 19, 2005, 5:45:54 PM (19 years ago)
Author:
steve
Message:
 
Location:
inundation
Files:
1 deleted
3 edited

Legend:

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

    r1709 r1734  
    1414
    1515    #Basic geometry
    16    
     16
    1717    xleft   = 0
    1818    xright  = 5.448
     
    2020    ytop    = 3.402
    2121
    22     #Outline 
     22    #Outline
    2323    point_sw = [xleft, ybottom]
    2424    point_se = [xright, ybottom]
    25     point_nw = [xleft, ytop]   
     25    point_nw = [xleft, ytop]
    2626    point_ne = [xright, ytop]
    2727
     
    2929    point_ml1 = [xleft + (xright-xleft)/3+1, ytop]
    3030    point_ml2 = [xleft + (xright-xleft)/3+1, ybottom]
    31    
     31
    3232    #Midway points (right)
    3333    point_mr1 = [xleft + 2*(xright-xleft)/3+0.5, ytop]
     
    3737    geo = Geo_reference(xllcorner = xleft,
    3838                        yllcorner = ybottom)
    39    
    40                        
     39
     40
    4141    print "***********************"
    4242    print "geo ref", geo
    4343    print "***********************"
    44    
     44
    4545    m = Mesh(geo_reference=geo)
    4646
     
    5050                      point_ne,
    5151                      point_mr1,
    52                       point_ml1,                     
     52                      point_ml1,
    5353                      point_nw,
    5454                      point_sw,
    55                       point_ml2,                                           
     55                      point_ml2,
    5656                      point_mr2]
    5757
    58    
     58
    5959    dict['segments'] = [[0,1], [1,2], [2,3], [3,4],
    6060                        [4,5], [5,6], [6,7], [7,0], #The outer border
    6161                        [2,7], [3,6]]               #Separators
    62    
     62
    6363    dict['segment_tags'] = ['wall',
    6464                            'wall',
     
    6868                            'wall',
    6969                            'wall',
    70                             'wall',                                 
    71                             '',           #Interior                           
     70                            'wall',
     71                            '',           #Interior
    7272                            '']           #Interior
    7373
    74        
     74
    7575    m.addVertsSegs(dict)
    7676
     
    8787    p2 = [xr, yt]
    8888    p3 = [xl, yt]
    89    
     89
    9090    dict['points'] = [p0, p1, p2, p3]
    9191
    92        
     92
    9393    dict['segments'] = [[0,1], [1,2], [2,3], [3,0]]
    9494    dict['segment_tags'] = ['', '', '', '']
    95     m.addVertsSegs(dict)   
     95    m.addVertsSegs(dict)
    9696
    97    
    98     base_resolution = 100 
     97
     98    base_resolution = 100
    9999
    100100    ocean = m.addRegionEN(xleft+1, ybottom+1)
     
    103103    mid = m.addRegionEN(point_ml2[0]+1, ybottom+1)
    104104    mid.setMaxArea(0.001*base_resolution)
    105    
     105
    106106
    107107    inner = m.addRegionEN(point_mr2[0]+1, ybottom+1)
     
    110110
    111111    gulleys = m.addRegionEN(p0[0]+0.1, p0[1]+0.1)
    112     gulleys.setMaxArea(0.00001*base_resolution)   
    113    
    114    
     112    gulleys.setMaxArea(0.00001*base_resolution)
     113
     114
    115115    m.generateMesh('pzq28.0za1000000a')
    116116
    117117    import filenames
    118118    m.export_mesh_file(filenames.mesh_filename)
    119    
  • inundation/validation/LWRU2/lwru2.py

    r1708 r1734  
    7171            File_boundary, Transmissive_Momentum_Set_Stage_boundary
    7272from pyvolution.mesh_factory import rectangular
    73 from pyvolution.pmesh2domain import pmesh_to_domain_instance 
     73from pyvolution.pmesh2domain import pmesh_to_domain_instance
    7474from Numeric import array, zeros, Float, allclose
    7575import filenames
     
    8181
    8282try:
    83     raise Exception
     83    #raise Exception
    8484    fid = open(picklefile)
    8585    print 'Read pickled domain'
  • inundation/zeus/anuga-workspace.zwi

    r1629 r1734  
    77    <project name="pyvolution">pyvolution.zpi</project>
    88    <project name="steve">steve.zpi</project>
     9    <project name="Validation">Validation.zpi</project>
    910</workspace>
Note: See TracChangeset for help on using the changeset viewer.