Changeset 6654 for anuga_core/source/anuga/abstract_2d_finite_volumes
- Timestamp:
- Mar 28, 2009, 6:54:15 PM (15 years ago)
- 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 235 235 """ 236 236 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 237 244 238 245 def get_number_of_nodes(self): -
anuga_core/source/anuga/abstract_2d_finite_volumes/neighbour_mesh.py
r6191 r6654 687 687 688 688 689 # Check neighbour structure689 # Check neighbour structure 690 690 for i in range(N): 691 691 # For each triangle … … 869 869 870 870 def get_triangle_containing_point(self, point): 871 """Return triangle id for triangle containing specifie nd point (x,y)871 """Return triangle id for triangle containing specified point (x,y) 872 872 873 873 If point isn't within mesh, raise exception -
anuga_core/source/anuga/abstract_2d_finite_volumes/quantity.py
r6541 r6654 1111 1111 # @param use_cache 1112 1112 # @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): 1118 1119 """Get values for quantity 1119 1120 … … 1168 1169 # Edges have already been deprecated in set_values, see changeset:5521, 1169 1170 # but *might* be useful in get_values. Any thoughts anyone? 1171 # YES (Ole): Edge values are necessary for volumetric balance check 1170 1172 1171 1173 if location not in ['vertices', 'centroids', -
anuga_core/source/anuga/abstract_2d_finite_volumes/quantity_ext.c
r5897 r6654 607 607 608 608 int _interpolate_from_vertices_to_edges(int N, 609 610 609 double* vertex_values, 610 double* edge_values) { 611 611 612 612 int k, k3; … … 630 630 631 631 int _interpolate_from_edges_to_vertices(int N, 632 633 632 double* vertex_values, 633 double* edge_values) { 634 634 635 635 int k, k3;
Note: See TracChangeset
for help on using the changeset viewer.