Changeset 8384 for trunk/anuga_work
- Timestamp:
- Apr 5, 2012, 12:37:54 AM (13 years ago)
- Location:
- trunk/anuga_work/development/gareth
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_work/development/gareth/experimental/balanced_dev/swb2_domain.py
r8383 r8384 101 101 self.set_store_vertices_smoothly(False) 102 102 103 self.maximum_allowed_speed=0.0 104 103 105 print '##########################################################################' 104 106 print '#' -
trunk/anuga_work/development/gareth/experimental/balanced_dev/swb2_domain_ext.c
r8375 r8384 731 731 // Any provisional jump with magnitude < TINY does not contribute to 732 732 // the limiting process. 733 733 734 for (i=0;i<3;i++){ 734 735 if (dqv[i]<-TINY) … … 742 743 743 744 phi=min(r*beta_w,1.0); 745 //phi=1.; 744 746 //for (i=0;i<3;i++) 745 747 dqv[0]=dqv[0]*phi; … … 1082 1084 // vertices of the auxiliary triangle and compute jumps 1083 1085 // from the centroid to the min and max 1086 // 1084 1087 find_qmin_and_qmax(dq0, dq1, dq2, &qmin, &qmax); 1088 1085 1089 //beta_tmp = beta_uh; 1086 1090 //if (hmin<minimum_allowed_height) … … 1139 1143 // vertices of the auxiliary triangle and compute jumps 1140 1144 // from the centroid to the min and max 1145 // 1141 1146 find_qmin_and_qmax(dq0, dq1, dq2, &qmin, &qmax); 1142 1147 -
trunk/anuga_work/development/gareth/tests/channel_floodplain/plotme.py
r8375 r8384 4 4 5 5 # Time-index to plot outputs from 6 index= 9006 index=53 7 7 8 8 #p2 = util.get_output('channel_floodplain1_bal_dev.sww', minimum_allowed_height=0.01) -
trunk/anuga_work/development/gareth/tests/dam_break/plotme.py
r8359 r8384 9 9 p2_st=util.get_centroids(p_st) 10 10 11 p_dev = util.get_output('dam_break_20120313_153101/dam_break.sww', 0.001) 11 12 p_dev = util.get_output('dam_break_20120404_230353/dam_break.sww', 0.001) 12 13 p2_dev=util.get_centroids(p_dev, velocity_extrapolation=True) 13 14 -
trunk/anuga_work/development/gareth/tests/urban_flow/ideal_urban.py
r8383 r8384 9 9 import anuga 10 10 import numpy 11 #from anuga import create_domain_from_regions as create_domain_from_regions 11 12 #from anuga.structures.inlet_operator import Inlet_operator 12 13 … … 25 26 #bankwidth = 2. # Width of the bank regions -- note that these protrude into the channel 26 27 man_n=0.01 # Manning's n 27 l0 = 0. 05#0.2501 # Length scale associated with triangle side length in channel (min_triangle area = 0.5*l0^2)28 l0 = 0.1 #0.2501 # Length scale associated with triangle side length in channel (min_triangle area = 0.5*l0^2) 28 29 29 30 #assert chan_width < floodplain_width, \ … … 59 60 60 61 domain.set_name('urban_flow0p05') # Output name 61 62 #domain.extrapolate_velocity_second_order=False 62 63 #------------------------------------------------------------------------------ 63 64 # … … 95 96 elev2 = (x>6.9)*(x<7.7)*(y<1.3)*structure_height + \ 96 97 (x>6.9)*(x<7.7)*(3.6-y<1.3)*structure_height 98 99 # Add sloping edges 100 elev2b = (0.34 - y)*(0.155/0.34)*(y<0.34) + (0.155 - (floodplain_width-y)*(0.155/0.34))*(y>=floodplain_width-0.34) 101 97 102 # Define building. 98 103 # Do this by using rotated coordinates. … … 113 118 (c2 > (ll[1] + 1.0/numpy.tan(alpha)*ll[0]) )*\ 114 119 structure_height 115 return elev1 + elev2 + elev 3120 return elev1 + elev2 + elev2b + elev3 116 121 117 122 #Function for stage -
trunk/anuga_work/development/gareth/tests/urban_flow/plotme.py
r8383 r8384 14 14 G6=numpy.array([-1.87,1.10]) + offset 15 15 16 p=util.get_output('urban_flow0p1.sww') 16 p2=util.get_output('urban_flow0p05.sww',0.001) 17 p=util.get_centroids(p2,velocity_extrapolation=True) 17 18 18 19 G1ind = ((p.x-G1[0])**2 + (p.y-G1[1])**2).argmin() -
trunk/anuga_work/development/gareth/tests/wave/run_wave.py
r8354 r8384 13 13 import anuga 14 14 from anuga import Domain 15 #from balanced_dev import * 15 16 from balanced_dev import * 17 from balanced_dev import Domain as Domain 16 18 17 19 from math import cos … … 39 41 # Setup domain 40 42 #------------------------------------------------------------------------------ 41 dx = 500.43 dx = 1000. 42 44 dy = dx 43 45 L = 100000. … … 55 57 # Setup Algorithm 56 58 #------------------------------------------------------------------------------ 57 domain.set_timestepping_method('rk2')58 domain.set_default_order(2)59 domain.set_beta(2.0)59 #domain.set_timestepping_method('rk2') 60 #domain.set_default_order(2) 61 #domain.set_beta(2.0) 60 62 61 print domain.get_timestepping_method()63 #print domain.get_timestepping_method() 62 64 63 65 #domain.use_edge_limiter = True … … 81 83 Bd = anuga.Dirichlet_boundary([1,0.,0.]) # Constant boundary values 82 84 amplitude = 1 83 wave_length = 300 0.085 wave_length = 300.0 84 86 Bw = anuga.Time_boundary(domain=domain, # Time dependent boundary 85 87 ## Sine wave … … 116 118 #------------------------------------------------------------------------------ 117 119 118 for t in domain.evolve(yieldstep = 10.0, finaltime = 60*60.* 10.):120 for t in domain.evolve(yieldstep = 10.0, finaltime = 60*60.*3.): 119 121 domain.write_time() 120 122 if interactive_visualisation:
Note: See TracChangeset
for help on using the changeset viewer.