PWM block or demo in Xcos
Reported by Adailton Júnior
pwm_xcos.zcos (5.79 KB, application/zip)
PWM block Demo
Today, renewable energy is increasing in a surprisingly high rate and with it comes the need to reduce cost in generation and transmission of energy. To reduce cost, researches are being conducted all over the world in the field of power electronics because power electronics is a fundamental key to renewable energy. It is used in generation of electrical energy (in wind turbines and photovoltaic generation for example) and in transmission (direct current transmission with conversion from alternating current to direct current and the other way around).
In power electronics, every simulation uses pulse width modulation (PWM). PWM is a modulation used to control power supplied to different kinds of power electronics converters, such as DC-DC, DC-AC, AC-DC and AC-AC converters and it is used also to encode messages, by controlling the time a electrical switch is on or off and thus the power supplied to the load.
Because of that, it is very important to have a Xcos block with that capability.
Attached is a simple implementation of a PWM block that can be used as a demo.
The attached file, implemented as it is, works pretty well for power converters operating in discontinuous and continuous conduction mode.
What's missing:
- the possibility to change the switching frequency (it is very important for power converters operanting in boundary conduction mode).
The file attached could be integrated as a demo in Xcos or as a block (maybe in the electrical section).