"""Module where global euler model parameters are set """ epsilon = 1.0e-12 default_boundary_tag = 'exterior' time_format = '%d/%m/%y %H:%M:%S' min_timestep = 1.0e-6 #Should be computed based on geometry max_timestep = 1000 v_max = 100 #For use in domain_ext.c sound_speed = 500 max_smallsteps = 50 #Max number of degenerate steps allowed b4 trying first order #Betas [0;1] control the allowed steepness of gradient for second order #extrapolations. Values of 1 allow the steepes gradients while #lower values are more conservative. Values of 0 correspond to #1'st order extrapolations. # # Large values of beta_h may cause simulations to require more timesteps # as surface will 'hug' closer to the bed. # Small values of beta_h will make code faster, but one may experience # artificial momenta caused by discontinuities in water depths in # the presence of steep slopes. One example of this would be # stationary water 'lapping' upwards to a higher point on the coast. # # # #There are separate betas for the w-limiter and the h-limiter # # # # #Good values are: #beta_w = 0.9 #beta_h = 0.2 beta = 0.9 CFL = 1.0 #FIXME (ole): Is this in use yet?? #(Steve) yes, change domain.CFL to #make changes pmesh_filename = '.\\pmesh' import os, sys if sys.platform == 'win32': #default_datadir = 'C:\grohm_output' default_datadir = '.' else: #default_datadir = os.path.expanduser('~'+os.sep+'grohm_output') default_datadir = '.' use_extensions = True #Try to use C-extensions #use_extensions = False #Do not use C-extensions use_psyco = True #Use psyco optimisations #use_psyco = False #Do not use psyco optimisations optimised_gradient_limiter = True #Use hardwired gradient limiter #Specific to Euler minimum_allowed_density = 1.0e-3 #Water depth below which it is considered to be 0