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

[BUG]Net node works abnormally when #111

Closed
XLin0mu opened this issue Mar 9, 2024 · 1 comment
Closed

[BUG]Net node works abnormally when #111

XLin0mu opened this issue Mar 9, 2024 · 1 comment

Comments

@XLin0mu
Copy link

XLin0mu commented Mar 9, 2024

Minimum test case:

using ACME

c_work = @circuit begin
    src = voltagesource(), [+] == gnd_up, [-] == gnd_down
    r1 = resistor(10), [1] == gnd_up, [2] == gnd_down
    G = voltageprobe(), [+] == gnd_up, [-] == gnd_down
end;

c_not_work = @circuit begin
	src = voltagesource(), [+] == gnd_up, [-] == gnd_down
    r1 = resistor(10), [1] == gnd_up, [2] == gnd_down
    G = voltageprobe()
    G[+] == gnd_up
    G[-] == gnd_dowd
end;

model_work = DiscreteModel(c_work, 1/50);
model_not_work = DiscreteModel(c_not_work, 1/50);

y_w = run!(model_work, 16sin.(2π*1000/44100*(0:99)'))
y_n_w = run!(model_not_work, 16sin.(2π*1000/44100*(0:99)'))
@martinholters
Copy link
Member

G[-] == gnd_dowd

Typo? If you use gnd_down here, y_w and y_n_w become the same, which I suppose you were expecting?

The code as provided gives

Warning: Model output depends on indeterminate quantity

which is correct, as gnd_dowd is floating and the voltage is therefore indeterminate.

Closing as from my perspective, this works as it should, but please comment if I misunderstood.

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

2 participants