Changeset 9327


Ignore:
Timestamp:
Sep 8, 2014, 10:06:35 AM (11 years ago)
Author:
davies
Message:

Being more careful with timestep for riverwalls

Location:
trunk/anuga_core
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga/shallow_water/swDE1_domain_ext.c

    r9320 r9327  
    619619                                 double weirScale,
    620620                                 double s1, double s2,
    621                                  double h1, double h2
     621                                 double h1, double h2,
     622                                 double *max_speed_local
    622623                                ){
    623624    // Adjust the edgeflux to agree with a weir relation [including
     
    702703    }
    703704
     705    // Adjust the max speed
     706    *max_speed_local = sqrt(g*maxhd) + abs(edgeflux[0])/(maxhd+1.0e-100);
     707
    704708    return 0;
    705709}
     
    872876                    adjust_edgeflux_with_weir(edgeflux, h_left_tmp, h_right_tmp, D->g,
    873877                                              weir_height, Qfactor,
    874                                               s1, s2, h1, h2);
    875                     // NOTE: Should perhaps also adjust the wave-speed here?? Small chance of instability??
     878                                              s1, s2, h1, h2, &max_speed_local);
    876879                }
    877880            }
  • trunk/anuga_core/validation_tests/behaviour_only/tides_hecras/channel_floodplain1.py

    r9256 r9327  
    3030bankwidth = 0.01 # Width of the bank regions -- note that these protrude into the channel
    3131man_n=0.03 # Manning's n
    32 l0 = 20.000 # Length scale associated with triangle side length in channel (min_triangle area = 0.5*l0^2)
     32l0 = 50.000 # Length scale associated with triangle side length in channel (min_triangle area = 0.5*l0^2)
    3333
    3434assert chan_width < floodplain_width, \
Note: See TracChangeset for help on using the changeset viewer.