Changeset 2425


Ignore:
Timestamp:
Feb 17, 2006, 6:42:25 PM (19 years ago)
Author:
ole
Message:

Work on stochastic_study and okushiri_2005

Location:
development
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • development/okushiri_2005/create_mesh.py

    r2271 r2425  
    133133    m.generateMesh('pzq28.0za1000000a')
    134134
    135     import filenames
    136     m.export_mesh_file(filenames.mesh_filename)
     135    import project
     136    m.export_mesh_file(project.mesh_filename)
    137137   
  • development/okushiri_2005/lwru2.py

    r2229 r2425  
    1111
    1212
    13 #use_variable_mesh = True #Use large variable mesh generated by create_mesh.py
    14 use_variable_mesh = False #Use small structured mesh for speed
     13use_variable_mesh = True #Use large variable mesh generated by create_mesh.py
     14#use_variable_mesh = False #Use small structured mesh for speed
    1515
    1616
  • development/stochastic_study/create_mesh.py

    r2424 r2425  
    115115   
    116116    base_resolution = 1
    117     #base_resolution = 10   
     117    base_resolution = 10   
    118118
    119119    ocean = m.addRegionEN(xleft+.1, ybottom+.1)
     
    121121
    122122    mid = m.addRegionEN(point_mbottom[0]+.1, ybottom+.1)
    123     #mid.setMaxArea(0.0005*base_resolution)
    124     mid.setMaxArea(0.005*base_resolution)   
    125    
     123    mid.setMaxArea(0.0005*base_resolution)
    126124
    127125    inner = m.addRegionEN(island_3[0]+.1, island_3[1]+.1)
  • development/stochastic_study/extract_timeseries.py

    r2424 r2425  
    55from os import sep
    66from caching import cache
     7import project
    78
    89sys.path.append('..'+sep+'..'+sep)
     
    2122
    2223#Input wave
    23 filename = 'Benchmark_2_input.tms'
     24filename = 'input_wave.tms'
    2425print 'Reading', filename
    2526from Scientific.IO.NetCDF import NetCDFFile
     
    6061
    6162#Read model output
    62 #filename = 'output.sww'
    63 filename = 'lwru2.sww'
    64 #filename = 'lwru2_.05s.sww'
     63filename = project.basename + '.sww'
    6564
    66 #f = file_function(filename,
    67 #                  quantities = 'stage',
    68 #                  interpolation_points = gauges,
    69 #                  verbose = True)
    70 
    71 f = cache(file_function,filename,
     65f = cache(file_function, filename,
    7266          {'quantities': 'stage',
    7367           'interpolation_points': gauges,
Note: See TracChangeset for help on using the changeset viewer.