Changeset 5653


Ignore:
Timestamp:
Aug 13, 2008, 5:35:07 PM (16 years ago)
Author:
sexton
Message:

updates for gong study

Location:
anuga_work/development/gong_2008
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_work/development/gong_2008/run_gong_slide.py

    r5648 r5653  
    3737#-------------------------------------------------------------------------------
    3838
    39 # creates copy of code in output dir
    40 copy_code_files(project_slide.outputtimedir,__file__,dirname(project_slide.__file__)+sep+ project_slide.__name__+'.py' )
    41 myid = 0
    42 numprocs = 1
    43 start_screen_catcher(project_slide.outputtimedir, myid, numprocs)
    44 
    45 print 'USER:    ', project_slide.user
    4639
    4740#-------------------------------------------------------------------------------
     
    5043# Convert ASC 2 DEM 2 PTS using source data and store result in source data
    5144#-------------------------------------------------------------------------------
    52 
     45"""
    5346# filenames
    5447on_offshore10_dem_name = project_slide.on_offshore10_dem_name
    5548nsw_dem_name = project_slide.nsw_dem_name
    56 meshname = project_slide.meshname+'.msh'
     49
    5750
    5851# creates DEM from asc data
     
    8881G.export_points_file(project_slide.combined_dem_name + '.pts')
    8982#G.export_points_file(project_slide.combined_dem_name + '.xya')
    90 
     83"""
    9184#----------------------------------------------------------------------------
    9285# Create the triangular mesh based on overall clipping polygon with a tagged
     
    9689
    9790from anuga.pmesh.mesh_interface import create_mesh_from_regions
    98 remainder_res = 100000
    99 local_res = 25000
    100 gong_res = 500
     91meshname = project_slide.meshname+'.msh'
     92remainder_res = 100000*100
     93local_res = 25000*1000
     94gong_res = 500*1000
    10195interior_regions = [[project_slide.poly_local, local_res],
    10296                    [project_slide.poly_gong, gong_res],
     
    171165thickness = t0
    172166alpha = a0
    173 gamma0 = 1.8
     167gamma0 = 1.85
    174168gamma = gamma0
    175169m0 = 1.
     
    190184
    191185# scaling for Double Gaussian function
    192 scale0 = 100.
     186scale0 = 100. # Bridgette's fiddle
    193187scale = scale0 + 10.
    194188
    195 for i in range(10):
     189for i in range(1):
    196190    scale = scale - 10.   
    197     mydir = 'testing_' + str(int(scale))
     191    mydir = project_slide.outputdir+'testing_' + str(int(scale))
    198192    print 'dir_comment', mydir
    199193    start_screen_catcher(mydir, 0, 1)
     194    # creates copy of code in output dir
     195    copy_code_files(mydir,__file__,dirname(project_slide.__file__)+sep+ project_slide.__name__+'.py' )
     196    start_screen_catcher(mydir, 0, 1)
     197
     198    print 'USER:    ', project_slide.user
     199
    200200    tsunami_source = slide_tsunami(length=length,
    201201                                   width=width,
     
    214214                                   kappad=kappad,
    215215                                   scale=scale,
    216                                    domain=domain)
     216                                   domain=domain,
     217                                   verbose=True)
    217218
    218219    print 'hello', scale, tsunami_source.wavelength, tsunami_source.a3D
    219 
     220   
    220221    #-------------------------------------------------------------------------------                                 
    221222    # Setup initial conditions
     
    242243
    243244    print 'finished'
     245
Note: See TracChangeset for help on using the changeset viewer.