* SPICE netlist
D1 N002 N005 cell_diode
R1 N002 N005 {Rp}
R2 N003 N002 {Rs}
I1 N005 N002 {iph}
V1 out 0 0
D2 N007 0 cell_diode
R3 N007 0 {Rp}
R4 N005 N007 {Rs}
I2 0 N007 {0.25*iph}
D3 N004 N006 cell_diode
R5 N004 N006 {Rp}
R6 N001 N004 {Rs}
I3 N006 N004 {iph}
D4 N008 0 cell_diode
R7 N008 0 {Rp}
R8 N006 N008 {Rs}
I4 0 N008 {0.25*iph}
D5 N006 N001 bypass_diode
D6 0 N006 bypass_diode
V2 N003 out 0
V3 N001 out 0
.param V_max=1.4
.dc V1 0 {V_max}
.param iph=10 Rp=10.1 Rs=4.2m

* LTspice schematic (.asc)
Version 4
SHEET 1 1248 512
WIRE 0 -256 -96 -256
WIRE 608 -256 80 -256
WIRE -512 -160 -624 -160
WIRE -416 -160 -512 -160
WIRE -352 -160 -416 -160
WIRE -224 -160 -272 -160
WIRE -96 -160 -96 -256
WIRE -96 -160 -144 -160
WIRE 320 -160 208 -160
WIRE 416 -160 320 -160
WIRE 480 -160 416 -160
WIRE 608 -160 608 -256
WIRE 608 -160 560 -160
WIRE -624 -128 -624 -160
WIRE -512 -128 -512 -160
WIRE -416 -128 -416 -160
WIRE 208 -128 208 -160
WIRE 320 -128 320 -160
WIRE 416 -128 416 -160
WIRE 608 -112 608 -160
WIRE -624 -16 -624 -48
WIRE -512 -16 -512 -64
WIRE -512 -16 -624 -16
WIRE -416 -16 -416 -48
WIRE -416 -16 -512 -16
WIRE -224 -16 -416 -16
WIRE 208 -16 208 -48
WIRE 320 -16 320 -64
WIRE 320 -16 208 -16
WIRE 416 -16 416 -48
WIRE 416 -16 320 -16
WIRE 608 -16 608 -48
WIRE 608 -16 416 -16
WIRE -96 16 -96 -160
WIRE -512 64 -624 64
WIRE -416 64 -512 64
WIRE -352 64 -416 64
WIRE -224 64 -224 -16
WIRE -224 64 -272 64
WIRE 320 64 208 64
WIRE 416 64 320 64
WIRE 480 64 416 64
WIRE 608 64 608 -16
WIRE 608 64 560 64
WIRE -624 96 -624 64
WIRE -512 96 -512 64
WIRE -416 96 -416 64
WIRE 208 96 208 64
WIRE 320 96 320 64
WIRE 416 96 416 64
WIRE 608 112 608 64
WIRE -624 208 -624 176
WIRE -512 208 -512 160
WIRE -512 208 -624 208
WIRE -416 208 -416 176
WIRE -416 208 -512 208
WIRE -224 208 -416 208
WIRE 208 208 208 176
WIRE 320 208 320 160
WIRE 320 208 208 208
WIRE 416 208 416 176
WIRE 416 208 320 208
WIRE 608 208 608 176
WIRE 608 208 416 208
WIRE -224 256 -224 208
WIRE -96 256 -96 96
WIRE 608 256 608 208
FLAG -224 256 0
FLAG -96 256 0
FLAG 608 256 0
FLAG -96 -160 out
SYMBOL diode -528 -128 R0
SYMATTR InstName D1
SYMATTR Value cell_diode
SYMBOL res -432 -144 R0
SYMATTR InstName R1
SYMATTR Value {Rp}
SYMBOL res -256 -176 R90
SYMATTR InstName R2
SYMATTR Value {Rs}
SYMBOL current -624 -48 R180
SYMATTR InstName I1
SYMATTR Value {iph}
SYMBOL voltage -96 0 R0
SYMATTR InstName V1
SYMATTR Value 0
SYMBOL diode -528 96 R0
SYMATTR InstName D2
SYMATTR Value cell_diode
SYMBOL res -432 80 R0
SYMATTR InstName R3
SYMATTR Value {Rp}
SYMBOL res -256 48 R90
SYMATTR InstName R4
SYMATTR Value {Rs}
SYMBOL current -624 176 R180
SYMATTR InstName I2
SYMATTR Value {0.25*iph}
SYMBOL diode 304 -128 R0
SYMATTR InstName D3
SYMATTR Value cell_diode
SYMBOL res 400 -144 R0
SYMATTR InstName R5
SYMATTR Value {Rp}
SYMBOL res 576 -176 R90
SYMATTR InstName R6
SYMATTR Value {Rs}
SYMBOL current 208 -48 R180
SYMATTR InstName I3
SYMATTR Value {iph}
SYMBOL diode 304 96 R0
SYMATTR InstName D4
SYMATTR Value cell_diode
SYMBOL res 400 80 R0
SYMATTR InstName R7
SYMATTR Value {Rp}
SYMBOL res 576 48 R90
SYMATTR InstName R8
SYMATTR Value {Rs}
SYMBOL current 208 176 R180
SYMATTR InstName I4
SYMATTR Value {0.25*iph}
SYMBOL diode 624 -48 R180
SYMATTR InstName D5
SYMATTR Value bypass_diode
SYMBOL diode 624 176 R180
SYMATTR InstName D6
SYMATTR Value bypass_diode
SYMBOL voltage -240 -160 R270
SYMATTR InstName V2
SYMATTR Value 0
SYMBOL voltage 96 -256 R90
SYMATTR InstName V3
SYMATTR Value 0