Ignore:
Timestamp:
Oct 11, 2006, 4:45:01 PM (18 years ago)
Author:
ole
Message:

Added channel examples to user manual

File:
1 moved

Legend:

Unmodified
Added
Removed
  • anuga_core/documentation/user_manual/examples/channel3.py

    r3753 r3754  
    1919length = 40.
    2020width = 5.
    21 dx = dy = 1           # Resolution: Length of subdivisions on both axes
    22 #dx = dy = .1           # Resolution: Length of subdivisions on both axes
     21#dx = dy = 1           # Resolution: Length of subdivisions on both axes
     22dx = dy = .1           # Resolution: Length of subdivisions on both axes
    2323
    2424points, vertices, boundary = rectangular_cross(int(length/dx), int(width/dy),
     
    7878
    7979
     80    if domain.get_quantity('stage').\
     81           get_values(interpolation_points=[[10, 2.5]]) > 0:       
     82        print 'Stage > 0: Changing to outflow boundary'
     83        domain.modify_boundary({'right': Bo})
Note: See TracChangeset for help on using the changeset viewer.