Changeset 2050
- Timestamp:
- Nov 22, 2005, 2:14:12 PM (19 years ago)
- Location:
- inundation
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/parallel/run_parallel_merimbula.py
r1629 r2050 101 101 print "WARNING: number of subboxes is not equal to the number of proc" 102 102 103 domain_full = pmesh_to_domain_instance(filename, Domain)103 domain_full = pmesh_to_domain_instance(filename, Advection_Domain) 104 104 domain_full.set_quantity('stage', Set_Stage(200.0,300.0,1.0)) 105 105 # domain.set_quantity('stage', Set_Stage(756000.0,756500.0,4.0)) … … 152 152 velocity = [0.1,0.0]) 153 153 154 domain.initialise_visualiser(rect=rect)154 #domain.initialise_visualiser(rect=rect) 155 155 156 156 #Boundaries 157 157 158 158 T = Transmissive_boundary(domain) 159 domain.set_boundary( {'outflow': T, 'inflow': T, 'inner':T, 'exterior': T, 'open':T} ) 159 R = Reflective_boundary(domain) 160 domain.set_boundary( {'outflow': R, 'inflow': R, 'inner':R, 'exterior': R, 'open':R} ) 160 161 161 162 … … 166 167 # Evolution 167 168 t0 = time.time() 168 domain.visualise = True 169 170 171 try: 172 domain.initialise_visualiser(rect=rect) 173 #domain.visualiser.coloring['stage'] = True 174 #domain.visualiser.scale_z['stage'] = 0.2 175 except: 176 print 'No visualiser' 177 178 179 169 180 #yieldstep = 1 170 181 yieldstep = 1000 -
inundation/parallel/run_parallel_sw_merimbula.py
r1629 r2050 92 92 # read in the test files 93 93 94 filename = 'test-100.tsh'95 #filename = 'merimbula_10785_1.tsh'94 # filename = 'test-100.tsh' 95 filename = 'merimbula_10785_1.tsh' 96 96 nx = numprocs 97 97 ny = 1 … … 101 101 domain_full = pmesh_to_domain_instance(filename, Domain) 102 102 103 domain_full.set_quantity('stage', Set_Stage(200.0,300.0,1.0))104 #domain_full.set_quantity('stage', Set_Stage(756000.0,756500.0,2.0))103 # domain_full.set_quantity('stage', Set_Stage(200.0,300.0,1.0)) 104 domain_full.set_quantity('stage', Set_Stage(756000.0,756500.0,2.0)) 105 105 106 106 nodes, triangles, boundary, triangles_per_proc, quantities = \ -
inundation/pyvolution/advection.py
r1639 r2050 64 64 self.visualise = False 65 65 self.visualise_color_stage = False 66 self.visualise_stage_range = 1.0 66 67 self.visualise_timer = True 67 68 self.visualise_range_z = None 69 68 70 69 71 self.smooth = True … … 342 344 #Initialise real time viz if requested 343 345 if self.visualise is True and self.time == 0.0: 346 #pass 344 347 #import realtime_visualisation_new as visualise 348 #visualise.create_surface(self) 345 349 self.initialise_visualiser() 346 #self.visualiser.update_quantity('stage')350 self.visualiser.setup_all() 347 351 self.visualiser.update_timer() 352 348 353 349 354 #Call basic machinery from parent class 350 355 for t in Generic_domain.evolve(self, yieldstep, finaltime): 356 357 351 358 #Real time viz 352 359 if self.visualise is True: 353 #self.visualiser.update_quantity('stage') 360 #pass 361 self.visualiser.update_all() 354 362 self.visualiser.update_timer() 363 355 364 356 365 #Pass control on to outer loop for more specific actions
Note: See TracChangeset
for help on using the changeset viewer.