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)
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)
def test_shed_vortex_thin(self): body = flat_plate(8) self.check_shed_vortex(body, 0.2) self.check_shed_vortex(body, 0.3)