Changeset 1673


Ignore:
Timestamp:
Aug 2, 2005, 6:03:06 PM (19 years ago)
Author:
ole
Message:

Made bed_w_file_boundary.py use new file_boundary

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/ga/storm_surge/pyvolution/bed_w_file_boundary.py

    r773 r1673  
    4242
    4343finaltime = 100
    44 filename = 'bed_w_boundary.bdry'
    45 fid = open(filename, 'w')
     44filename = 'bed_w_boundary'
     45fid = open(filename + '.txt', 'w')
    4646start = time.mktime(time.strptime('2000', '%Y'))
    4747dt = 5  #Five second intervals
     
    5656
    5757
     58#Convert ASCII file to NetCDF (Which is what we really like!)
     59from data_manager import timefile2swww       
     60timefile2swww(filename, quantity_names = domain.conserved_quantities)
     61
    5862
    5963Br = Reflective_boundary(domain)
     
    6266                   f=lambda t: [(10*sin(t*0.1*pi)), 0.0, 0.0])
    6367
    64 Bf = File_boundary(filename, domain)
     68Bf = File_boundary(filename + '.sww', domain)
    6569
    6670#domain.set_boundary({'left': Bw, 'right': Br, 'top': Br, 'bottom': Br})
Note: See TracChangeset for help on using the changeset viewer.