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

Index with non-existing dummy derivative #8

Open
baggepinnen opened this issue Mar 1, 2023 · 0 comments
Open

Index with non-existing dummy derivative #8

baggepinnen opened this issue Mar 1, 2023 · 0 comments

Comments

@baggepinnen
Copy link
Contributor

MTK often produces "dummy derivative" variables. It would be a handy feature if one could index a solution with such a dummy derivative, even if it's not present in the solution. This need arises due to the fact that MTK can select any state realization it wants, and sometimes dummy derivatives are introduced, sometimes not.

I've figured out that one can index a solution object at a derivative with the syntax sol(0.1, Val{1}, idxs=var) to obtain the derivative of var

If I then want to index the solution with a variable pilot₊drho1ˍt(t) that is not present in the solution, how do I get a handle to the variable pilot₊drho1 so that I can perform this indexing?

Better yet, could the indexing with pilot₊drho1ˍt(t) be made to do this automatically?

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