[Transport/Test] Add test of CK_Mode
This commit is contained in:
parent
435f28641e
commit
1b605133d8
1 changed files with 9 additions and 0 deletions
|
|
@ -47,6 +47,15 @@ class TestTransport(utilities.CanteraTest):
|
|||
self.assertArrayNear(Dbin1, Dbin2)
|
||||
self.assertArrayNear(Dbin1, Dbin1.T)
|
||||
|
||||
def test_CK_mode(self):
|
||||
mu_ct = self.phase.viscosity
|
||||
self.phase.transport_model = 'CK_Mix'
|
||||
self.assertEqual(self.phase.transport_model, 'CK_Mix')
|
||||
mu_ck = self.phase.viscosity
|
||||
# values should be close, but not identical
|
||||
self.assertGreater(abs(mu_ct - mu_ck) / mu_ct, 1e-8)
|
||||
self.assertLess(abs(mu_ct - mu_ck) / mu_ct, 1e-2)
|
||||
|
||||
def test_ionGas(self):
|
||||
# IonGasTransport gives the same result for a mixture
|
||||
# without ionized species
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue