Changeset 2607


Ignore:
Timestamp:
Mar 27, 2006, 2:23:37 PM (19 years ago)
Author:
duncan
Message:

method name fix

Location:
inundation/pyvolution
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • inundation/pyvolution/domain.py

    r2601 r2607  
    1414from generic_boundary_conditions import Time_boundary
    1515from generic_boundary_conditions import Transmissive_boundary
    16 from pmesh2domain import _pmesh_to_domain
     16from pmesh2domain import pmesh_to_domain
    1717
    1818import types
     
    3030            coordinates, vertices, boundary, vertex_quantity_dict \
    3131                                ,tagged_elements, geo_reference = \
    32                                 _pmesh_to_domain(file_name=mesh_file)
     32                                pmesh_to_domain(file_name=mesh_file)
    3333            # FIXME(DSG-DSG) have to do something with vertex_quantity_dict
    3434
  • inundation/pyvolution/pmesh2domain.py

    r2605 r2607  
    1919    vertex_coordinates, vertices, tag_dict, vertex_quantity_dict \
    2020                        ,tagged_elements_dict, geo_reference = \
    21                         _pmesh_to_domain(mesh_instance=mesh)
     21                        pmesh_to_domain(mesh_instance=mesh)
    2222
    2323
     
    7979    vertex_coordinates, vertices, tag_dict, vertex_quantity_dict \
    8080                        ,tagged_elements_dict, geo_reference = \
    81                         _pmesh_to_domain(file_name=file_name)
     81                        pmesh_to_domain(file_name=file_name)
    8282
    8383
     
    115115
    116116
    117 def _pmesh_to_domain(file_name=None,
     117def pmesh_to_domain(file_name=None,
    118118                    mesh_instance=None):
    119119    """
    120     convert a pmesh dictionary to a list of Volumes.
    121     Also, return a list of triangles which have boundary tags
    122     mesh_dict structure;
    123     generated point list: [(x1,y1),(x2,y2),...] (Tuples of doubles)
    124     generated point attribute list:[(P1att1,P1attt2, ...),(P2att1,P2attt2,...),...]
    125     generated segment list: [(point1,point2),(p3,p4),...] (Tuples of integers)
    126     generated segment tag list: [S1Tag, S2Tag, ...] (list of ints)
    127     triangle list:  [(point1, point2, point3),(p5,p4, p1),...] (Tuples of integers)
    128     triangle neighbor list: [(triangle1,triangle2, triangle3),(t5,t4, t1),...] (Tuples of integers) -1 means there's no triangle neighbor
    129     triangle attribute list: [T1att, T2att, ...] (list of strings)
     120    Convert a pmesh file or a pmesh mesh instance to a bunch of lists
     121    that can be used to instanciate a domain object.
    130122    """
    131123
Note: See TracChangeset for help on using the changeset viewer.