Ignore:
Timestamp:
Oct 28, 2004, 2:40:44 PM (20 years ago)
Author:
ole
Message:

Fixed friction bug

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/ga/storm_surge/pyvolution/flatbed_compare.py

    r453 r458  
    1414
    1515#Create basic mesh
    16 N = 50
     16N = 10
    1717points, vertices, boundary = rectangular(N, N)
    1818
     
    2828    domain.filename = 'compare_py3'
    2929
     30#domain.visualise = False
    3031domain.smooth = False
    31 domain.default_order = 2
     32domain.default_order = 1
    3233
    3334
    3435print 'Field values'
    3536domain.set_quantity('elevation', 0.0)
    36 domain.set_quantity('friction', 0.0)
     37domain.set_quantity('friction', 1)
    3738
    3839
     
    4647domain.check_integrity()
    4748
     49print domain.quantities['elevation'].centroid_values[:4]
     50print domain.quantities['friction'].centroid_values[:4]
    4851
    4952######################
    5053#Evolution
    51 for t in domain.evolve(yieldstep = 0.01, finaltime = 0.2):
     54for t in domain.evolve(yieldstep = 0.01, finaltime = 0.5):
    5255    domain.write_time()
     56    #print
     57
     58#print domain.quantities['level'].centroid_values
     59#print domain.quantities['xmomentum'].centroid_values
     60#print domain.quantities['ymomentum'].centroid_values   
     61
     62#print 'R'
     63#print domain.quantities['level'].edge_values
     64
     65
Note: See TracChangeset for help on using the changeset viewer.