Ignore:
Timestamp:
Mar 28, 2009, 6:54:15 PM (15 years ago)
Author:
ole
Message:

Added volumetric balance report for boundary flows and total volume.
Flows due to forcing terms have not yet been added.

Location:
anuga_core/source/anuga/abstract_2d_finite_volumes
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/abstract_2d_finite_volumes/general_mesh.py

    r6191 r6654  
    235235        """
    236236        return self.normals[i, 2*j:2*j+2]
     237       
     238    def get_edgelength(self, i, j):
     239        """Return length of j'th edge of the i'th triangle.
     240        Return value is the numeric array slice [x, y]
     241        """
     242        return self.edgelengths[i, j]
     243               
    237244
    238245    def get_number_of_nodes(self):
  • anuga_core/source/anuga/abstract_2d_finite_volumes/neighbour_mesh.py

    r6191 r6654  
    687687
    688688
    689         #Check neighbour structure
     689        # Check neighbour structure
    690690        for i in range(N):
    691691            # For each triangle
     
    869869
    870870    def get_triangle_containing_point(self, point):
    871         """Return triangle id for triangle containing specifiend point (x,y)
     871        """Return triangle id for triangle containing specified point (x,y)
    872872
    873873        If point isn't within mesh, raise exception
  • anuga_core/source/anuga/abstract_2d_finite_volumes/quantity.py

    r6541 r6654  
    11111111    # @param use_cache
    11121112    # @param verbose True if this method is to be verbose.
    1113     def get_values(self, interpolation_points=None,
    1114                          location='vertices',
    1115                          indices=None,
    1116                          use_cache=False,
    1117                          verbose=False):
     1113    def get_values(self,
     1114                   interpolation_points=None,
     1115                   location='vertices',
     1116                   indices=None,
     1117                   use_cache=False,
     1118                   verbose=False):
    11181119        """Get values for quantity
    11191120
     
    11681169        # Edges have already been deprecated in set_values, see changeset:5521,
    11691170        # but *might* be useful in get_values. Any thoughts anyone?
     1171        # YES (Ole): Edge values are necessary for volumetric balance check
    11701172
    11711173        if location not in ['vertices', 'centroids',
  • anuga_core/source/anuga/abstract_2d_finite_volumes/quantity_ext.c

    r5897 r6654  
    607607
    608608int _interpolate_from_vertices_to_edges(int N,
    609                  double* vertex_values,
    610                  double* edge_values) {
     609                                        double* vertex_values,
     610                                        double* edge_values) {
    611611
    612612        int k, k3;
     
    630630
    631631int _interpolate_from_edges_to_vertices(int N,
    632                  double* vertex_values,
    633                  double* edge_values) {
     632                                        double* vertex_values,
     633                                        double* edge_values) {
    634634
    635635        int k, k3;
Note: See TracChangeset for help on using the changeset viewer.