source: anuga_work/development/euler/euler_config.py @ 5395

Last change on this file since 5395 was 2229, checked in by steve, 18 years ago

Moved directories into production and development parent directories

File size: 1.9 KB
Line 
1"""Module where global euler model parameters are set
2"""
3
4epsilon = 1.0e-12
5
6default_boundary_tag = 'exterior'
7
8
9time_format = '%d/%m/%y %H:%M:%S'
10
11min_timestep = 1.0e-6 #Should be computed based on geometry
12max_timestep = 1000
13
14
15v_max = 100 #For use in domain_ext.c
16sound_speed = 500
17
18max_smallsteps = 50  #Max number of degenerate steps allowed b4 trying first order
19
20
21
22#Betas [0;1] control the allowed steepness of gradient for second order
23#extrapolations. Values of 1 allow the steepes gradients while
24#lower values are more conservative. Values of 0 correspond to
25#1'st order extrapolations.
26#
27# Large values of beta_h may cause simulations to require more timesteps
28# as surface will 'hug' closer to the bed.
29# Small values of beta_h will make code faster, but one may experience
30# artificial momenta caused by discontinuities in water depths in
31# the presence of steep slopes. One example of this would be
32# stationary water 'lapping' upwards to a higher point on the coast.
33#
34#
35#
36#There are separate betas for the w-limiter and the h-limiter
37#
38#
39#
40#
41#Good values are:
42#beta_w = 0.9
43#beta_h = 0.2
44
45
46
47beta = 0.9
48
49CFL = 1.0  #FIXME (ole): Is this in use yet??
50           #(Steve) yes, change domain.CFL to
51           #make changes
52
53
54pmesh_filename = '.\\pmesh'
55
56
57import os, sys
58
59if sys.platform == 'win32':
60    #default_datadir = 'C:\grohm_output'
61    default_datadir = '.'
62else:
63    #default_datadir = os.path.expanduser('~'+os.sep+'grohm_output')
64    default_datadir = '.'
65
66
67use_extensions = True    #Try to use C-extensions
68#use_extensions = False   #Do not use C-extensions
69
70use_psyco = True  #Use psyco optimisations
71#use_psyco = False  #Do not use psyco optimisations
72
73
74optimised_gradient_limiter = True #Use hardwired gradient limiter
75
76#Specific to Euler
77minimum_allowed_density = 1.0e-3 #Water depth below which it is considered to be 0
Note: See TracBrowser for help on using the repository browser.