Hi,
I have previously run a simulation in Chemkin using a constant H, specified P reaction in 0D homogenous batch reactor. The results are plotted below with time (ms) on the x-axis. The pressure trace comes from experimental data and notice that the temperature, which is calculated from pressure, has the same shape as the pressure.

I wish to produce these same results in Cantera (python). I believe that I have made it such that the pressure trace varies with time (uses the experimental trace) in Cantera; however, the resulting temperature does not follow the same shape like it does in Chemkin. Any ideas on why this might be?
Code:
gFFCM2 = ct.Solution(FFCM2.yaml)
gFFCM2.TPX = InitialT, InitialP * ct.one_atm, InitialComposition
rFFCM2 = ct.Reactor(gFFCM2)
simFFCM2 = ct.ReactorNet([rFFCM2])
for n in range(0, len(t)):
gFFCM2.HPX = initialFFCM2h, P_profile[n] * ct.one_atm, rFFCM2.thermo.TPX[2]
rFFCM2 = ct.Reactor(gFFCM2)
simFFCM2 = ct.ReactorNet([rFFCM2])
# then I store some data which is not shown here
Here, the yellow temperature line does not follow the same shape as pressure like in the previous example. This is the issue I wish to resolve. The light blue line is the P_profile