Changeset 7376


Ignore:
Timestamp:
Aug 14, 2009, 4:57:33 PM (11 years ago)
Author:
ole
Message:

This is a version that stores variable elevation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/documentation/user_manual/demos/channel_variable.py

    r7348 r7376  
    1818length = 24.
    1919width = 5.
    20 dx = dy = 0.05 #.1           # Resolution: Length of subdivisions on both axes
     20dx = dy = 0.2 #.1           # Resolution: Length of subdivisions on both axes
    2121
    2222points, vertices, boundary = rectangular_cross(int(length/dx), int(width/dy),
    2323                                               len1=length, len2=width)
    2424domain = Domain(points, vertices, boundary)
    25 domain.set_name('channel_variable_2')                  # Output name
     25domain.set_name('channel_variable_bed_0.2_newviewer') # Output name
    2626print domain.statistics()
    27 domain.set_quantities_to_be_stored({'elevation': 1, #2,
     27domain.set_quantities_to_be_stored({'elevation': 2,
    2828                                    'stage': 2})
    2929
Note: See TracChangeset for help on using the changeset viewer.