Changeset 8235


Ignore:
Timestamp:
Oct 25, 2011, 3:11:37 PM (12 years ago)
Author:
steve
Message:

Added in update_special condition for sudi

Location:
trunk/anuga_core/source/anuga
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga/abstract_2d_finite_volumes/generic_domain.py

    r8234 r8235  
    13081308        self.number_of_first_order_steps = 0
    13091309
     1310        # Update centroid values of conserved quantites to satisfy
     1311        # special conditions
     1312        self.update_special_conditions()
     1313
    13101314        # Update ghosts to ensure all centroid values are available
    13111315        self.update_ghosts()
     
    14271431        self.update_conserved_quantities()
    14281432
     1433
     1434        # Update special conditions
     1435        self.update_special_conditions()
     1436
    14291437        # Update ghosts
    14301438        self.update_ghosts()
     
    14561464        # Update centroid values of conserved quantities
    14571465        self.update_conserved_quantities()
     1466
     1467        # Update special conditions
     1468        self.update_special_conditions()
    14581469
    14591470        # Update ghosts
     
    14931504        self.saxpy_conserved_quantities(0.5, 0.5)
    14941505
     1506        # Update special conditions
     1507        self.update_special_conditions()
     1508
    14951509        # Update ghosts
    14961510        self.update_ghosts()
     
    15231537        # Update conserved quantities
    15241538        self.update_conserved_quantities()
     1539
     1540        # Update special conditions
     1541        self.update_special_conditions()
    15251542
    15261543        # Update ghosts
     
    15601577        self.saxpy_conserved_quantities(0.25, 0.75)
    15611578
     1579
     1580        # Update special conditions
     1581        self.update_special_conditions()
     1582
    15621583        # Update ghosts
    15631584        self.update_ghosts()
     
    15931614        self.saxpy_conserved_quantities(2.0/3.0, 1.0/3.0)
    15941615
     1616
     1617        # Update special conditions
     1618        self.update_special_conditions()
     1619       
    15951620        # Update ghosts
    15961621        self.update_ghosts()
     
    18061831                Q_cv =  self.quantities[q].centroid_values
    18071832                num.put(Q_cv, Idg, num.take(Q_cv, Idf, axis=0))
     1833
     1834    def update_special_conditions(self):
     1835        """There may be a need to change the values of the conserved
     1836        quantities to satisfy special conditions at the very lowest level
     1837        the fluid flow calculation
     1838        """
     1839       
     1840        pass
     1841
    18081842
    18091843    def update_other_quantities(self):
  • trunk/anuga_core/source/anuga/shallow_water/shallow_water_domain.py

    r8231 r8235  
    240240        self.optimised_gradient_limiter = optimised_gradient_limiter
    241241        self.use_centroid_velocities = use_centroid_velocities       
     242
     243
     244    def update_special_conditions(self):
     245
     246        my_update_special_conditions(self)
     247
    242248
    243249
     
    14831489    return wet_friction
    14841490
     1491def my_update_special_conditions(domain):
     1492
     1493    pass
    14851494
    14861495
  • trunk/anuga_core/source/anuga/structures/inlet.py

    r8092 r8235  
    1414        self.domain = domain
    1515        self.domain_bounding_polygon = self.domain.get_boundary_polygon()
    16         self.line = line
     16        self.line = num.asarray(line, 'f')
    1717        self.verbose = verbose
    1818
Note: See TracChangeset for help on using the changeset viewer.