Esempio n. 1
0
 def testBoundaryRead(self):
     blk=ParsedBlockMeshDict(SolutionDirectory(self.dest).blockMesh())
     self.assertEqual(blk.convertToMeters(),1.)
     self.assertEqual(len(blk.vertices()),22)
     self.assertEqual(len(blk.blocks()),5)
     self.assertEqual(len(blk.patches()),6)
     self.assertEqual(len(blk.arcs()),8)
     self.assertEqual(blk.typicalLength(),1.25)
     self.assertEqual(str(blk.getBounds()),"([0.0, 0.0, 0.0], [2.0, 2.0, 0.5])")
Esempio n. 2
0
 def testBoundaryRead(self):
     blk = ParsedBlockMeshDict(SolutionDirectory(self.dest).blockMesh())
     self.assertEqual(blk.convertToMeters(), 1.)
     self.assertEqual(len(blk.vertices()), 22)
     self.assertEqual(len(blk.blocks()), 5)
     self.assertEqual(len(blk.patches()), 6)
     self.assertEqual(len(blk.arcs()), 8)
     self.assertEqual(blk.typicalLength(), 1.25)
     self.assertEqual(str(blk.getBounds()),
                      "([0.0, 0.0, 0.0], [2.0, 2.0, 0.5])")