Changeset 2400


Ignore:
Timestamp:
Feb 14, 2006, 3:21:23 PM (19 years ago)
Author:
sexton
Message:

tidying up script

File:
1 edited

Legend:

Unmodified
Added
Removed
  • production/sydney_2006/run_sydney_smf.py

    r2353 r2400  
    8989            verbose = True)
    9090
    91 #Add elevation data to the mesh - this is in place of set_quantity
    92 #mesh_elevname = 'elevation.msh'   
    93 #cache(fit_to_mesh_file,(meshname, project.combineddemname + '.pts',
    94 #                        mesh_elevname, DEFAULT_ALPHA),
    95 #      {'verbose': True, 'expand_search': True, 'precrop': True},
    96 #      dependencies = [meshname],
    97 #      #evaluate = True,   
    98 #      verbose = False)
    99 #meshname = mesh_elevname
    100 
    10191# Setup domain
    10292domain = cache(pmesh_to_domain_instance, (meshname, Domain),
     
    10494               verbose = True)
    10595
    106 # This section replaced with fit_to_mesh_file above
     96# Bring in elevation data
    10797domain.set_quantity('elevation',
    10898                     filename = project.combineddemname + '.pts',
    109 #                     filename = project.finedemname + '.pts',
    11099                     use_cache = True,
    111100                     verbose = True)
    112 
    113          
    114        
     101 
    115102print 'Number of triangles = ', len(domain)
    116103print 'The extent is ', domain.get_extent()
     
    121108domain.quantities_to_be_stored = ['stage', 'xmomentum', 'ymomentum']
    122109
    123 # slump parameters, wid=len
    124 len = 30000.0
    125 dep = 400.0
    126 #thk = 120.0 for scenario 1 and 176 for scenario 2 rang 0.2-0.44 of depth
    127 thk = 0.44*dep
    128 rad = 3330
    129 dp = 0.23
    130 th = 6
    131 alpha = 0.0
    132 #x0 = project.x0 # slump origin
    133 #y0 = project.y0
    134 
    135 xllcorner = domain.geo_reference.get_xllcorner()
    136 yllcorner = domain.geo_reference.get_yllcorner()
    137 
    138 x0 = project.slump_origin[0] - xllcorner  # slump origin (relative)
    139 y0 = project.slump_origin[1] - yllcorner
    140 
    141110# Setup Initial conditions
    142 t = slump_tsunami(length=len, depth=dep, slope=th, thickness=thk, \
    143                   radius=rad, dphi=dp, x0=x0, y0=y0, alpha=alpha)
     111t = slump_tsunami(length=30000.0,
     112                  depth=400.0,
     113                  slope=6.0,
     114                  thickness=176.0,
     115                  radius=3330,
     116                  dphi=0.23,
     117                  x0=project.slump_origin[0],
     118                  y0=project.slump_origin[1],
     119                  alpha=0.0,
     120                  domain=domain)
    144121domain.set_quantity('stage', t)
    145122domain.set_quantity('friction', 0)
Note: See TracChangeset for help on using the changeset viewer.