Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Couldn't have two species in one model equal to the same species in the other model. #69

Open
jialinl6 opened this issue Oct 8, 2024 · 0 comments

Comments

@jialinl6
Copy link

jialinl6 commented Oct 8, 2024

function EarthSciMLBase.couple2(c::GasChem.SuperFastCoupler, e::EarthSciData.NEI2016MonthlyEmisCoupler)
    c, e = c.sys, e.sys
    @parameters uconv, MW_SO2
    operator_compose(convert(ODESystem, c), e, Dict(
            c.SO2 => e.SULF => uconv / MW_SO2,
            c.SO2 => e.SO2 =>  uconv / MW_SO2, ))
end

For example, in this coupled system, only the latter equation is kept. This only creates SuperFast₊NEI2016MonthlyEmis_SO2(t) and no SuperFast₊NEI2016MonthlyEmis_SULF(t). We want c.SO2 = (e.SULF + e.SO2)*uconv/MW_SO2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant