Changeset 1839 for inundation/analytical solutions
- Timestamp:
- Sep 16, 2005, 12:11:41 PM (19 years ago)
- File:
-
- 1 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)
Note: See TracChangeset
for help on using the changeset viewer.