# Compact packaged-build smoke test.
#
# This input is intentionally small and numerically tame so packaging jobs can
# verify the shipped executable without tripping solver edge cases from the
# heavier examples.

let A_site = 1e-20
let arr_base = {Vf=1e13, Vb=1e13}

components {
  CO   {phase=gas, init=2.0, role=reactant},
  O2   {phase=gas, init=1.0, role=reactant},
  CO2  {phase=gas, init=0.0, role=product},
  CO*  {phase=surface, init=0.0, tags=[tdrc]},
  O*   {phase=surface, init=0.0, tags=[tdrc]},
  CO2* {phase=surface, init=0.0, tags=[tdrc]},
  *    {phase=surface, init=1.0, tags=[emptysite]}
}

reactions {
  {CO}+{*}=>{CO*} @ HertzKnudsenDefault(Asite=A_site, m=28, theta=2.8, sigma=1, S=1, Edes=71e3),
  {O2}+2{*}=>2{O*} @ HertzKnudsenDefault(Asite=A_site, m=32, theta=2.08, sigma=2, S=1, Edes=264e3),
  {CO*}+{O*}=>{CO2*}+{*} @ ArrheniusDefault(*arr_base, Eaf=133e3, Eab=213e3)
}

simulation {
  baseline @ transient_solve(
    model=thermal,
    solver={method=cvode_bdf, atol=1e-8, rtol=1e-8, t_end=1e4, steady_state_threshold=1e-6},
    conditions=[{T=550}, {T=650}, {T=750}]
  )
}

output {
  formats=[tabdelim, hdf5, excel],
  folder="results_package_smoke",
  plots=["aggregated/kinetics/derivatives"]
}
