Changeset 1599
- Timestamp:
- Jul 11, 2005, 11:23:59 PM (18 years ago)
- Location:
- inundation/ga/storm_surge
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/ga/storm_surge/parallel
- Property svn:externals set to
-
inundation/ga/storm_surge/parallel/run_parallel_sw_merimbula.py
r1598 r1599 145 145 ghost_recv_dict = ghost_recv_dict) 146 146 147 domain.initialise_visualiser(rect=rect,scale_z =0.1)148 147 #domain.initialise_visualiser(rect=rect) 149 domain.visualise_color_stage = True 148 149 domain.initialise_visualiser(rect=rect) 150 domain.visualiser.coloring['stage'] = True 151 domain.visualiser.scale_z['stage'] = 0.2 152 domain.visualiser.scale_z['elevation'] = 0.05 153 154 150 155 domain.default_order = 1 151 156 -
inundation/ga/storm_surge/pyvolution/netherlands.py
r1597 r1599 83 83 N = 130 #size = 33800 84 84 N = 600 #Size = 720000 85 N = 3085 N = 60 86 86 87 87 … … 120 120 domain.filename, _ = os.path.splitext(base) 121 121 else: 122 domain.initialise_visualiser(rect=[0.0,0.0, 2.0,2.0])123 domain.visualise _color_stage = False122 domain.initialise_visualiser(rect=[0.0,0.0,1.0,1.0]) 123 domain.visualiser.coloring['stage'] = True 124 124 domain.visualise_timer = True 125 125 domain.checkpoint = False -
inundation/ga/storm_surge/pyvolution/realtime_visualisation_new.py
r1583 r1599 53 53 # print 'range_y',self.range_y 54 54 55 56 55 self.stage_color = stage_color 56 self.elevation_color = elevation_color 57 self.friction_color = friction_color 58 self.other_color = other_color 59 60 self.qcolor = {} 61 self.scale_z = {} 62 self.coloring = {} 63 self.updating = {} 64 65 self.qcolor['stage'] = self.stage_color 66 self.scale_z['stage'] = 1.0 67 self.coloring['stage'] = False 68 self.updating['stage'] = True 69 70 self.qcolor['elevation'] = self.elevation_color 71 self.scale_z['elevation'] = 1.0 72 self.coloring['elevation'] = False 73 self.updating['elevation'] = False 57 74 58 75 #print self.max_x, self.min_x, self.max_y, self.min_y, … … 68 85 #print 'shape of stage',shape(self.stage) 69 86 70 self.stage_color = stage_color71 self.elevation_color = elevation_color72 self.friction_color = friction_color73 self.other_color = other_color74 87 75 88 setup_scene() … … 125 138 self.range_z = max(range_z,self.range_z) 126 139 140 141 def setup_all(self): 142 143 self.update_quantity('elevation') 144 self.update_quantity('stage') 145 127 146 def update_all(self): 128 147 129 self.update_quantity('elevation',self.elevation_color) 130 self.update_quantity('stage',self.stage_color) 148 if self.updating['elevation']: 149 self.update_quantity('elevation') 150 151 if self.updating['stage']: 152 self.update_quantity('stage') 153 154 155 131 156 132 157 def update_timer(self): … … 137 162 138 163 139 def update_quantity(self,qname ,qcolor=None,scale_z=None):164 def update_quantity(self,qname): 140 165 141 166 #print 'update '+qname+' arrays' 167 168 qcolor = self.qcolor[qname] 169 scale_z = self.scale_z[qname] 170 coloring = self.coloring[qname] 171 updating = self.updating[qname] 172 142 173 143 174 if qcolor is None: … … 156 187 scale_z = self.scale_z 157 188 158 try: 189 #try: 190 if coloring: 191 self.update_arrays_color(self.domain.quantities[qname].vertex_values, qcolor, scale_z) 192 else: 159 193 self.update_arrays(self.domain.quantities[qname].vertex_values, qcolor, scale_z) 160 194 161 162 163 164 165 except:166 print 'Visualisation: Could not update quantity '+qname167 pass195 #print 'update bed image' 196 self.vpython_z_models[qname].pos = self.pos 197 self.vpython_z_models[qname].color = self.colour 198 self.vpython_z_models[qname].normal = self.normals 199 #except: 200 # print 'Visualisation: Could not update quantity '+qname 201 # pass 168 202 169 203 def update_quantity_color(self,qname,qcolor=None,scale_z=None): -
inundation/ga/storm_surge/pyvolution/shallow_water.py
r1597 r1599 194 194 #visualise.create_surface(self) 195 195 self.initialise_visualiser() 196 self.visualiser.update_quantity('stage') 197 self.visualiser.update_quantity('elevation') 196 self.visualiser.setup_all() 198 197 self.visualiser.update_timer() 199 198 … … 215 214 #visualise.update(self) 216 215 if self.visualise is True: 217 self.visualiser.update_ quantity('stage')216 self.visualiser.update_all() 218 217 self.visualiser.update_timer() 219 218
Note: See TracChangeset
for help on using the changeset viewer.