Thank you very much dear friend( you did not mention your name)
The fact is that here I cannot use the standard diode model while it is temperature dependent diode so I should mention the diode property.
the point is that I should not see the distortion there but I see ! and I don't know where is the problem !
I also tried these formula in the circuit :
gidiode internode ref value={i0*(exp(v(internode)/({vt}*(v(tcell)+273)))-1)}
but the strange thing is that the by increasing the temperature, the open circuit voltage will increase which shouldn't be !!!
Thanks for your answer
regards
Hamed
toggle quoted message
Show quoted text
--- In LTspice@..., "analogspiceman" <analogspiceman@...> wrote:
--- In LTspice@..., "Hamed" <l0st_l0rd@> wrote:
Thanks friends for your responses but the point is that
converting this circuit to schematics will make it more
confusing. Actually the output should not have the distortion
in -1.8kA! and it should continue constant like a diode :)
Is there some reason you model must be so complicated and do you
really need to reinvent the diode model? Couldn't you do something
like the following and put all us, your fellow group members and
involuntary consumers of SPAM, out of our collective misery?
[Or you could just feed us wafer-thin after-dinner mints...
Gurgle, burp... Nah, I couldn't eat another thing, I'm
absolutely stuffed! Now, SPAM off!]
* Simple yet effective PV Array model (typical values)
*
* Rp sets voltage slope of curve
* Rs sets current slope of curve
* Isc is short circuit current
* n = number of series cells
* m = number of parallel strings
.param Rp=1 Rs=3m Isc=10 n=60 m=1
I1 0 1 {Isc*m}
D1 1 0 cell n={n} m={m}
Rp 1 0 {Rp*n/m}
.model cell d Rs={Rs} Is=315n n=1.26 Cjo=50u Tnom=25 Trs1=10m Trs2=0m1