The basic example of idealGas in reactionMechanism.jl fails to due no default for stoichmatrix.
Advice to fix is much appreciated. Thx!
using ReactionMechanismSimulator
phaseDict = readinput("src/superminimal.rms")
spcs = phaseDict["phase"]["Species"]
rxns = phaseDict["phase"]["Reactions"]
ig = IdealGas(spcs,rxns,name="gas")
# ERROR: LoadError: Field 'stoichmatrix' has no default, supply it with keyword.
# Stacktrace:
# [1] error(s::String)
# @ Base ./error.jl:33
# [2] IdealGas(species::Vector{Species}, reactions::Vector{ElementaryReaction}; name::String, diffusionlimited::Bool)
# @ ReactionMechanismSimulator ~/.julia/packages/ReactionMechanismSimulator/MW0YP/src/Phase.jl:32
# [3] top-level scope
# @ ~/Projects/SIR/src/RMS.jl:6
initialconds = Dict(["T"=>1000.0,"P"=>1e5,"H2"=>0.67,"O2"=>0.33]) # Initial Temp and Pressure
domain,y0,p = ConstantTPDomain(phase=ig,initialconds=initialconds)
react = Reactor(domain,y0,(0.0,150.1);p=p)
sol = solve(react.ode,CVODE_BDF(),abstol=1e-20,reltol=1e-12)
bsol = Simulation(sol, domain)