Ignore:
Timestamp:
Feb 14, 2006, 1:43:12 PM (19 years ago)
Author:
nicholas
Message:

Updated compare_sww.py. Increased distance of rear boundary and changed to dirichlet

File:
1 edited

Legend:

Unmodified
Added
Removed
  • development/momentum_sink/friction_block.py

    r2379 r2395  
    66from coordinate_transforms.geo_reference import Geo_reference
    77
    8 
     8#test = 300
    99def create_mesh(maximum_triangle_area,
    1010                mesh_file=None,
     
    1616    # create a mesh instance of class Mesh
    1717    m = Mesh()
    18 
     18   
     19    #print "test", test 
    1920    # Boundary of problem
    2021    WidtH = 200 # width of boudary in metres
     
    2829    #Boundary
    2930    dict = {}
    30     dict['points'] = [[0,0],[0.2*WidtH,0],[1.2*WidtH,0],[3.5*WidtH,0],[3.5*WidtH,WidtH] \
     31    dict['points'] = [[0,0],[0.2*WidtH,0],[1.2*WidtH,0],[5*WidtH,0],[5*WidtH,WidtH] \
    3132                      ,[1.2*WidtH,WidtH],[0.2*WidtH,WidtH],[0,WidtH]]
    3233   
     
    3738                            'wall',                           
    3839                            'wall',
    39                             'wall',
     40                            'back',
    4041                            'wall',
    4142                            'wall',
     
    5051    m.generate_mesh(maximum_triangle_area=maximum_triangle_area)
    5152    triangle_count = m.get_triangle_count()
     53 
     54
    5255   
    5356    if mesh_file is None:   
    54         return m, triangle_count
     57        return m, triangle_count, Width
    5558    else:
    5659        if triangles_in_name is True:
Note: See TracChangeset for help on using the changeset viewer.