Changeset 2607
- Timestamp:
- Mar 27, 2006, 2:23:37 PM (19 years ago)
- Location:
- inundation/pyvolution
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/pyvolution/domain.py
r2601 r2607 14 14 from generic_boundary_conditions import Time_boundary 15 15 from generic_boundary_conditions import Transmissive_boundary 16 from pmesh2domain import _pmesh_to_domain16 from pmesh2domain import pmesh_to_domain 17 17 18 18 import types … … 30 30 coordinates, vertices, boundary, vertex_quantity_dict \ 31 31 ,tagged_elements, geo_reference = \ 32 _pmesh_to_domain(file_name=mesh_file)32 pmesh_to_domain(file_name=mesh_file) 33 33 # FIXME(DSG-DSG) have to do something with vertex_quantity_dict 34 34 -
inundation/pyvolution/pmesh2domain.py
r2605 r2607 19 19 vertex_coordinates, vertices, tag_dict, vertex_quantity_dict \ 20 20 ,tagged_elements_dict, geo_reference = \ 21 _pmesh_to_domain(mesh_instance=mesh)21 pmesh_to_domain(mesh_instance=mesh) 22 22 23 23 … … 79 79 vertex_coordinates, vertices, tag_dict, vertex_quantity_dict \ 80 80 ,tagged_elements_dict, geo_reference = \ 81 _pmesh_to_domain(file_name=file_name)81 pmesh_to_domain(file_name=file_name) 82 82 83 83 … … 115 115 116 116 117 def _pmesh_to_domain(file_name=None,117 def pmesh_to_domain(file_name=None, 118 118 mesh_instance=None): 119 119 """ 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. 130 122 """ 131 123
Note: See TracChangeset
for help on using the changeset viewer.