Ignore:
Timestamp:
Jun 22, 2010, 5:52:28 PM (12 years ago)
Author:
hudson
Message:

Shallow water balanced tests fail, but no longer have errors.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga/shallow_water_balanced/test_swb_boundary_condition.py

    r7866 r7869  
    55from math import pi, sqrt
    66import tempfile
     7
     8import anuga
    79
    810from anuga.config import g, epsilon
     
    6062                                          [30,30,30], [40,40,40]])
    6163
    62         D = Dirichlet_boundary([5, 2, 1])
    63         T = Transmissive_boundary(domain)
    64         R = Reflective_boundary(domain)
     64        D = anuga.Dirichlet_boundary([5, 2, 1])
     65        T = anuga.Transmissive_boundary(domain)
     66        R = anuga.Reflective_boundary(domain)
    6567        domain.set_boundary({'First': D, 'Second': T, 'Third': R})
    6668
     
    140142                    (0, 1): 'Internal'}
    141143
    142         domain = Domain(points, vertices, boundary)
     144        domain = anuga.Domain(points, vertices, boundary)
    143145        domain.check_integrity()
    144146
     
    150152                                          [30,30,30], [40,40,40]])
    151153
    152         D = Dirichlet_boundary([5, 2, 1])
    153         T = Transmissive_boundary(domain)
    154         R = Reflective_boundary(domain)
     154        D = anuga.Dirichlet_boundary([5, 2, 1])
     155        T = anuga.Transmissive_boundary(domain)
     156        R = anuga.Reflective_boundary(domain)
    155157        domain.set_boundary({'First': D, 'Second': T,
    156158                             'Third': R, 'Internal': None})
     
    192194                                          [30,30,30], [40,40,40]])
    193195
    194         D = Dirichlet_boundary([5, 2, 1])
    195         T = Transmissive_stage_zero_momentum_boundary(domain)
    196         R = Reflective_boundary(domain)
     196        D = anuga.Dirichlet_boundary([5, 2, 1])
     197        T = anuga.Transmissive_stage_zero_momentum_boundary(domain)
     198        R = anuga.Reflective_boundary(domain)
    197199        domain.set_boundary({'First': D, 'Second': T, 'Third': R})
    198200
     
    270272        #--------------------------------------------------------------
    271273        # Time dependent boundary
    272         Bt = Time_boundary(domain=domain, f=lambda t: [t, 0.0, 0.0])
    273 
    274         Br = Reflective_boundary(domain)              # Reflective wall
     274        Bt = anuga.Time_boundary(domain=domain, f=lambda t: [t, 0.0, 0.0])
     275
     276        Br = anuga.Reflective_boundary(domain)              # Reflective wall
    275277
    276278        domain.set_boundary({'left': Bt, 'right': Br, 'top': Br, 'bottom': Br})
     
    326328
    327329        # Boundary conditions
    328         Br = Reflective_boundary(domain1)
    329         Bd = Dirichlet_boundary([0.3,0,0])
     330        Br = anuga.Reflective_boundary(domain1)
     331        Bd = anuga.Dirichlet_boundary([0.3,0,0])
    330332        domain1.set_boundary({'left': Bd, 'top': Bd, 'right': Br, 'bottom': Br})
    331333
     
    370372
    371373        # Boundary conditions
    372         Br = Reflective_boundary(domain2)
    373         Bf = Field_boundary(domain1.get_name() + '.sww', domain2)
     374        Br = anuga.Reflective_boundary(domain2)
     375        Bf = anuga.Field_boundary(domain1.get_name() + '.sww', domain2)
    374376        domain2.set_boundary({'right':Br, 'bottom':Br, 'diagonal':Bf})
    375377        domain2.check_integrity()
     
    433435
    434436        # Boundary conditions
    435         Br = Reflective_boundary(domain1)
    436         Bd = Dirichlet_boundary([0.3,0,0])
     437        Br = anuga.Reflective_boundary(domain1)
     438        Bd = anuga.Dirichlet_boundary([0.3,0,0])
    437439        domain1.set_boundary({'left': Bd, 'top': Bd, 'right': Br, 'bottom': Br})
    438440
     
    498500
    499501        # Boundary conditions
    500         Br = Reflective_boundary(domain2)
    501         Bf = Field_boundary(domain1.get_name() + '.sww',
     502        Br = anuga.Reflective_boundary(domain2)
     503        Bf = anuga.Field_boundary(domain1.get_name() + '.sww',
    502504                            domain2, verbose=False)
    503505        domain2.set_boundary({'right':Br, 'bottom':Br, 'diagonal':Bf})
     
    605607
    606608        # Boundary conditions
    607         Br = Reflective_boundary(domain1)
    608         Bd = Dirichlet_boundary([0.3, 0, 0])
     609        Br = anuga.Reflective_boundary(domain1)
     610        Bd = anuga.Dirichlet_boundary([0.3, 0, 0])
    609611        domain1.set_boundary({'left': Bd, 'top': Bd, 'right': Br, 'bottom': Br})
    610612
     
    671673
    672674        # Boundary conditions
    673         Br = Reflective_boundary(domain2)
    674         Bf = Field_boundary(domain1.get_name() + '.sww',
     675        Br = anuga.Reflective_boundary(domain2)
     676        Bf = anuga.Field_boundary(domain1.get_name() + '.sww',
    675677                            domain2, mean_stage=mean_stage, verbose=False)
    676678
     
    761763
    762764        # Create shallow water domain
    763         domain1 = Domain(points, vertices, boundary)
     765        domain1 = anuga.Domain(points, vertices, boundary)
    764766
    765767        domain1.reduction = mean
     
    784786
    785787        # Boundary conditions
    786         Br = Reflective_boundary(domain1)
    787         Bd = Dirichlet_boundary([0.3, 0, 0])
     788        Br = anuga.Reflective_boundary(domain1)
     789        Bd = anuga.Dirichlet_boundary([0.3, 0, 0])
    788790        domain1.set_boundary({'left': Bd, 'top': Bd, 'right': Br, 'bottom': Br})
    789791
     
    846848
    847849        # Boundary conditions
    848         Br = Reflective_boundary(domain2)
    849         Bf = Field_boundary(domain1.get_name() + '.sww',
     850        Br = anuga.Reflective_boundary(domain2)
     851        Bf = anuga.Field_boundary(domain1.get_name() + '.sww',
    850852                            domain2, mean_stage=1, verbose=False)
    851853
Note: See TracChangeset for help on using the changeset viewer.