Changeset 8096


Ignore:
Timestamp:
Dec 8, 2010, 9:49:08 AM (9 years ago)
Author:
habili
Message:

update of validation code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_validation/validation_tests/thacker_parabolic/parabolic_basin.py

    r8076 r8096  
    1414#     Dirichlet_boundary
    1515
    16 from anuga.interface import Domain, Transmissive_boundary, Reflective_boundary,\
    17      Dirichlet_boundary
     16import anuga
     17
     18#from anuga.interface import Domain, Transmissive_boundary, Reflective_boundary,\
     19#     Dirichlet_boundary
    1820from math import sqrt, cos, sin, pi
    19 from anuga.interface import rectangular_cross
    20 from anuga.utilities.polygon import inside_polygon, is_inside_triangle
     21#from anuga.interface import rectangular_cross
     22from anuga.geometry.polygon import inside_polygon, is_inside_triangle
    2123from numpy import asarray
    2224
     
    3032origin = (-4000.0, -4000.0)
    3133
    32 points, elements, boundary = rectangular_cross(m, n, lenx, leny, origin)
    33 domain = Domain(points, elements, boundary)
     34points, elements, boundary = anuga.rectangular_cross(m, n, lenx, leny, origin)
     35domain = anuga.Domain(points, elements, boundary)
    3436
    3537#----------------
     
    103105# Boundary
    104106print 'Boundary conditions'
    105 R = Reflective_boundary(domain)
    106 T = Transmissive_boundary(domain)
    107 D = Dirichlet_boundary([0.0, 0.0, 0.0])
     107R = anuga.Reflective_boundary(domain)
     108T = anuga.Transmissive_boundary(domain)
     109D = anuga.Dirichlet_boundary([0.0, 0.0, 0.0])
    108110domain.set_boundary({'left': D, 'right': D, 'top': D, 'bottom': D})
    109111
Note: See TracChangeset for help on using the changeset viewer.