mirror of
https://github.com/Cantera/cantera.git
synced 2026-08-19 01:14:44 -05:00
[Reactor] Deprecate Reactor::syncState
This commit is contained in:
committed by
Ingmar Schoegl
parent
24cd615278
commit
2d938145ab
@@ -127,7 +127,6 @@ states2 = ct.SolutionArray(gas2)
|
||||
for n in range(n_steps):
|
||||
# Set the state of the reservoir to match that of the previous reactor
|
||||
upstream.phase.TDY = r2.phase.TDY
|
||||
upstream.syncState()
|
||||
# integrate the reactor forward in time until steady state is reached
|
||||
sim2.reinitialize()
|
||||
sim2.advance_to_steady_state()
|
||||
|
||||
@@ -107,7 +107,6 @@ output_data = []
|
||||
for n in range(NReactors):
|
||||
# Set the state of the reservoir to match that of the previous reactor
|
||||
upstream.phase.TDY = r.phase.TDY
|
||||
# upstream.syncState()
|
||||
sim.reinitialize()
|
||||
sim.advance_to_steady_state()
|
||||
dist = n * rlen * 1.0e3 # distance in mm
|
||||
|
||||
Reference in New Issue
Block a user