Changeset 8006
- Timestamp:
- Sep 4, 2010, 10:53:31 PM (14 years ago)
- Location:
- trunk/anuga_core
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/documentation/user_manual/demos
-
Property
svn:ignore
set to
.python_cache
-
Property
svn:ignore
set to
-
trunk/anuga_core/documentation/user_manual/demos/buildings.py
r7867 r8006 35 35 poly_from_box(22.5, 27.5, 1.5, 6.5), # middle box 36 36 poly_from_box(35, 40, 3.5, 8.5)] # downstream box 37 38 building_tags = [ { 'upstream' : [0,1,2,3]}, 39 { 'middle' : None}, 40 { 'downstream' : [0,1,2,3]} ] 41 42 #building_tags = None 37 43 38 44 # create a domain mesh, with 3 building holes in it … … 45 51 mesh_filename = 'building.msh', 46 52 interior_holes = building_polys, 53 hole_tags = building_tags, 47 54 use_cache=True, # to speed it up 48 55 verbose=True) # log output on … … 70 77 71 78 domain.set_boundary({'left': Bi, 'right': Bo, 'top': Br, 'bottom': Br, 72 'exterior': Br # this is the internal building boundary 79 'middle': Br , # this is the internal middle building boundary 80 'downstream' : Br , # downstream building 81 'upstream' : Br # upstream building boundary 73 82 }) 74 83 -
trunk/anuga_core/source/anuga/__init__.py
r7999 r8006 166 166 interior_regions=None, 167 167 interior_holes=None, 168 hole_tags = None, 168 169 poly_geo_reference=None, 169 170 mesh_geo_reference=None, … … 197 198 need to be closed, but their points must be specified in a counter-clockwise 198 199 order. 200 201 hole_tags is a list of tag segment dictionaries. 199 202 200 203 This function does not allow segments to share points - use underlying … … 232 235 'interior_regions': interior_regions, 233 236 'interior_holes': interior_holes, 237 'hole_tags': hole_tags, 234 238 'poly_geo_reference': poly_geo_reference, 235 239 'mesh_geo_reference': mesh_geo_reference, … … 265 269 interior_regions=None, 266 270 interior_holes=None, 271 hole_tags=None, 267 272 poly_geo_reference=None, 268 273 mesh_geo_reference=None, … … 284 289 filename=mesh_filename, 285 290 interior_holes=interior_holes, 291 hole_tags=hole_tags, 286 292 poly_geo_reference=poly_geo_reference, 287 293 mesh_geo_reference=mesh_geo_reference, -
trunk/anuga_core/source/anuga/pmesh
-
Property
svn:ignore
set to
.python_cache
-
Property
svn:ignore
set to
-
trunk/anuga_core/source/anuga/pmesh/graphical_mesh_generator.py
r7317 r8006 637 637 #The screen canvas has y 'flipped'. -1* unflips it 638 638 self.lasty = self.starty = -1*self.canvas.canvasy(event.y) 639 log.critical 639 log.critical("----------------------") 640 640 self.mouseDownCurFunc( self.lastx, 641 641 self.lasty,event) #!!! remove the event? -
trunk/anuga_core/source/anuga/pmesh/mesh_interface.py
r7770 r8006 314 314 # Do interior holes 315 315 if interior_holes is not None: 316 for polygon in interior_holes: 316 for n, polygon in enumerate(interior_holes): 317 try: 318 tags = hole_tags[n] 319 except: 320 tags = None 317 321 m.add_hole_from_polygon(polygon, 318 segment_tags= hole_tags,322 segment_tags=tags, 319 323 geo_reference=poly_geo_reference) 320 324
Note: See TracChangeset
for help on using the changeset viewer.