Ignore:
Timestamp:
Sep 4, 2010, 10:53:31 PM (14 years ago)
Author:
steve
Message:

Added hole_tags argument to create_domain_from_regions. See buildings.py in demos for example of use.

Location:
trunk/anuga_core/documentation/user_manual/demos
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/documentation/user_manual/demos

    • Property svn:ignore set to
      .python_cache
  • trunk/anuga_core/documentation/user_manual/demos/buildings.py

    r7867 r8006  
    3535                    poly_from_box(22.5, 27.5, 1.5, 6.5),    # middle box
    3636                    poly_from_box(35, 40, 3.5, 8.5)]        # downstream box
     37                                       
     38building_tags = [ { 'upstream'   : [0,1,2,3]},
     39                  { 'middle'     : None},
     40                  { 'downstream' : [0,1,2,3]} ]
     41
     42#building_tags = None
    3743
    3844# create a domain mesh, with 3 building holes in it
     
    4551                                            mesh_filename = 'building.msh',
    4652                                            interior_holes = building_polys,
     53                                            hole_tags = building_tags,
    4754                                            use_cache=True, # to speed it up
    4855                                            verbose=True)   # log output on
     
    7077
    7178domain.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
    7382                    })
    7483
Note: See TracChangeset for help on using the changeset viewer.