Changeset 7846


Ignore:
Timestamp:
Jun 16, 2010, 8:23:42 AM (15 years ago)
Author:
James Hudson
Message:

Fixed failing validations

Location:
anuga_validation
Files:
1 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • anuga_validation/automated_validation_tests/flow_tests/test_inflow_using_flowline.py

    r7774 r7846  
    2828length = 400.
    2929width  = 20.
    30 dx = dy = 2          # Resolution: of grid on both axes
     30dx = dy = 1.25          # Resolution: of grid on both axes
    3131
    3232points, vertices, boundary = anuga.rectangular_cross(int(length/dx), \
     
    138138       
    139139        msg = 'Predicted depth of flow at 200m was %f, should have been %f' % (normal_depth, domain_depth)
    140         msg = 'Mannings n = %s, slope = %s' % (mannings_n, slope)
     140        msg += 'Mannings n = %s, slope = %s' % (mannings_n, slope)
    141141        if verbose:
    142142            print 'Depth at 200m: ANUGA = %f, Mannings = %f' % (domain_depth, normal_depth)
  • anuga_validation/convergence_study/dam_break.py

    r5442 r7846  
    1010
    1111import sys
    12 from anuga.abstract_2d_finite_volumes.mesh_factory import rectangular_cross
    13 from anuga.shallow_water import Domain
    14 from anuga.shallow_water import Reflective_boundary
    15 from anuga.shallow_water import Dirichlet_boundary
    16 from anuga.shallow_water import Time_boundary
    17 from anuga.shallow_water import Transmissive_boundary
    18 from anuga.shallow_water import Transmissive_Momentum_Set_Stage_boundary
    19 from anuga.shallow_water.data_manager import start_screen_catcher, copy_code_files
     12import anuga
    2013
    2114from math import cos
    22 from Numeric import zeros, Float
     15from numpy import zeros, float
    2316from time import localtime, strftime, gmtime
    2417
     
    3427output_file = 'dam_break'
    3528
    36 copy_code_files(output_dir,__file__)
     29anuga.copy_code_files(output_dir,__file__)
    3730#start_screen_catcher(output_dir+'_')
    3831
     
    4740
    4841# structured mesh
    49 points, vertices, boundary = rectangular_cross(int(L/dx), int(W/dy), L, W, (0.0, -W/2))
     42points, vertices, boundary = anuga.rectangular_cross(int(L/dx), int(W/dy), L, W, (0.0, -W/2))
    5043
    51 domain = Domain(points, vertices, boundary)
     44domain = anuga.Domain(points, vertices, boundary)
    5245
    5346domain.set_name(output_file)               
     
    9790#------------------------------------------------------------------------------
    9891from math import sin, pi, exp
    99 Br = Reflective_boundary(domain)      # Solid reflective wall
    100 Bt = Transmissive_boundary(domain)    # Continue all values on boundary
    101 Bd = Dirichlet_boundary([1,0.,0.]) # Constant boundary values
     92Br = anuga.Reflective_boundary(domain)      # Solid reflective wall
     93Bt = anuga.Transmissive_boundary(domain)    # Continue all values on boundary
     94Bd = anuga.Dirichlet_boundary([1,0.,0.]) # Constant boundary values
    10295
    10396
  • anuga_validation/performance_tests/run_profile.py

    r7276 r7846  
    66######################
    77# Module imports
    8 from anuga.shallow_water import Domain, Reflective_boundary
    9 from mesh_factory import rectangular
    10 #import numpy as num     # not used?
    11 
     8import anuga
    129
    1310######################
     
    2118print 'Creating domain'
    2219#Create basic mesh
    23 points, vertices, boundary = rectangular(N, N)
     20points, vertices, boundary = anuga.rectangular(N, N)
    2421
    2522#Create shallow water domain
    26 domain = Domain(points, vertices, boundary)
     23domain = anuga.Domain(points, vertices, boundary)
    2724domain.set_default_order(2)       
    2825domain.set_quantities_to_be_stored(None)
     
    4138
    4239print 'Setting boundary conditions'
    43 Br = Reflective_boundary(domain)
     40Br = anuga.Reflective_boundary(domain)
    4441domain.set_boundary({'left': Br, 'right': Br, 'bottom': Br, 'top': Br})
    4542
  • anuga_validation/performance_tests/run_profile2.py

    r5320 r7846  
    1111# Module imports
    1212#
    13 from anuga.shallow_water import Domain, Reflective_boundary,\
    14      Dirichlet_boundary,\
    15      Transmissive_boundary, Time_boundary
    16 
    17 from mesh_factory import rectangular
    18 from Numeric import array
     13import anuga
     14from numpy import array
    1915   
    2016
     
    2723print 'Creating domain'
    2824#Create basic mesh
    29 points, vertices, boundary = rectangular(N, N)
     25points, vertices, boundary = anuga.rectangular(N, N)
    3026
    3127#Create shallow water domain
    32 domain = Domain(points, vertices, boundary)
     28domain = anuga.Domain(points, vertices, boundary)
    3329domain.default_order = 2
    3430domain.set_quantities_to_be_stored(None)
     
    4642# Boundary conditions
    4743#
    48 Br = Reflective_boundary(domain)
     44Br = anuga.Reflective_boundary(domain)
    4945domain.set_boundary({'left': Br, 'right': Br, 'bottom': Br, 'top': Br})
    5046
Note: See TracChangeset for help on using the changeset viewer.