Ignore:
Timestamp:
Jul 6, 2007, 2:40:57 PM (18 years ago)
Author:
ole
Message:

Work on shark bay

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_work/production/shark_bay_2007/run_shark_bay.py

    r4577 r4601  
    7474    if myid == 0:
    7575        copy_code_files(kwargs['output_dir'],__file__,
    76                  dirname(project.__file__)+sep+ project.__name__+'.py' )
     76                        dirname(project.__file__)+sep+project.__name__+'.py' )
    7777
    7878        store_parameters(**kwargs)
     
    9797        print 'start create mesh from regions'
    9898       
    99         # FIXME (Ole): What if tags are wrong?
    10099        create_mesh_from_regions(project.bounding_polygon,
    101                                  boundary_tags={'back': [1, 2, 3, 4, 5],
    102                                                 'side': [0, 6],
    103                                                 'ocean': [7, 8, 9, 10, 11]},
     100                                 boundary_tags=project.boundary_tags,
    104101                                 maximum_triangle_area=project.res_bounding_polygon,
    105102                                 interior_regions=project.interior_regions,
     
    185182                        time_thinning=time_thinning,
    186183                        mean_stage=tide,
    187                         use_cache=True,
     184                        use_cache=False,
    188185                        verbose=True)
    189186                   
     
    197194    print'set_boundary'
    198195
    199     domain.set_boundary({'back': Br,
    200                          'side': Bd,
    201                          'ocean': Bf})
     196    #domain.set_boundary({'back': Br,
     197    #                     'side': Bd,
     198    #                     'ocean': Bf})
     199    domain.set_boundary({'tide': Bd,
     200                         'ocean': Bf})     
    202201    print'finish set boundary'
    203202
     
    211210        domain.write_time()
    212211        domain.write_boundary_statistics(tags = 'ocean')     
     212
     213
     214    # Reset stage in study area
     215    print 'Reset initial condition in study area'
     216    domain.set_quantity('stage', 0.0,
     217                        polygon=project.poly_tsunami_approach_area)
     218   
    213219
    214220    for t in domain.evolve(yieldstep = kwargs['yieldstep'], finaltime = 21600
Note: See TracChangeset for help on using the changeset viewer.