Changeset 1839
- Timestamp:
- Sep 16, 2005, 12:11:41 PM (19 years ago)
- Location:
- inundation
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/analytical solutions/Analytical_solution_circular_hydraulic_jump.py
r1834 r1839 113 113 # Order of accuracy 114 114 domain.default_order = 2 115 domain.CFL = 1.0 116 #domain.beta_w = 0.5 117 #domain.beta_h = 0.2 115 118 domain.smooth = True 119 120 116 121 117 122 … … 119 124 #domain.visualiser.coloring['stage'] = True 120 125 domain.visualiser.scale_z['stage'] = 2.0 121 #domain.visualiser.scale_z['elevation'] = 0.05 126 domain.visualiser.scale_z['elevation'] = 0.05 127 128 129 from realtime_visualisation_new import Visualiser 130 vxmom = Visualiser(domain,title='xmomentum',scale_z=10.0) 131 vymom = Visualiser(domain,title='ymomentum',scale_z=10.0) 132 133 122 134 #---------- 123 135 # Evolution 124 136 import time 137 138 print 'PROBLEM WITH INSTABILITY AFTER t' 125 139 t0 = time.time() 126 140 for t in domain.evolve(yieldstep = .01, finaltime = 10): 127 141 domain.write_time() 142 vxmom.update_quantity('xmomentum') 143 vymom.update_quantity('ymomentum') 128 144 129 145 print 'That took %.2f seconds' %(time.time()-t0) -
inundation/pyvolution/config.py
r1697 r1839 78 78 beta_h = 0.2 79 79 CFL = 1.0 #FIXME (ole): Is this in use yet?? 80 #(Steve) yes, change domain.CFL to 81 #make changes 80 82 81 83 -
inundation/pyvolution/realtime_visualisation_new.py
r1697 r1839 22 22 self.frame = frame() 23 23 24 self.domain = domain25 self. scale_z= scale_z26 self.vertices = domain.vertex_coordinates24 self.domain = domain 25 self.default_scale_z = scale_z 26 self.vertices = domain.vertex_coordinates 27 27 28 28 … … 176 176 177 177 #print 'update '+qname+' arrays' 178 179 qcolor = self.qcolor[qname] 180 scale_z = self.scale_z[qname] 181 coloring = self.coloring[qname] 182 updating = self.updating[qname] 178 try: 179 qcolor = self.qcolor[qname] 180 scale_z = self.scale_z[qname] 181 coloring = self.coloring[qname] 182 updating = self.updating[qname] 183 except: 184 qcolor = None 185 scale_z = None 186 coloring = False 187 updating = True 183 188 184 189 … … 196 201 197 202 if scale_z is None: 198 scale_z = self. scale_z203 scale_z = self.default_scale_z 199 204 200 205 #try:
Note: See TracChangeset
for help on using the changeset viewer.