示例#1
0
 def test_horiz_2blocks(self):
     global blocks, output
     output = os.path.join(tmpdir, 'horiz_2block')
     blocks = 2
     ctrl = LBSimulationController(SimulationTest, SphereGeometry)
     ctrl.run(ignore_cmdline=True)
     util.verify_fields(self.ref, output, self.digits, MAX_ITERS)
示例#2
0
 def test_8blocks(self):
     global blocks, output
     output = os.path.join(tmpdir, 'horiz_8block')
     blocks = 8
     ctrl = LBSimulationController(SimulationTest, LDCGeometry)
     ctrl.run(ignore_cmdline=True)
     util.verify_fields(self.ref, output, self.digits, MAX_ITERS)
示例#3
0
 def test_2blocks_vert(self):
     global output
     output = os.path.join(tmpdir, '2blocks_vert')
     LBSimulationController(
         FESimulationTest, Geometry2BlocksVertical).run(ignore_cmdline=True)
     util.verify_fields(self.ref, output, self.digits, MAX_ITERS)
示例#4
0
 def test_4blocks(self):
     global output
     output = os.path.join(tmpdir, '4blocks')
     LBSimulationController(SCSimulationTest,
                            Geometry4Blocks).run(ignore_cmdline=True)
     util.verify_fields(self.ref, output, self.digits, MAX_ITERS)
示例#5
0
 def test_2blocks_vert(self):
     global output
     output = os.path.join(tmpdir, '2blocks_vert')
     LBSimulationController(FESimulationTest, Geometry2BlocksVertical).run(ignore_cmdline=True)
     util.verify_fields(self.ref, output, self.digits, MAX_ITERS)
示例#6
0
 def test_4blocks(self):
     global output
     output = os.path.join(tmpdir, '4blocks')
     LBSimulationController(SCSimulationTest, Geometry4Blocks).run(ignore_cmdline=True)
     util.verify_fields(self.ref, output, self.digits, MAX_ITERS)