File Exchange

image thumbnail

Grid-Connected PV Array

version 1.2 (439 KB) by

Two demonstrations of a grid-connected PV array using SimPowerSystems.

430 Downloads

Updated

View License

The following two models are included in the package:

• PVarray_Grid_IncCondReg_det.mdl is a detailed model of a 100-kW array connected to a 25-kV grid via a DC-DC boost converter and a three-phase three-level Voltage Source Converter (VSC). Maximum Power Point Tracking (MPPT) is implemented in the boost converter by means of a Simulink model using the “Incremental Conductance + Integral Regulator” technique.

• PVarray_Grid_PandO_avg.mdl is an average model of a 200-kW array connected to a 25-kV grid via two DC-DC boost converters and a single three-phase VSC. The MPPT controller based on the “Perturb and Observe” technique is implemented by means of a MATLAB Function block that generates embeddable C code.

A Help file containing useful information on the two models is also included.

Authors: Pierre Giroux, Gilbert Sybille, Hydro-Quebec Research Institute (IREQ)
Carlos Osorio, Shripad Chandrachood, The Mathworks

Comments and Ratings (112)

Thank you so much for your great program and share. This program has been very helpful for my research projects.

zhicong chen

Piyush Agarwal

maria khan

hi can u plz help me out in my thesis on this topic any optimization can b done on it ????? plz i m doing on this by many months but in vain now i dont have enough time plz i m using 2015a matlab.......reply on engrmaria78635@gmail.com

shawon baroi

Hey, this is excellet
Btw, can you explain how to calculate the Kp and Ki coeficient in VSC controller. And how to calculate the choke impedance?
Pleas email me bayuindras22@gmail.com
Thanks

amir nazir

hello dear how are you. i am doing my thesis on pv system..please help me in this. i have seen your comments in mathworks program ( PVarray_Grid_IncCondReg). this file is not open in matlab 2011a. please guide me how to open this file because this give an error . if you have another file please send me that file i am great thankful to you.
email id engr.amir132@gmail.com

Neil Liu

Hey man that's excellent!
Wish you always good days!

mamta

mamta (view profile)

Hello , Can you please send the file in MATLAB R2009b.
I really need this file.
this work will help me to understand the part of my research work.

Thank you.

thanks so much

i need the email address of authors , if any body can help me to modify the VSC controlle to recieve power and reactive power setpoint

manju b m

How to tune the PI controllers?

Hey....
Can't understand the internal design of Voltage Source Converter also how have you set the Kp's and Ki's in this model and their transfer function development.
Mail ID: zsaeed92@yahoo.com

hi ,
it's nice job..but
when I am simulating the model in R2013a getting errors saying
Undefined function or variable 'Ts_Control'. and 'Ts_Power'.
How can I overcome this problem... please provide the suggestions or mail to mohammadmerajeee@gmail.com

Hey...
I am working on this model. I want to go inside its theory specially "Voltage Source Converter"
Please provide me with some suitable reference / helping material.
This is my mail id zsaeed92@yahoo.com

Добрый день, поделитесь пожалуйста файлом, очень нужен. заранее спасибо. danil4enko.vladislaw@yandex.ru

aissam ahmed

thanks

Lumia Lee

Thanks for sharing with us.

mi feng

thanks for your sharing

Hung TRAN

Mukesh Kumar

how can i see the replies from author on the comment given below?

widada

widada (view profile)

thanks for this job, it will help me in my project.
but i have a problem concerning the voltage and the current regulator, can you please explain me how to calculate their Kp and Ki coefficient.
this is my email: widad.beyaz24@gmail.com
thanks

zakaria zaki

Amer Humaidan

Great job ! thanks alot
may god bless you

Thanks

hello,
can anybody help me out of the following problem? When I compile the model it gives me error like" A installed compiler was not detected. Certain simulation modes, as well as host-based coder build requires that a compiler be installed. Please install one of the supported compilers for this release as listed at
http://www.mathworks.com/support/compilers/R2013a/win64.html"

Jawairia Atiq

Hello , Can you please send the file in MATLAB R2009a or MATLAB R2014 PV models?
I really need .
This will be a big help.
Thank you.
oguzhanylmaz74@gmail.com

THON HERN

Hello sir. May I know how can I scale down the power to about 8kW ?

Iqbal Rizaf

Hello sir,

can you explain all parameters in that model simulink ? i need for final project.

please i hope, we can more conversation at mail (iqbal.riza.fathuddin@gmail.com)

best regards and very thanks,

Iqbal Riza Fathuddin

usman jamil

hello Pierre Giroux
i want to add Energy storage system before VSC in [PVarray_Grid_IncCondReg]file

which may b helpful in case when sun radiation is not available..
can u please guide me regardig this???

Mayur Randive

hello...
it's nice work....
thank you @ Pierre Giroux

Mayur Randive

hi ,
it's nice job..but
when I am simulating the model in R2013a getting errors saying
Undefined function or variable 'Ts_Control'. and 'Ts_Power'.
How can I overcome this problem... please provide the suggestions or mail to randivemayur@gmail.com

DP

DP (view profile)

Dear Sir,

It is very useful for learning the PV array grid connected. I would like to request you to kindly help me out how can we upgrade the kW model to MW model.

Thanks in advance

DjaberLab

it's very usefull thank uo so much, just tell us which version of matlab can be execute.

second Q: I want to simulate shading effect of PV-array grid connected, in its stability or instability of gred.Thank uo again

Faraz

Faraz (view profile)

Hi, how can I check if the system is operating at Maximum Power Point?

B P

B P (view profile)

Exelent. I need some help. prlincevic@gmail.com

Failed to find 'Continuous/PID Controller' in library 'simulink' referenced by 'PVarray_Grid_PandO_avg/VSC Control1/Current Regulator/PI'.

Patrice Brunelle

Hi Bala,

This model should run in R2011b and later releases of MATLAB, but probably not in could in older ones. If you get a chance to install and run the Pre Release R2015a version of MATLAB you wil lsee that the PV Array block is now part of the SPS libraries. The new block will give you access to more than 10,000 manuafacturer preset of PV modules from the NREL System Advisory Model database.

bala

bala (view profile)

when I am simulating the model in R2009b getting errors saying
1)Initialization commands cannot be evaluated
2)error in evaluating system parameters
How can I overcome this problem... please provide the suggestions or mail to balamurugan.m27@gmail.com

Yuewu

Yuewu (view profile)

Alaeddine

nice work. Sir i just want to know more informations about the inverter and the VSC converter.this is my email: amdouniala00@gmail.com

Durga oli

Hi
My problems are similar
I am getting errors saying
1)Initialization commands cannot be evaluated
2)error in evaluating system parameters
How can I overcome this problem...

Mfundo

Mfundo (view profile)

@yuvaraj Kondaswamy depending on your OS, you can download the SDK from the windows website. Afterwhich you can follow this link http://qt-project.org/wiki/Cannot_Install_Windows_SDK Thereafter execute the SDK. I hope this helps everyone else with the query.

Mikhail

Mikhail (view profile)

Awesome model. Thank you so much!

I am trying to run 'PVarray_Grid_PandO_avg.mdl' as a referenced model from the Kundur two area system average model 'power_pss'. I keep getting an algebraic loop error emanating from the PV array which I have unsuccessfully tried to break using rate transitions and other means...kindly provide any pointers.

A bit more detail to my immediate prior post is that the model I am trying to run as a referenced model is the 'average model'.

fri

fri (view profile)

Very good job, I have a similar work but I want to have a voltage Vref in the block MPPT instead of daty cycle can you help me thank you
Azizfri309@gmail.com

hanuma kumar

excellent work sir... but i am getting an array like "Attempt to reference field of non-structure array." can you please help me with this.. i'm also using r2011b.

abdellah

momo

momo (view profile)

bank

bank (view profile)

i am running it in 2012a but still getting error . i have to go for r2011b for this can any one help

GUNJAN

GUNJAN (view profile)

nice work.. sir when i run the model i am getting the constant duty ratio. it is not varying . what could be the resion pls. help me..

amira

amira (view profile)

Francesco

excellent. I'll try to modify the model in order make simulation with time step hourly based. Could you give me any tip, please?

I need a help in designing the DC-DC boost converter.

mmhb1365

Thank You.

SHYAM GEORGE

Thanx man.

mahmoud dabah

Hi all
May you help me how can I tune the dc voltage regulator and the current controller

Karthick

MEHER

MEHER (view profile)

I am getting errors saying
1)Initialization commands cannot be evaluated
2)error in evaluating system parameters
How can I overcome this problem...
mail me @ meherkalayan89@gmail.com

GUNJAN

GUNJAN (view profile)

Hey, I have been trying to run the simulations but i get the following error
"Unable to locate a C-compiler required by Stateflow and MATLAB Function blocks.
Use 'mex -setup' to select a supported C-compiler."
i have windows'8 and it was running properly with windows-xp...pls. tell me the solution..

mohamed

for 100 kw can you add a battry for this system please ? ,, i need it .

Hossein

This model just work in STC situation.
It has a wrong output in any different temperature....

kritika

While simulating in matlab R2008b i am getting error as shown below.someone please help me
"Failed to find 'Continuous/PID Controller' in library 'simulink' referenced by 'PVarray_Grid_PandO_avg/VSC Control1/Current Regulator/PI'."

king dota

额,这大师做的就是不一样。要是有控制部分的文档说明就更好了。
这么多人没人说中文的。
中国人果断把论坛占领了吧

How does the Voltage regulator keeps DC voltage constant at 500 volts.. I really did not understand because the Vdc_ref is subtracted from Vdc_meas. Shouldnt it be the other way round.. Vdc_ref - Vdc_meas for the error input into the PI controller? Please help !

Astitva

dear sir,
I m having a problem with this simulation model.
It pops up and says
1. Undefined function or variable 'Isat_array'
2. Initialization commands cannot be evaluated.
could you please respond to it, its very urgent and important.
ty.

GMATI

GMATI (view profile)

dear sir,
I'm fine to contact you for the first time. So, I need some help.
My big problem this days, it's the parameter that I would choose to release a boost inverter (190V to 311V with 3.2 A),
I need the parameter of L, C, Rl, Rc and R ( as load).
You can join me to mail: gmati_badii@yahoo.fr.
Thanks.

Alireza

Hai, I have been trying to run the simulations but i get the following errors
1) "Attempt to reference field of non-structure array"
2) "Problem creating Accelerator MEX file for model 'PVarray_Grid_IncCondReg_det'."

Karthick

how did you arrive at the values for PI parameters in current controller, voltage controller and in phase locked loop? Did u get those values through tuning the controllers?

praveen

Heyy guys!can anyone help me please?
I am getting errors like
this parameter has not been initialized
and undefined function and variable

haris

haris (view profile)

Hi guys i had implemented and worked perfect.i want to ask how we choose the gain value of di/dv + iv for the integral regulator.here is 7 as i seen.

Hadi Malek

This model is the best one that I've ever seen. Thanks

Hi,
I have simulate a PV cell using equations and I wanted to ghather all in a block ( subsystem)or the output will be a voltage, I have the current Ipv as output, I want to create voltage terminal to be able to associate the module and have a generator.
How can I do that?
Any idéa,

Musheer Hadi

Hello, Please help me, how could I evaluate the panel parameters such Rs, Rp, Isat...etc..

you may contact me also at musheer3000@gmail.com
Thanks a lot

Barbara Ramos

Hi,
I'd like some help about the VSC converter.
I need to change the grid parameters.

ty,
Barbara

KEUNHYE

The PV model is very useful. I have two question.
1. Simulation type is discrete of solver in power gui.
I'd like to implement at continuous of simulation type. Do you have a solution to change the solver's simulation type?
2. Why does it use discrete? I'd like to know the difference of discrete and continuous. Thank you

Pierre Giroux

Hi Subesh and Buvana,
Thanks for your contribution.
The diode characteristic inside the PV Array blocks is now correctly implemented as Id=Isat*[exp(Vd/Vt)-1]. See latest update (oct. 9).

soumia kerr

@Piyush
Yes I do have MATLAB 2011b and the program runs fine.

piyush

piyush (view profile)

@Buvana
Can you confirm that its running on 2011b (if you have one copy of that version).

@Piyush
It could be that the version is not compatible.

piyush

piyush (view profile)

While simulating in matlab 2009a i am getting error as shown below.someone please help me

"Failed to find 'Continuous/PID Controller' in library 'simulink' referenced by 'PVarray_Grid_PandO_avg/VSC Control1/Current Regulator/PI'."

Irfaan

Irfaan (view profile)

thks

akbar

akbar (view profile)

I try to connect this model to a diesel generator model. but it doesn't run. Can any body help me???

Subash

It looks like the Id indeed is calculated wrong. I had noticed it too.

Swasti Khuntia

@Prashant: Did you run it on 2011b? I guess change in MATLAB version may affect simulation !!!

I tried to run this model but unfortunately i have received two errors like ,

Error in 'PVarray_Grid_IncCondReg_det/PV Array': Initialization commands cannot be evaluated.

and

Error evaluating parameter 'Value' in 'PVarray_Grid_IncCondReg_det/PV Array/Diode/Is': Undefined function or variable 'Isat_array'.

Could anyone help me out to resolve this problem.

Subesh Aryal

I just noticed something on the diode model (inside PV model). The diode current is calculated as Id = Isat*(exp(Vd/Vt-1) while it should be Id = Isat*(exp(Vd/Vt)-1). Can someone look into it? May be I am missing something here.

Musheer Hadi

nice work. thanx a lot sir
I need your support please because all PI blocks appear as bad links.
I need the parameters please

again thanks

Subesh Aryal

I am doing a project similar to this. I am having a hard time trying to come up with Kp and Ki values of both voltage regulator and current regulator. I have been working on it for weeks with no luck whatsoever. Is there anyone who has looked into it and knows how to calculate those values?? Feedback is sincerely appreciated..

Bole Top

can you tell me how did you calculated the Ki block in the inc cond MPPT control method? i'm trying to figure it up for a week :)
thanks

Patrice Brunelle

Hi Yuvaraj

Regarding the problem with C-compiler I recommend that you report the issue to the customer support service of The Mathworks.

Thanks you for your interest in the demo and to SimPowerSystem.

Hai, I have been trying to run the simulations but i get the following error
"Unable to locate a C-compiler required by Stateflow and MATLAB Function blocks.
Use 'mex -setup' to select a supported C-compiler."

I have installed the compiler. But still it's not working. Could you please let me what could be the problem? I am using the R2011b matlab version.

Thanks.

Excellent work

Anup Anurag

Can you please upload the files with all the values of resistances ?? and voltages ??

Excellent job.

papoo

papoo (view profile)

is that possible to make a PV array model running in phasor type?
if we can not? so we can't make an integrated model using both wind turbine and PV arrays simultaneously?
I appreciate your writings in advance

papoo

papoo (view profile)

Perfect job,
I'm sure that anybody who sees your Simulink, wondering if you explain more on your PV Arrray block or Boost converter.
however, you did a great job,it worked properly for me.

mahmoud

nice work
should you tell me how did you tune the pi controller?

Patrice Brunelle

The PVarray model was built using R2011b. It is possible that some features available in SPS 11b cannot be run in previous releases.

Vladimir

Nice view model but I have some errors on R2007b. Is the version the run error problem?

Jun

Jun (view profile)

the model is very good...but when i running it..."Error in 'PVarray_Grid_IncCondReg_det/PV Array': Initialization commands cannot be evaluated."
version: 2010b
Is it because of software version?

nice job..its not working properly when i run this

Updates

1.2

The two PV array models (detailed and average) have been updated.
Diode characteristic inside the PV Array blocks is now correctly implemented as Id=Isat*[exp(Vd/Vt)-1].
Thanks to Subesh and Buvana for raising this problem.

1.1

Fixed figure name + modified tags

MATLAB Release
MATLAB 7.13 (R2011b)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video