Ignore:
Timestamp:
Oct 1, 2006, 6:55:46 PM (18 years ago)
Author:
steve
Message:

Added more limiting to cells near dry cells, use beta_*_dry

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_validation/analytical solutions/Analytical_solution_circular_hydraulic_jump.py

    r3514 r3678  
    88
    99#-------------------------------
    10 # Set up path and module imports
    11 import sys
    12 from os import sep
    13 sys.path.append('..'+sep+'pyvolution')
     10# Setup modules
    1411
    15 from shallow_water import Domain, Dirichlet_Discharge_boundary
    16 from shallow_water import Transmissive_Momentum_Set_Stage_boundary, Dirichlet_boundary
     12from anuga.shallow_water import Domain, Dirichlet_Discharge_boundary
     13from anuga.shallow_water import Transmissive_Momentum_Set_Stage_boundary, Dirichlet_boundary
    1714from math import pi, sqrt
    18 from mesh_factory import strang_mesh
     15from anuga.abstract_2d_finite_volumes.mesh_factory import strang_mesh
    1916
    2017
     
    6663#------------------------------------------
    6764# Reduction operation for get_vertex_values
    68 from anuga.pyvolution.util import mean
    69 domain.reduction = mean
     65from anuga.utilities.numerical_tools import mean
     66#domain.reduction = mean
    7067#domain.reduction = min  #Looks better near steep slopes
    7168
     
    116113#------------------
    117114# Order of accuracy
    118 domain.default_order = 1
    119 domain.CFL = 0.75
    120 #domain.beta_w = 0.5
    121 #domain.beta_h = 0.2
    122 domain.smooth = True
     115domain.default_order = 2
     116domain.beta_w      = 1.0
     117domain.beta_w_dry  = 0.2
     118domain.beta_uh     = 1.0
     119domain.beta_uh_dry = 0.2
     120domain.beta_vh     = 1.0
     121domain.beta_vh_dry = 0.2
     122domain.CFL = 0.5
     123
     124#domain.smooth = True
    123125
    124126
     
    135137#
    136138#
     139
     140domain.initialise_visualiser()
     141#from anuga.visualiser.vtk_realtime_visualiser import Visualiser
     142
    137143#from realtime_visualisation_new import Visualiser
     144#vis = Visualiser(domain,title="stage")
     145#vis.setup['elevation'] = True
     146#vis.updating['stage'] = True
     147#vis.qcolor['stage'] = (0.0,0.0,0.8)
     148#vis.coloring['stage']= True
    138149##vxmom = Visualiser(domain,title='xmomentum',scale_z=10.0)
    139150##vymom = Visualiser(domain,title='ymomentum',scale_z=10.0)
     
    148159
    149160t0 = time.time()
    150 for t in domain.evolve(yieldstep = .1, finaltime = 3.0):
     161for t in domain.evolve(yieldstep = .02, finaltime = 3.0):
    151162    domain.write_time()
    152 
     163    #vis.update()
    153164    exp = '(xmomentum**2 + ymomentum**2)**0.5'
    154165    radial_momentum = domain.create_quantity_from_expression(exp)
     
    167178
    168179#    f.write('time = %25.15e wall clock time %g \n' % (domain.time, time.time()))
    169     f.write('%10.3f %25.15e %25.15e %25.15e %25.15e \n' % (domain.time, inner_stage, inner_radial_mom, outer_stage, outer_radial_mom))
     180#    f.write('%10.3f %25.15e %25.15e %25.15e %25.15e \n' % (domain.time, inner_stage, inner_radial_mom, outer_stage, outer_radial_mom))
    170181
    171182    f.write('time = %25.15e wall clock time %g \n' % (domain.time, time.time()))
Note: See TracChangeset for help on using the changeset viewer.