Changeset 9011


Ignore:
Timestamp:
Oct 30, 2013, 7:35:11 PM (11 years ago)
Author:
davies
Message:

Bug fix

Location:
trunk/anuga_work/development/gareth
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_work/development/gareth/experimental/bal_and/swb2_domain_ext.c

    r9010 r9011  
    158158  uh_left=q_left_rotated[1];
    159159  vh_left=q_left_rotated[2];
    160   //if(h_left>1.0e-03){
    161   //  u_left = uh_left/(h_left+0.0e-03) ; //max(h_left, 1.0e-06);
    162   //  uh_left=h_left*u_left;
    163   //  vh_left=h_left/(h_left+0.0e-03)*vh_left;
    164   //}else{
    165   //  u_left=0.;
    166   //  uh_left=0.;
    167   //  vh_left=0.;
    168   //}
     160  if(h_left>1.0e-03){
     161    u_left = uh_left/(hle+0.0e-03) ; //max(h_left, 1.0e-06);
     162    uh_left=h_left*u_left;
     163    vh_left=h_left/(hle+0.0e-03)*vh_left;
     164  }else{
     165    u_left=0.;
     166    uh_left=0.;
     167    vh_left=0.;
     168  }
    169169  // NOTE: using hle instead of h_left here seems to help prevent velocity spikes
    170   u_left = _compute_speed(&uh_left, &hle,
    171               epsilon, h0, limiting_threshold);
     170  //u_left = _compute_speed(&uh_left, &hle,
     171  //            epsilon, h0, limiting_threshold);
    172172
    173173  w_right = q_right_rotated[0];
    174174  uh_right = q_right_rotated[1];
    175175  vh_right = q_right_rotated[2];
    176   //if(h_right>1.0e-03){
    177   //  u_right = uh_right/(h_right+0.0e-03);//max(h_right, 1.0e-06);
    178   //  uh_right=h_right*u_right;
    179   //  vh_right=h_right/(h_right+0.0e-03)*vh_right;
    180   //}else{
    181   //  u_right=0.;
    182   //  uh_right=0.;//h_right*u_right;
    183   //  vh_right=0.;
    184   //}
     176  if(h_right>1.0e-03){
     177    u_right = uh_right/(hre+0.0e-03);//max(h_right, 1.0e-06);
     178    uh_right=h_right*u_right;
     179    vh_right=h_right/(hre+0.0e-03)*vh_right;
     180  }else{
     181    u_right=0.;
     182    uh_right=0.;//h_right*u_right;
     183    vh_right=0.;
     184  }
    185185  // NOTE: using hre instead of h_right here seems to help prevent velocity spikes
    186   u_right = _compute_speed(&uh_right, &hre,
    187                 epsilon, h0, limiting_threshold);
     186  //u_right = _compute_speed(&uh_right, &hre,
     187  //              epsilon, h0, limiting_threshold);
    188188
    189189 
  • trunk/anuga_work/development/gareth/tests/channel_floodplain/plotme.py

    r9007 r9011  
    55
    66# Time-index to plot outputs from
    7 index=40
    8 #index=900
     7#index=40
     8index=900
    99
    1010#p2 = util.get_output('channel_floodplain1_bal_dev.sww', minimum_allowed_height=0.01)
  • trunk/anuga_work/development/gareth/tests/dam_break/plotme.py

    r9008 r9011  
    1111
    1212
    13 p_dev = util2.get_output('dam_break_20131018_165002/dam_break.sww', 0.001)
     13p_dev = util2.get_output('dam_break_20131030_174145/dam_break.sww', 0.001)
    1414p2_dev=util2.get_centroids(p_dev, velocity_extrapolation=True)
    1515
Note: See TracChangeset for help on using the changeset viewer.