def test_sie(self): """cog8 problem: sie""" sol = Cog8(rho0=3.0, beta=2.0, temp0=100., alpha=-1., gamma=5. / 3., Gamma=6.666666666666667e11) r = numpy.array([0.1, 0.2]) t = 0.6 solrt = sol(r, t) self.assertAlmostEqual(solrt.sie[0], 358807872802985.2)
def test_velocity(self): """cog8 problem: velocity""" sol = Cog8(rho0=3.0, beta=2.0, temp0=100., alpha=-1., gamma=5. / 3., Gamma=6.666666666666667e11) r = numpy.array([0.1, 0.2]) t = 0.6 solrt = sol(r, t) self.assertAlmostEqual(solrt.velocity[0], 0.16666666666666669)
def test_density(self): """cog8 problem: density""" sol = Cog8(rho0=3.0, beta=2.0, temp0=100., alpha=-1., gamma=5. / 3., Gamma=6.666666666666667e11) r = numpy.array([0.1, 0.2]) t = 0.6 solrt = sol(r, t) self.assertAlmostEqual(solrt.density[0], 10.752341249425138)
def test_pressure(self): """cog8 problem: pressure""" sol = Cog8(rho0=3.0, beta=2.0, temp0=100., alpha=-1., gamma=5. / 3., Gamma=6.666666666666667e11) r = numpy.array([0.1, 0.2]) t = 0.6 solrt = sol(r, t) self.assertAlmostEqual(solrt.pressure[0], 2572016460905351.0)