[Transport] Add test for unity Lewis number transport model
This commit is contained in:
parent
d38d9da32c
commit
29a3c19399
1 changed files with 9 additions and 0 deletions
|
|
@ -15,6 +15,15 @@ class TestTransport(utilities.CanteraTest):
|
|||
self.assertTrue(self.phase.viscosity > 0.0)
|
||||
self.assertTrue(self.phase.thermal_conductivity > 0.0)
|
||||
|
||||
def test_unityLewis(self):
|
||||
self.phase.transport_model = 'UnityLewis'
|
||||
alpha = self.phase.thermal_conductivity/(self.phase.density*self.phase.cp)
|
||||
Dkm = self.phase.mix_diff_coeffs
|
||||
|
||||
eps = np.spacing(1) # Machine precision
|
||||
self.assertTrue(all(np.diff(Dkm) < 2*eps))
|
||||
self.assertNear(Dkm[0], alpha)
|
||||
|
||||
def test_mixtureAveraged(self):
|
||||
self.assertEqual(self.phase.transport_model, 'Mix')
|
||||
Dkm1 = self.phase.mix_diff_coeffs
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue