Resonance circuit: achieving the sinus waveform

Hello everyone, I have a basic serial resonance circuit, which simulates frequency converter with output square waveform and I am not able to achieve the sinus waveform during resonance.
Do you have any experience with this?

The model is in the attachment.

Thank you.

Mike

test.mo (2.46 KB)

Hi,

I’m not sure if you are trying to filter the square with an RLC filter or make the RLC circuit resonate. In the first case, you need to design the filter so it lets pass only the frequency of your pulse and filter out the higher harmonics.

By looking at the parameters you have set, I can see that the damping factor is 3. In order to resonate, the damping needs to be less than 1.

Check the article on Wikipedia and you will find how to calculate the parameters RLC circuit - Wikipedia

You have to much damping and the period of the source doesn’t match the resonance frequency. With a period of 0.00316 s and a resistance of 0.015 Ohm I do get a sinus.

Otto

test.mo (2.92 KB)

Thank you, the dampening factor is a good point. I still have a problem with this type of simulation, I don’t see any phase shift between current and voltage. When the circuit is below or above resonance.