SciML / ModelingToolkitStandardLibrary.jl

A standard library of components to model the world and beyond
https://docs.sciml.ai/ModelingToolkitStandardLibrary/stable/
MIT License
112 stars 36 forks source link

add ability to modify system after analysis point handling #316

Closed baggepinnen closed 1 week ago

baggepinnen commented 1 month ago

add ability to modify system after analysis point handling, but before linearization

This allows conversion to JuliaSimCompiler.IRSystem for the structural simplification

ChrisRackauckas commented 1 month ago

Needs tests?

baggepinnen commented 1 month ago

The intention is to make analysis points work with JuliaSimCompiler by passing system_modifier = IRSystem. I make use of this in Multibody so I will have some tests downstream (already have), but I don't think we want to add JSCompiler as a test dependency to test only this here.

100% of the diff in this PR is run in the tests already, there's just no tests for system_modifier != identity