1 | """Validation of the AnuGA implementation of the shallow water wave equation. |
---|
2 | |
---|
3 | This script sets up Okushiri Island benchmark as published at the |
---|
4 | |
---|
5 | THE THIRD INTERNATIONAL WORKSHOP ON LONG-WAVE RUNUP MODELS |
---|
6 | June 17-18 2004 |
---|
7 | Wrigley Marine Science Center |
---|
8 | Catalina Island, California |
---|
9 | http://www.cee.cornell.edu/longwave/ |
---|
10 | |
---|
11 | |
---|
12 | The validation data was downloaded and made available in this directory |
---|
13 | for convenience but the original data is available at |
---|
14 | http://www.cee.cornell.edu/longwave/index.cfm?page=benchmark&problem=2 |
---|
15 | where a detailed description of the problem is also available. |
---|
16 | |
---|
17 | |
---|
18 | Run create_okushiri.py to process the boundary condition and build a the |
---|
19 | mesh before running this script. |
---|
20 | |
---|
21 | """ |
---|
22 | |
---|
23 | # Module imports |
---|
24 | from anuga.shallow_water import Domain |
---|
25 | from anuga.shallow_water import Reflective_boundary |
---|
26 | from anuga.shallow_water import Transmissive_Momentum_Set_Stage_boundary |
---|
27 | from anuga.abstract_2d_finite_volumes.util import file_function |
---|
28 | from anuga.fit_interpolate.fit import fit_to_mesh_file |
---|
29 | |
---|
30 | import project |
---|
31 | |
---|
32 | |
---|
33 | #------------------------- |
---|
34 | # Create Domain from mesh |
---|
35 | #------------------------- |
---|
36 | |
---|
37 | import time |
---|
38 | t0 = time.time() |
---|
39 | |
---|
40 | fit_to_mesh_file(project.mesh_filename, project.bathymetry_filename, |
---|
41 | project.mesh_filename_elevation, |
---|
42 | alpha=0.02, |
---|
43 | verbose=True) |
---|
44 | |
---|
45 | print 'That took %.2f seconds' %(time.time()-t0) |
---|