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

store more useful information in symbolic struct #1058

Merged
merged 2 commits into from
Feb 20, 2024
Merged

Conversation

baggepinnen
Copy link
Collaborator

@baggepinnen baggepinnen commented Feb 16, 2024

The julia type is required to create a struct connector, like

@connector function StructInput(; structdef, name)
    n = Symbolics.juliatype(structdef)
    @variables u(t)::n [input = true]
    ODESystem(Equation[], t, [u], []; name = name)
end

where the symbolic variable u is of a struct type.

@YingboMa YingboMa merged commit 38b0d61 into master Feb 20, 2024
5 of 11 checks passed
@YingboMa YingboMa deleted the fb/morestructs branch February 20, 2024 15:41
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

Successfully merging this pull request may close these issues.

2 participants