source: inundation/ga/storm_surge/pyvolution/config.py @ 234

Last change on this file since 234 was 234, checked in by ole, 21 years ago

Played with protection against mnimal heights and
balanced limiting. Looks good.
The demo show_balanced_limiters now runs!

File size: 1.9 KB
Line 
1"""Module where global model parameters are set
2"""
3
4epsilon = 1.0e-13
5
6default_boundary_tag = 'exterior'
7
8newstyle = False #Flase meqans that we are equivalent to previous version pyvolution2
9
10
11min_timestep = 1.0e-6 #Should be computed based on geometry
12max_timestep = 1000
13#This is how:
14#Define maximal possible speed in open water v_max, e.g. 500m/s (soundspeed?)
15#Then work out minimal internal distance in mesh r_min and set
16#min_timestep = r_min/v_max
17#
18#Max speeds are calculated in the flux function as
19#
20#lambda = v +/- sqrt(gh)
21#
22# so with 500 m/s, h ~ 500^2/g = 2500 m well out of the domain of the
23# shallow water wave equation
24#
25#The actual soundspeed can be as high as 1530m
26#(see http://staff.washington.edu/aganse/public.projects/clustering/clustering.html), but that would only happen with h>225000m in this equation. Why ?
27#The maximal speed we specify is really related to the max speed
28#of surface pertubation
29
30
31
32v_max = 100 #For use in domain_ext.c
33sound_speed = 500
34
35
36max_smallsteps = 10  #Max number of degenerate steps allowed b4 trying first order
37
38g = 9.8        #Gravity
39manning = 0.3 #Manning's friction coefficient
40
41
42
43beta = 0.9  #]0;1] (e.g. 0.9). 1 allows the steepest gradients,
44            #lower values are the more conservative
45            #the limiter being a first order method.
46
47pmesh_filename = '.\\pmesh'
48
49
50import os, sys
51
52if sys.platform == 'win32':
53    data_dir = 'C:\grohm_output'
54else:   
55    data_dir = os.path.expanduser('~'+os.sep+'grohm_output')
56
57
58
59
60use_extensions = True   #Try to use C-extensions
61#use_extensions = False   #Do not use C-extensions
62
63#use_psyco = True  #Use psyco optimisations
64use_psyco = False  #Do not use psyco optimisations
65
66
67#Specific to shallow water W.E.
68minimum_allowed_height = 1.0e-3 #Water depth below which it is considered to be 0
69number_of_conserved_quantities = 3 #Should really be set dynamically - but hey!
70number_of_field_values = 2
Note: See TracBrowser for help on using the repository browser.