Changeset 2346
- Timestamp:
- Feb 7, 2006, 4:34:47 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/pmesh/test_mesh.py
r2301 r2346 98 98 m = Mesh(userVertices=[a,d,f], userSegments=[s1,s2,s3], regions=[r1] ) 99 99 100 m.generateMesh("Q Apz", maxArea = 2.1 )100 m.generateMesh("Q", maxArea = 2.1 ) 101 101 102 102 #print m … … 127 127 m = Mesh(userVertices=[v0,v1,v2,v3], userSegments=[s1,s2,s3,s4,s5], regions=[r1] ) 128 128 129 m.generateMesh("Q Apz", maxArea = 36 )129 m.generateMesh("Q", maxArea = 36 ) 130 130 131 131 #m.plotMeshTriangle() … … 140 140 m = Mesh(userVertices=[v0,v1,v2,v3], userSegments=[s1,s2,s3,s4,s5], 141 141 regions=[r1,r2] ) 142 m.generateMesh("Q Apz", maxArea = 36 )142 m.generateMesh("Q", maxArea = 36 ) 143 143 144 144 self.failUnless(len(m.meshTriangles) >= 6, … … 151 151 m = Mesh(userVertices=[v0,v1,v2,v3], userSegments=[s1,s2,s3,s4,s5], 152 152 regions=[r1,r2] ) 153 m.generateMesh("Q Apz", maxArea = 36 )153 m.generateMesh("Q", maxArea = 36 ) 154 154 #print "len(m.meshTriangles)",len(m.meshTriangles) 155 155 … … 163 163 m = Mesh(userVertices=[v0,v1,v2,v3], userSegments=[s1,s2,s3,s4,s5], 164 164 regions=[r1,r2] ) 165 m.generateMesh("Q Apz", maxArea = 8 )165 m.generateMesh("Q", maxArea = 8 ) 166 166 self.failUnless(len(m.meshTriangles) >= 8, 167 167 'testregion_with_maxarea 4: # of tris is wrong!') … … 173 173 m = Mesh(userVertices=[v0,v1,v2,v3], userSegments=[s1,s2,s3,s4,s5], 174 174 regions=[r1,r2] ) 175 m.generateMesh("Q Apz", maxArea = 36,isRegionalMaxAreas = False )175 m.generateMesh("Q", maxArea = 36,isRegionalMaxAreas = False ) 176 176 self.failUnless(len(m.meshTriangles) == 2, 177 177 'test_regionalMaxArea 5:generated mesh is wrong!') … … 346 346 347 347 m = Mesh(userVertices=[a,b,c,d,e,f,g], userSegments=[s1,s2,s3,s4,s5,s6,s7,s8,s9,s10], regions=[r1,r2,r3] ) 348 m.generateMesh("Q Apz", maxArea = 2.1 )348 m.generateMesh("Q", maxArea = 2.1 ) 349 349 #print m 350 350 Triangulation = m.getTriangulation() … … 376 376 m = Mesh(userVertices=[a,d,f], userSegments=[s1,s2,s3], regions=[r1]) 377 377 378 m.generateMesh("Q Apz", maxArea = 2.1)378 m.generateMesh("Q", maxArea = 2.1) 379 379 380 380 vert = m.getMeshVertices() … … 403 403 m = Mesh(userVertices=[a,d,f], userSegments=[s1,s2,s3], regions=[r1]) 404 404 405 m.generateMesh("Q Apz", maxArea = 2.1 )405 m.generateMesh("Q", maxArea = 2.1 ) 406 406 407 407 vert = m.getMeshVertices() … … 425 425 m = Mesh(userVertices=[a,d,f], userSegments=[s1,s2,s3]) 426 426 427 m.generateMesh("Q Apz", maxArea = 2.1 )427 m.generateMesh("Q", maxArea = 2.1 ) 428 428 429 429 m.export_mesh_file("from_test_mesh.tsh") … … 456 456 m = Mesh(userVertices=[a,d,f,e], userSegments=[s1,s2,s3,s4]) 457 457 458 m.generateMesh("Q Apz", maxArea = 2.1)458 m.generateMesh("Q", maxArea = 2.1) 459 459 460 460 seg = m.getMeshSegments() … … 480 480 m = Mesh(userVertices=[a,d,f,e], userSegments=[s1,s2,s3,s4]) 481 481 482 m.generateMesh("Q Apz", maxArea = 2.1 )482 m.generateMesh("Q", maxArea = 2.1 ) 483 483 seg = m.getMeshSegments() 484 484 … … 553 553 m = Mesh(userVertices=[a,d,f,e], userSegments=[s1,s2,s3,s4]) 554 554 555 m.generateMesh("Q Apz", maxArea = 2.1 )555 m.generateMesh("Q", maxArea = 2.1 ) 556 556 557 557 seg = m.getMeshSegments() … … 687 687 geo_reference=geo) 688 688 689 m.generateMesh("Q Apz", maxArea = 2.1)689 m.generateMesh("Q", maxArea = 2.1) 690 690 fileName = tempfile.mktemp(".tsh") 691 691 #print "dgs!!!" … … 730 730 geo_reference=geo) 731 731 732 m.generateMesh("Q Apz", maxArea = 2.1)732 m.generateMesh("Q", maxArea = 2.1) 733 733 fileName = tempfile.mktemp(".msh") 734 734 #print "dgs!!!" … … 804 804 holes = [h1]) 805 805 806 m.generateMesh("Q Apz", maxArea = 2.1)806 m.generateMesh("Q", maxArea = 2.1) 807 807 #print "mesh ***************dsg*", m 808 808 … … 977 977 'exported Ascii xya file is wrong') 978 978 979 m.generateMesh("Q Apz", maxArea = 2.1)979 m.generateMesh("Q", maxArea = 2.1) 980 980 fileName = tempfile.mktemp(".xya") 981 981 fileName = 't.xya' … … 1281 1281 regions=[r1]) 1282 1282 1283 m.generateMesh("Q Apza2.1")1283 m.generateMesh("Qa2.1") 1284 1284 1285 1285 seg = m.getMeshSegments() … … 1312 1312 titles = ['ele','friction'] 1313 1313 m.attributeTitles = titles 1314 m.generateMesh("Q Apza2.1")1314 m.generateMesh("Qa2.1") 1315 1315 1316 1316 seg = m.getMeshSegments() … … 1373 1373 titles = ['ele','friction'] 1374 1374 m.attributeTitles = titles 1375 m.generateMesh("Q Apza2.1")1375 m.generateMesh("Qa2.1") 1376 1376 1377 1377 seg = m.getMeshSegments() … … 1462 1462 titles = ['ele','friction'] 1463 1463 m.attributeTitles = titles 1464 m.generateMesh("Q Apza2.1")1464 m.generateMesh("Qa2.1") 1465 1465 1466 1466 seg = m.getMeshSegments()
Note: See TracChangeset
for help on using the changeset viewer.