Ignore:
Timestamp:
Jun 21, 2006, 9:31:57 AM (19 years ago)
Author:
sexton
Message:

MOST and ANUGA comparisons and updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • documentation/user_manual/examples/runsydney.py

    r3150 r3190  
    5757interior_regions = [[project.northern_polygon, interior_res],
    5858                    [project.harbour_polygon, interior_res],
    59                     [project.southern_polygon, interior_res]]
     59                    [project.southern_polygon, interior_res],
     60                    [project.manly_polygon, interior_res],
     61                    [project.top_polygon, interior_res]]
    6062
    6163
    6264create_mesh_from_regions(project.demopoly,
    6365                         boundary_tags= {'oceannorth': [0],
    64                                          'onshorewest': [1],
    65                                          'harbournorth': [2],
    66                                          'harbourwest': [3],
    67                                          'harboursouth': [4],
    68                                          'oceansouth': [5],
    69                                          'oceaneast': [6]},
     66                                         'onshorenorth1': [1],
     67                                         'onshorenorthwest1': [2],
     68                                         'onshorenorthwest2': [3],
     69                                         'onshorenorth2': [4],
     70                                         'onshorewest': [5],
     71                                         'onshoresouth': [6],
     72                                         'oceansouth': [7],
     73                                         'oceaneast': [8]},
    7074                         maximum_triangle_area=100000,
    7175                         filename=meshname,           
     
    115119                    verbose = True)
    116120
    117 
    118121#------------------------------------------------------------------------------
    119122# Setup boundary conditions (all Dirichlet)
     
    123126
    124127Bd = Dirichlet_boundary([0.0,0.0,0.0])
    125 domain.set_boundary( {'oceannorth': Bd, 'onshorewest': Bd,
    126                       'harbournorth': Bd, 'harbourwest': Bd,
    127                       'harboursouth': Bd, 'oceansouth': Bd,
    128                       'oceaneast': Bd})
    129 
     128domain.set_boundary( {'oceannorth': Bd,
     129                      'onshorenorth1': Bd,
     130                      'onshorenorthwest1': Bd,
     131                      'onshorenorthwest2': Bd,
     132                      'onshorenorth2': Bd,
     133                      'onshorewest': Bd,
     134                      'onshoresouth': Bd,
     135                      'oceansouth': Bd,
     136                      'oceaneast': Bd} )
    130137
    131138#------------------------------------------------------------------------------
     
    135142import time
    136143t0 = time.time()
    137 tend = 7200.0
    138 print 'Simulate to time = %d secs' %tend
    139144
    140 for t in domain.evolve(yieldstep = 60, duration = tend):
     145for t in domain.evolve(yieldstep = 60, finaltime = 7200):
    141146    print domain.timestepping_statistics()
    142147    print domain.boundary_statistics(tags = 'oceaneast')   
Note: See TracChangeset for help on using the changeset viewer.