Home › Forums › Photovoltaic Circuits › Problems with Spice circuit
- This topic is empty.
-
AuthorPosts
-
November 10, 2014 at 5:46 pm #16322raheemqGuest
Hi guys,
I’m basically new to the PSpice software and I got to do project to my engineering class. The thing is the I’ve got .cir file, which is:
* cell_3.cir
.include elementy.lib
xcell1 45 43 42 cell_2 params:area=126.6 j0=1e-11 j02=1E-9
+jsc=0.0343 RSH=1000 RS=0.0001
xcell2 0 45 44 cell_2 params:area=126.6 j0=1e-11 j02=1E-9
+jsc=0.0343 RSH=1000 RS=0.0001
vbias 43 0 dc 0
virrad1 42 45 dc 1000
virrad2 44 0 dc 1000
.probe
.plot dc i(vbias)
.dc vbias 0 2 0.01
.endSubcircuit is:
.subckt cell_1 300 301 302 params: area=1, j0=1, jsc=1
girrad 300 301 value={(jsc/1000)*v(302)*area}
d1 301 300 diode
.model diode d(is={j0*area})
.ends cell_1
.subckt cell_2 300 303 302 params:area=1, j0=1, jsc=1, j02=1, RSH=1, RS=1
girrad 300 301 value={(jsc/1000)*v(302)*area}
d1 301 300 diode
.model diode d(is={j0*area})
d2 301 300 diode2
.model diode2 d(is={j02*area}, n=2)
Rsh 301 300 {RSH}
Rs 301 303 {RS}
.ends cell_2And now I’ve got to add one more module in a serial way. And how am I supposed to do it?
It should be of course additional:
xcell3 0 45 44 cell_2 params:area=126.6 j0=1e-11 j02=1E-9
+jsc=0.0343 RSH=1000 RS=0.0001
But what about virrad3? What exactly is virrad?November 12, 2014 at 10:15 am #16471Hi raheemq,
Virrad, in the SPICE model, is a voltage, but actually it represents numerically the value of the Irradiance.
The irradiance is measured in W/m^2 and considers the contributions of all wavelengths to the power that affects a surface.
As a first approximation, an ideal solar cell can be modelled in SPICE by a voltage controlled current source, that receives an Irradiance (represented by Virrad) and provides a short circuit current proportional to the irradiance, and a diode that represents the open circuit voltage. (subcircuit cell_1).
cell_3.cir refers to cell_2 subcircuit that is a generalized SPICE model of a solar cell that includes series and shunt resistance and two diodes that model other important electrical characteristics of the solar cell.
If you want add a third series solar cell you can do for example:xcell1 45 43 42
xcell2 47 45 44
xcell3 0 47 46
then you add virrad3 between 0 and 46.
November 13, 2014 at 7:45 am #16472raheemqGuestHi Cribald.
First of all thank you for your help!
I did as you wrote, but still I’ve got a problem. Now my circuit looks:
* cell_3.cir
.include elementy.lib
xcell1 45 43 42 cell_2 params:area=126.6 j0=1e-11 j02=1E-9
+jsc=0.0343 RSH=1000 RS=0.0001xcell2 47 45 44 cell_2 params:area=126.6 j0=1e-11 j02=1E-9
+jsc=0.0343 RSH=1000 RS=0.0001xcell3 0 47 46 cell_2 params:area=126.6 j0=1e-11 j02=1E-9
+jsc=0.0343 RSH=1000 RS=0.0001vbias 43 0 dc 0
virrad1 42 45 dc 1000
virrad2 44 0 dc 1000
virrad3 0 46 dc 1000
.probe
.plot dc i(vbias)
.dc vbias 0 2 0.01.end
and I’d like to take trace of I(vbias) for the whole system. First of all current is negative (why?) and changing virrad of any solar cell do not change the current. And as far as I know it should affect the current, am I right?
November 13, 2014 at 11:42 am #16473virrad2 and virrad3 are misplaced. The correct version is:
virrad2 44 47 dc 1000
virrad3 46 0 dc 1000November 17, 2014 at 12:39 pm #16474I’ve uploaded the images below If you have problems to figure out how the nodes of solar cells are enumerated
the three series solar cells and the the first cell_3.cir
-
AuthorPosts
- You must be logged in to reply to this topic.