(self)
| 1972 | sim.max_order = -1 |
| 1973 | |
| 1974 | def test_reinitialization(self): |
| 1975 | surf, gas = self.import_phases() |
| 1976 | gas.TPX = 1700, 4000, 'NH3:1.0, SiF4:0.4' |
| 1977 | surf.TP = gas.TP |
| 1978 | |
| 1979 | r, rsurf, sim = self.make_reactors(gas, surf) |
| 1980 | r.mass_flow_rate = 0.01 |
| 1981 | sim.advance(0.6) |
| 1982 | Ygas1 = r.thermo.Y |
| 1983 | cov1 = rsurf.kinetics.coverages |
| 1984 | |
| 1985 | # Reset the reactor to the same initial state |
| 1986 | gas.TPX = 1700, 4000, 'NH3:1.0, SiF4:0.4' |
| 1987 | surf.TP = gas.TP |
| 1988 | r.mass_flow_rate = 0.01 |
| 1989 | r.syncState() |
| 1990 | |
| 1991 | sim.initial_time = 0. |
| 1992 | sim.advance(0.6) |
| 1993 | Ygas2 = r.thermo.Y |
| 1994 | cov2 = rsurf.kinetics.coverages |
| 1995 | |
| 1996 | assert Ygas1 == approx(Ygas2) |
| 1997 | assert cov1 == approx(cov2) |
| 1998 | |
| 1999 | def test_initial_condition_tolerances(self): |
| 2000 | surf, gas = self.import_phases() |
nothing calls this directly
no test coverage detected