SciML / SciML/ModelingToolkitStandardLibrary.jl
Plotting output/input values
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 171
- Forks
- 49
- Avg merge
- 15h 50m
- Merged PRs (30d)
- 10
Description
How one does plot the values of the input/output pins?
For example, from the RC circuit example (not working on v1.4.0 , see #70) one plots the current and voltage in the components with
plot(sol, vars = [capacitor.v,resistor.i])
but (as I was expecting being used to work with MTK) this doesn't work
plot(sol, vars = [capacitor.v, resistor.i, source.V])
or in the modified version (#70)
plot(sol, vars = [C.v, R.i, V.V])
or
plot(sol, vars = [C.v,R.i, source.output])
Is this because we are not composing the systems but directly assemble the ODESystem? or is it an effect of the connect function?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the RC circuit example and the plotting calls shown in this issue, including the modified version referenced by #70. Trace how the assembled ODESystem and connect calls expose capacitor, resistor, and source variables, then determine whether plotting the requested pin values is supported; done means the supported behavior or required correction is documented and verified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100