Changeset 1295 for inundation/ga/storm_surge/pyvolution/netherlands.py
- Timestamp:
- May 8, 2005, 11:50:32 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/ga/storm_surge/pyvolution/netherlands.py
r1290 r1295 63 63 z[i] = -x[i]/20+0.4 64 64 65 if (x[i] - 0.72)**2 + (y[i] - 0.4)**2 < 0.05**2:# or\ 66 #x[i] > 0.75 and x[i] < 0.9 and y[i] > 0.35 and y[i] < 0.45: 67 z[i] = -x[i]/20+0.4 68 65 69 #Wall 66 70 if x[i] > 0.995: … … 79 83 N = 130 #size = 33800 80 84 N = 600 #Size = 720000 81 N = 3085 N = 40 82 86 83 87 #N = 15 … … 100 104 print "Number of triangles = ", len(domain) 101 105 106 #Set bed-slope and friction 107 inflow_stage = 0.4 108 manning = 0.02 109 Z = Weir(inflow_stage) 102 110 103 111 if N > 150: … … 112 120 else: 113 121 domain.visualise = True 122 domain.visualise_color_stage = True 123 domain.visualise_timer = True 114 124 domain.checkpoint = False 115 125 domain.store = False 116 126 117 118 #Set bed-slope and friction119 inflow_stage = 0.1120 manning = 0.02121 Z = Weir(inflow_stage)122 127 123 128 print 'Field values' … … 134 139 135 140 #Constant inflow 136 Bd = Dirichlet_boundary([ 2*inflow_stage, 0.0, 0.0])141 Bd = Dirichlet_boundary([inflow_stage, 0.0, 0.0]) 137 142 138 143 … … 151 156 t0 = time.time() 152 157 153 for t in domain.evolve(yieldstep = 0. 2, finaltime = 10.0):158 for t in domain.evolve(yieldstep = 0.05, finaltime = 10.0): 154 159 domain.write_time() 155 160
Note: See TracChangeset
for help on using the changeset viewer.