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 | |
---|
29 | import project |
---|
30 | |
---|
31 | |
---|
32 | #------------------------- |
---|
33 | # Create Domain from mesh |
---|
34 | #------------------------- |
---|
35 | domain = Domain(project.mesh_filename, use_cache=False, verbose=False) |
---|
36 | print domain.statistics() |
---|
37 | |
---|
38 | |
---|
39 | #------------------------- |
---|
40 | # Initial Conditions |
---|
41 | #------------------------- |
---|
42 | domain.set_quantity('elevation', |
---|
43 | filename=project.bathymetry_filename, |
---|
44 | alpha=0.02, |
---|
45 | verbose=True, |
---|
46 | use_cache=True) |
---|
47 | |
---|
48 | print 'Try to read in via cache' |
---|
49 | |
---|
50 | domain.set_quantity('elevation', |
---|
51 | filename=project.bathymetry_filename, |
---|
52 | alpha=0.02, |
---|
53 | verbose=True, |
---|
54 | use_cache=True) |
---|