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

Oscillatory spiking in capacitors #788

Open
samreid opened this issue Nov 30, 2021 · 3 comments
Open

Oscillatory spiking in capacitors #788

samreid opened this issue Nov 30, 2021 · 3 comments

Comments

@samreid
Copy link
Member

samreid commented Nov 30, 2021

From #784 (comment)

First, in this video (the resistance is 0.0 ohm), you will see the capacitors not appearing to reach a steady state solution when connected across a battery.

In my testing in dev.52, I do see a steady state solution reached soon. I'm not sure if I had the same battery voltage or capacitances in your test, since they were not reported. I'm using default values for capacitance, and a 120V battery in this test.

Kapture 2021-11-23 at 08 21 35

However, notice the oscillation in the voltage graph. That is new in dev.52 (not present in dev.48) and looks buggy.

And then when the capacitors are shorted, they should fully discharge, but appear to retain charge and have a voltage across them

I saw it go to 0.0V but still showed some charge.

Kapture 2021-11-23 at 08 25 00

Likely this could be solved with a different tolerance in the voltage-to-charge mapping, but we should understand the oscillation behavior first.

For the 2nd video, I'm seeing all the same behaviors in dev.48 (the first QA dev test, before we changed any signs), so presumably that buggy behavior predates any sign changes in this issue. So perhaps I'll move that aspect to a new issue.

So this issue will be about correcting the buggy oscillation behavior in the capacitors. Or, we have the option of reverting the changes in this issue and going back to a dev.48 behavior which did not have the buggy oscillation.

@samreid samreid added this to the AC 1.0 milestone Nov 30, 2021
@samreid samreid self-assigned this Nov 30, 2021
@samreid
Copy link
Member Author

samreid commented Nov 30, 2021

Or, we have the option of reverting the changes in this issue and going back to a dev.48 behavior which did not have the buggy oscillation.

I am seeing the same spiking oscillatory behavior in dev.48:

image

@samreid
Copy link
Member Author

samreid commented Nov 30, 2021

In yesterday's meeting, we wondered if this issue relates to #787 .

In Java, I'm seeing a spike but no oscillation. Could this be why we require the initial bias calculation?

Java has different values for wire resistance and default capacitances, maybe that explains it?

@samreid
Copy link
Member Author

samreid commented Dec 1, 2021

@arouinfar and I discussed that shorting capacitors is somewhat nonphysical, and that the behavior is as expected as soon as the resistance is 0.1 ohms or higher. Therefore this doesn't need to be addressed for RC.1. @arouinfar confirmed this is already documented in the teacher tips. We may not ever fix this ourselves with our hand-written model, but maybe leave this open in case we explore spice or another model implementation.

@samreid samreid removed their assignment Dec 1, 2021
@samreid samreid removed this from the AC 1.0 milestone Dec 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant