SciML / SciML/ModelingToolkitStandardLibrary.jl

Plotting output/input values

Open
#71 1 comment 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.