Changeset 3716


Ignore:
Timestamp:
Oct 9, 2006, 4:53:38 PM (18 years ago)
Author:
ole
Message:

Ongoing work on run_okushiri and karratha_2006

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • anuga_validation/okushiri_2005/run_okushiri.py

    r3707 r3716  
    3939    domain = Domain(points, vertices, boundary)
    4040
    41 domain.set_name('lwru2')
     41domain.set_name('okushiri_old_limiters')
    4242domain.set_default_order(2)
    4343domain.set_minimum_storable_height(0.001)
     44
     45# Set old (pre Sep 2006) defaults for limiters
     46domain.beta_w      = 0.9
     47domain.beta_w_dry  = 0.9
     48domain.beta_uh     = 0.9
     49domain.beta_uh_dry = 0.9
     50domain.beta_vh     = 0.9
     51domain.beta_vh_dry = 0.9
     52
    4453domain.check_integrity()
    4554print domain.statistics()
  • anuga_work/production/karratha_2006/project.py

    r3669 r3716  
    7474
    7575
    76 bounding_polygon, zone = convert_points_from_latlon_to_utm([p0, p1, p2, p3, p4, p5, p6, p7, p8])
     76bounding_polygon, zone =\
     77                  convert_points_from_latlon_to_utm([p0, p1, p2, p3, p4,
     78                                                     p5, p6, p7, p8])
    7779refzone = zone
    7880
    7981
    80 #Interior regions -  NOT CONVERTED YET TO UTM
     82#Interior regions
    8183karratha_south = degminsec2decimal_degrees(-20,44,0)
    8284karratha_north = degminsec2decimal_degrees(-20,42,0)
     
    8991k3 = [karratha_north, karratha_west]   
    9092
    91 karratha_polygon = [k0, k1, k2, k3]
     93karratha_polygon, zone = convert_points_from_latlon_to_utm([k0, k1, k2, k3])
     94assert zone == refzone
    9295
    9396
     
    103106d3 = [dampier_north, dampier_west]   
    104107
    105 dampier_polygon = [d0, d1, d2, d3]
     108dampier_polygon, zone = convert_points_from_latlon_to_utm([d0, d1, d2, d3])
     109assert zone == refzone
    106110
    107111
     
    117121d3 = [refinery_north, refinery_west]   
    118122
    119 refinery_polygon = [d0, d1, d2, d3]
     123refinery_polygon, zone = convert_points_from_latlon_to_utm([d0, d1, d2, d3])
     124assert zone == refzone
    120125
    121126
     
    133138d3 = [point_north, point_west]   
    134139
    135 point_polygon = [d0, d1, d2, d3]
     140point_polygon, zone = convert_points_from_latlon_to_utm([d0, d1, d2, d3])
     141assert zone == refzone
    136142
    137143
     
    146152                degminsec2decimal_degrees(116,46,17)]
    147153
    148 neil1_polygon = [neil1_point1, neil1_point2, neil1_point3, neil1_point4]
     154neil1_polygon, zone = convert_points_from_latlon_to_utm([neil1_point1,
     155                                                         neil1_point2,
     156                                                         neil1_point3,
     157                                                         neil1_point4])
     158assert zone == refzone
     159
    149160
    150161
     
    159170                degminsec2decimal_degrees(116,43,9)]
    160171
    161 neil2_polygon = [neil2_point1, neil2_point2, neil2_point3, neil2_point4]
     172neil2_polygon, zone = convert_points_from_latlon_to_utm([neil2_point1,
     173                                                         neil2_point2,
     174                                                         neil2_point3,
     175                                                         neil2_point4])
     176assert zone == refzone
     177
    162178
    163179
     
    174190                degminsec2decimal_degrees(116,46,17)]
    175191
    176 wb_polygon = [wb_point1, wb_point2, wb_point3, wb_point4]
     192wb_polygon, zone = convert_points_from_latlon_to_utm([wb_point1, wb_point2,
     193                                                      wb_point3, wb_point4])
     194assert zone == refzone
     195
    177196
    178197
     
    189208                degminsec2decimal_degrees(116,42,50)]
    190209
    191 lwb_polygon = [lwb_point1, lwb_point2, lwb_point3, lwb_point4]
    192 
    193 
    194 
     210lwb_polygon, zone = convert_points_from_latlon_to_utm([lwb_point1, lwb_point2,
     211                                                       lwb_point3, lwb_point4])
     212                                                     
     213assert zone == refzone
     214
     215
     216
     217
  • anuga_work/production/karratha_2006/run_karratha.py

    r3713 r3716  
    6767
    6868
     69interior_regions = [#[project.karratha_polygon, 25000],
     70                    #[project.dampier_polygon, 2000],
     71                    #[project.refinery_polygon, 2000],
     72                    #[project.point_polygon, 2000]]
     73                    [project.neil1_polygon, 4000],
     74                    [project.neil2_polygon, 64000]]
     75
     76
     77
    6978print 'start create mesh from regions'
    70 from caching import cache
    7179meshname = project.meshname + '.msh'
    72 _ = cache(create_mesh_from_regions,
    73           project.bounding_polygon,
    74           {'boundary_tags': {'back': [7, 8], 'side': [0, 6],
    75                              'ocean': [1, 2, 3, 4, 5]},
    76            'maximum_triangle_area': 200000,
    77            'filename': meshname},
    78           verbose = True,
    79           evaluate = False)
    80 
     80create_mesh_from_regions(project.bounding_polygon,
     81                         boundary_tags={'back': [7, 8], 'side': [0, 6],
     82                                        'ocean': [1, 2, 3, 4, 5]},
     83                         maximum_triangle_area=200000,
     84                         filename=meshname,
     85                         use_cache=True,
     86                         verbose=True)
    8187
    8288#-------------------------------------------------------------------------
    8389# Setup computational domain
    8490#-------------------------------------------------------------------------
    85 domain = Domain(meshname, use_cache = True, verbose = True)
     91domain = Domain(meshname, use_cache=True, verbose=True)
    8692print domain.statistics()
    8793domain.set_name(project.basename)
Note: See TracChangeset for help on using the changeset viewer.