Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
mjohnson541 committed Jul 5, 2024
1 parent 5d7a3f3 commit d03294c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyrms/rmsTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def test_simulate(self):
ig = rms.IdealGas(spcs,rxns,name="gas")
initialconds = {"T":1000.0,"P":10.0e5,"H2":2.0,"O2":1.0}
domain,y0,p = rms.ConstantTPDomain(phase=ig,initialconds=jl.convert(jl.Dict,initialconds))
react = rms.Reactor(domain,y0,(0.0,10.001))
react = rms.Reactor(domain,y0,(0.0,10.001),p=p)
sol = rms.solve(react.ode,rms.CVODE_BDF(),abstol=1e-20,reltol=1e-8)
sim = rms.Simulation(sol,domain)
self.assertAlmostEqual(rms.molefractions(sim,"H2",3.0),0.34445669,places=3)

0 comments on commit d03294c

Please sign in to comment.