Changeset 8096
 Timestamp:
 Dec 8, 2010, 9:49:08 AM (10 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/anuga_validation/validation_tests/thacker_parabolic/parabolic_basin.py
r8076 r8096 14 14 # Dirichlet_boundary 15 15 16 from anuga.interface import Domain, Transmissive_boundary, Reflective_boundary,\ 17 Dirichlet_boundary 16 import anuga 17 18 #from anuga.interface import Domain, Transmissive_boundary, Reflective_boundary,\ 19 # Dirichlet_boundary 18 20 from math import sqrt, cos, sin, pi 19 from anuga.interface import rectangular_cross20 from anuga. utilities.polygon import inside_polygon, is_inside_triangle21 #from anuga.interface import rectangular_cross 22 from anuga.geometry.polygon import inside_polygon, is_inside_triangle 21 23 from numpy import asarray 22 24 … … 30 32 origin = (4000.0, 4000.0) 31 33 32 points, elements, boundary = rectangular_cross(m, n, lenx, leny, origin)33 domain = Domain(points, elements, boundary)34 points, elements, boundary = anuga.rectangular_cross(m, n, lenx, leny, origin) 35 domain = anuga.Domain(points, elements, boundary) 34 36 35 37 # … … 103 105 # Boundary 104 106 print 'Boundary conditions' 105 R = Reflective_boundary(domain)106 T = Transmissive_boundary(domain)107 D = Dirichlet_boundary([0.0, 0.0, 0.0])107 R = anuga.Reflective_boundary(domain) 108 T = anuga.Transmissive_boundary(domain) 109 D = anuga.Dirichlet_boundary([0.0, 0.0, 0.0]) 108 110 domain.set_boundary({'left': D, 'right': D, 'top': D, 'bottom': D}) 109 111
Note: See TracChangeset
for help on using the changeset viewer.