matlabideas

All things MATLAB. And Simulink.

Connecting Solar Cells to electrical circuits designed with blocks from SimPowerSystems library

Here is a good article for researchers who deal with Solar Cells in the Simulink environment.

A common situation that solar cell researchers face is they typically design electrical power systems (e.g RLC Circuits) with blocks from the SimPowerSystems library, and then would like to connect the ‘Solar cell’ block to this circuitry (see figure 1).


Figure 1 – Circuitry designed in SimPowerSystems domain, and User wants to replace DC Voltage Source with a Solar Cell block.

However, as intuitive as figure 1 may seem to be, this method is not possible. This is because the ‘solar cell’ block is obtained from another library and is considered as a member of the family of another domain (SimElectronics). Therefore, when the researcher tries to connect this block to the circuitry, he’ll find that Simulink does not allow the connection.

The tip

Here’s the tip on how to connect the ‘Solar Cell’ block to a circuitry designed with SimPowerSystems. Listed below are the steps in sequence, where each of it is assisted by a diagram.

  1. Connect a current sensor block (Simscape>Foundation Library>Electrical>Electrical Sensors) to the ‘Solar Cell’ block. This block measures the current and outputs a physical signal which will be fed to the SimPowerSystems domain later.


  1. Connect a ‘PS Constant’ block (Simscape>Foundation Library>Physical Signals>Sources) to specify the irradiance value (Light Intensity in W/m2) that falls onto the Solar Cell. Plug in the Solver Configuration block (Simscape>Utilities) to specify the solver parameters that is needed by the model for simulation.


  1. Connect an Electrical reference block (Simscape>Foundation Library>Electrical>Electrical Elements) to represent electrical grounding for the circuit.


  1. Connect a ‘PS-Simulink Converter’ block (Simscape>Utilities) to convert the physical signal to a Simulink signal.


  1. Finally, connect a ‘Controlled Current Source’ block from the SimPowerSystems library (SimPowerSystems/Electrical Sources) to convert the Simulink input Signal to an equivalent current signal in SimPowerSystems.


With this final step, the connection between the Solar Cell and SimPowerSystems has actually been established. The circuit with the solar cell can then be interfaced with the SimPowerSystem circuit as shown in figure 2.


Figure 2 – Connection between Solar Cell and Circuits in SimPowerSystems

Conclusion

That’s the tip to interface the Solar Cell block to the SimPowerSystem domain. Hopefully you will find it useful in your research and development. Happy Working!

About these ads

10 responses to “Connecting Solar Cells to electrical circuits designed with blocks from SimPowerSystems library

  1. Rajerndran Somasundaram September 22, 2013 at 1:40 am

    thanks a lot. I got output and I am very happy. my name is Rajendran from India. sraj_4u@rediffmail.com

    Like

    • OUDDA Meryem February 22, 2014 at 11:30 pm

      I am happy to find this because it help me to understand lot of things.
      Please Allow me to ask you a question; I have a problem in my simultaion; I did a model for photovaltaic panel and an other model for cuk converter and I want connect these tow models; but my problem is that the time of simulation of this tow models is not the same; when photovoltaic”s time is ‘1S discret’ and cuk converter model’s time is ‘0.04s continuous’. so When I simulat this it give me a wrong resuts; although when I did each one alone I fine right resuts

      Like

      • matlabideas February 23, 2014 at 12:11 am

        Hi Meryem,

        Could you send me your model so I can take a look a it? I’d like to know how you interface the two models of different simulation solvers because that may be the source of the problem.

        Like

  2. Nyan Linn Aung March 20, 2014 at 6:26 pm

    Hi Matlabideas,
    Please help me, i can’t get simulation. The problem was in Solver Configuration block. How can fix it ? Could i get parameter for given example. Great thanks in advence. Can you contact me aungaung184@gmail.com

    Like

  3. Alex P. S April 9, 2014 at 7:00 am

    Hello. Thank you for the site. I need a solar cell in a power system. The current after the PS S is the real current of the system ? I need a controled current source ? And, how can I change the irradiance ? Is it possible insert a function ?

    Like

    • matlabideas April 14, 2014 at 2:29 pm

      Hi Alex,

      Not sure if I understand your question. The physical model represents a graphic representation of a system which you can interface with more “conventional” Simulink blocks via the interface blocks provided. Beyond the underlying formulae that determines the cell voltage, the Solar cell block behaves like a Voltage Source block.

      If you need to change the irradiance, you should use a Simulink source block. Connect that block to the Solar cell via a Simulink-PS Converter and you’re good to go. ;-)

      Like

  4. Nyan Linn Aung April 10, 2014 at 4:15 pm

    Good morning ! Mr. matlabideas ! I have an error while simulation this error is shown in the following. Please help me !
    (Nonlinear solver: Linear Algebra error. Failed to solve using iteration matrix. Initial conditions solve failed to converge. Dependency found among topology equations. Check for missing reference node. )

    Like

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: