Changeset 924


Ignore:
Timestamp:
Feb 18, 2005, 2:52:59 PM (20 years ago)
Author:
duncan
Message:

update

Location:
inundation/ga/storm_surge/examples
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • inundation/ga/storm_surge/examples/run_gong.py

    r898 r924  
    2525
    2626import time
    27 
    28 from config import default_datadir
    2927
    3028######################
     
    6361        file_path, filename = path.split(filename)
    6462        filename, ext = path.splitext(filename)
    65         if domain.smooth is True:
    66             s = 'smooth'
    67         else:
    68             s = 'nonsmooth'       
    69         domain.filename = filename + '_' + s + '_ys'+ str(yieldstep) + \
     63        domain.filename = filename + '_' + '_ys'+ str(yieldstep) + \
    7064                          '_ft' + str(finaltime)
    71         print "Output being written to " + default_datadir + sep + \
     65        print "Output being written to " + domain.get_datadir() + sep + \
    7266              domain.filename + "." + domain.format
    7367
     
    8680
    8781    #Constant inflow
    88     Bd = Dirichlet_boundary(array([10, 0.0, 0.0]))
     82    Bd = Dirichlet_boundary(array([inflow_stage, 0.0, 0.0]))
    8983
    9084    #Time dependent inflow
     
    9488                        (inflow_stage*(sin(2.5*x*pi)+0.7)),0,0]))
    9589
     90    boundary_file = 'kermadec2.sww'
     91
     92    Fb = File_boundary(boundary_file, domain, verbose=True)
    9693
    9794    print 'Available boundary tags are', domain.get_boundary_tags()
     95    print 'The extent is ', domain.get_extent()
    9896
    9997    #Set the ocean...
     
    103101   
    104102    tags = {}
    105     tsunami = Time_boundary(domain=domain,
    106                        f=lambda x: array([(1 + sin(x*pi/4))*\
    107                         (0.15*(sin(2.5*x*pi)+0.7)),0,0]))
     103   
     104    tsunami = Bw
    108105    tags['w1'] = tsunami
    109106    tags['w2'] = tsunami
  • inundation/ga/storm_surge/examples/run_tsh.py

    r885 r924  
    2626import time
    2727
    28 from config import default_datadir
     28#from config import default_datadir
    2929
    3030######################
     
    6969        domain.filename = filename + '_' + s + '_ys'+ str(yieldstep) + \
    7070                          '_ft' + str(finaltime)
    71         print "Output being written to " + default_datadir + sep + \
     71        print "Output being written to " + domain.get_datadir() + sep + \
    7272              domain.filename + "." + domain.format
    7373
Note: See TracChangeset for help on using the changeset viewer.