コード例 #1
0
 def check_timestepper(self, timestepper_cls):
     body = flat_plate(20)
     bound = BoundVortices(body)
     Uinfty = (1, 0)
     dt = 0.1
     flow = timestepper_cls(dt, Uinfty, bound)
     self.assertEqual(flow.time, 0)
     self.assertEqual(len(flow.wake), 1)
     vort = flow.bound.vortices
     wake = flow.wake
     self.assertEqual(vort.circulation, -wake.circulation)
     flow.advance()
     self.assertEqual(flow.time, dt)
     self.assertEqual(len(wake), 2)
     self.assertEqual(vort.circulation, -wake.circulation)
コード例 #2
0
ファイル: test_timestepper.py プロジェクト: Haider-BA/pysces
 def check_timestepper(self, timestepper_cls):
     body = flat_plate(20)
     bound = BoundVortices(body)
     Uinfty = (1,0)
     dt = 0.1
     flow = timestepper_cls(dt, Uinfty, bound)
     self.assertEqual(flow.time, 0)
     self.assertEqual(len(flow.wake), 1)
     vort = flow.bound.vortices
     wake = flow.wake
     self.assertEqual(vort.circulation, -wake.circulation)
     flow.advance()
     self.assertEqual(flow.time, dt)
     self.assertEqual(len(wake), 2)
     self.assertEqual(vort.circulation, -wake.circulation)
コード例 #3
0
ファイル: test_panel.py プロジェクト: Haider-BA/pysces
 def test_shed_vortex_thin(self):
     body = flat_plate(8)
     self.check_shed_vortex(body, 0.2)
     self.check_shed_vortex(body, 0.3)
コード例 #4
0
ファイル: test_panel.py プロジェクト: wgddd/pysces
 def test_shed_vortex_thin(self):
     body = flat_plate(8)
     self.check_shed_vortex(body, 0.2)
     self.check_shed_vortex(body, 0.3)