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

Feature Request: Loss free resistor #132

Open
EmergencyTemporalShift opened this issue Dec 20, 2024 · 10 comments
Open

Feature Request: Loss free resistor #132

EmergencyTemporalShift opened this issue Dec 20, 2024 · 10 comments

Comments

@EmergencyTemporalShift
Copy link

https://en.wikipedia.org/wiki/Loss_free_resistor
Loss free resistors are a type of resistor that feed power back into their source instead of dissipating it as heat. An example circuit and internals would also be nice to have.

@pfalstad
Copy link
Owner

You filed an issue about this already: sharpie7#555

I used a VCCS to model it: https://tinyurl.com/yanxq2z5

@EmergencyTemporalShift
Copy link
Author

My bad, I thought I did, but forgot there were two forks when I didn't find it.

@EmergencyTemporalShift
Copy link
Author

I still think it deserves a place in the index with a little blurb though, it's educational.

@EmergencyTemporalShift
Copy link
Author

I used a VCCS to model it: https://tinyurl.com/yanxq2z5
Is the capacitor supposed to gain more charge over time? Is it because there is no real load? I might just not understand the concept well enough.

@pfalstad
Copy link
Owner

I think so. The capacitor stores all the energy that was drained from the source.

@EmergencyTemporalShift
Copy link
Author

And how do you tune the "resistance"?

@pfalstad
Copy link
Owner

The output function of each controlled source includes a 1000 in the formula.. Change this to the resistance you want

@EmergencyTemporalShift
Copy link
Author

I'm trying to make the resistance adjustable, but I just get a singularity error. https://tinyurl.com/2alykrwt Is this a problem with the implementation or my circuit?

@pfalstad
Copy link
Owner

replace c with max(c, 1) in the first controlled source and replace e with max(e, 1) in the second. The problem is that c/e are zero in the first iteration, so the current is infinite.

@pfalstad
Copy link
Owner

pfalstad commented Dec 21, 2024

It looks like you're trying to use the energy in the cap for something, which won't work with a VCVS output. This works better:

https://tinyurl.com/25hw4gt5

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