"""Stochastic study of the ANUGA implementation of the shallow water wave equation. This script runs the model for one realisation of bathymetry as given in the file bathymetry.txt and outputs a full simulation is \ sww NetCDF format. The left boundary condition is a timeseries defined in NetCDF file: input_wave.tms Note: This scripts needs create_mesh.py to have been run Suresh Kumar and Ole Nielsen 2006 """ #------------------------------------------------------------------------------ # Import necessary modules #------------------------------------------------------------------------------ # Standard modules import os import time import cPickle # Application specific imports import project # Definition of file names and polygons finaltime = 22.5 timestep = 0.05 realisation = 0 for filename in os.listdir(project.working_dir): if filename.startswith(project.basename) and filename.endswith('.pck'): print 'Reading %s' %filename fid = open(project.working_dir + filename) V = cPickle.load(fid) fid.close() print 'V', V[25,:] raw_input()