source: anuga_work/development/stochastic_study/show_realisations.py @ 5599

Last change on this file since 5599 was 2988, checked in by ole, 18 years ago

absolute pathname added

File size: 1.2 KB
Line 
1"""Stochastic study of the ANUGA implementation of the
2shallow water wave equation.
3
4This script runs the model for one realisation of bathymetry as
5given in the file bathymetry.txt and outputs a full simulation is \
6sww NetCDF format.
7
8The left boundary condition is a timeseries defined in
9NetCDF file: input_wave.tms
10
11Note: This scripts needs create_mesh.py to have been run
12
13Suresh Kumar and Ole Nielsen 2006
14"""
15
16
17#------------------------------------------------------------------------------
18# Import necessary modules
19#------------------------------------------------------------------------------
20
21# Standard modules
22import os
23import time
24import cPickle
25
26# Application specific imports
27import project                 # Definition of file names and polygons
28
29
30finaltime = 22.5
31timestep = 0.05
32
33
34realisation = 0
35for filename in os.listdir(project.working_dir):
36    if filename.startswith(project.basename) and filename.endswith('.pck'):
37        print 'Reading %s' %filename
38        fid = open(project.working_dir + filename)
39        V = cPickle.load(fid)
40        fid.close()
41
42        print 'V', V[25,:]
43           
44        raw_input()
Note: See TracBrowser for help on using the repository browser.