Ignore:
Timestamp:
Feb 6, 2007, 11:47:41 AM (18 years ago)
Author:
ole
Message:

Implemented new Flux Limiter which I believe is more robust and will pave the way for new balanced slope limiters.
For backwards compatibility using fluxes as they were before today (5/2/7) set
domain.H0 = 0 instead of the new default which is minimum_allowable_height (0.001).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/shallow_water/shallow_water_domain.py

    r4200 r4218  
    147147
    148148        self.minimum_allowed_height = minimum_allowed_height
     149        self.H0 = minimum_allowed_height  # Minimal height for flux computation       
    149150        self.maximum_allowed_speed = maximum_allowed_speed
    150151        self.g = g
     
    832833         compute_fluxes_ext_central as compute_fluxes_ext
    833834   
    834     domain.timestep = compute_fluxes_ext(timestep, domain.epsilon, domain.g,
     835
     836    domain.timestep = compute_fluxes_ext(timestep, domain.epsilon,
     837                                         domain.H0,                                         
     838                                         domain.g,
    835839                                         domain.neighbours,
    836840                                         domain.neighbour_edges,
     
    20822086                    protect_against_infinitesimal_and_negative_heights_c
    20832087
    2084 
    20852088    #distribute_to_vertices_and_edges =\
    20862089    #              distribute_to_vertices_and_edges_c #(like MH's)
Note: See TracChangeset for help on using the changeset viewer.