Quantcast
Channel: Cadence PCB Design Forum
Viewing all articles
Browse latest Browse all 5525

I am not able to solve the errors in my '.cir' file.

$
0
0

Hi,everyone. 

I’m simulating a ‘grid-connected’ PV system.

1)   1) Here is the ‘.cir’ file I want to simulate.

 

* NODES

* (0) Reference

* (1) Irradiance profile input

* (3) PV generator output

* (4) Inverter Input

* (6) Inverter output

* (20) PV generator current at the maximum power point

* (30) PV generator voltage at the maximum power point

** PV generator

.include generator_beh.lib

xgenerator 0 1 43 3 45 46 47 20 30 generator_beh params:

+ iscmr=5.2, coef_iscm=0.13e-3, vocmr=21.2, coef_vocm=-0.1,pmaxmr=85,

+ noct=47,immr=4.9 , vmmr=17.3, tr=25, ns=36, nsg=2 npg=3

** Irradiance and temperature profiles

.inc aprilmicro.stl

vmesur 1 0 stimulus Virrad

vtemp 43 0 dc 12

** Blocking diode

d2 3 4di ode

.model diode d(n=1)

** inverter

.inc inverter7.cir

xinvert 40 6 20 30 inv params: nf=0.9

** grid

.inc grid.cir

xgr1 6 0 grid

.tran 1ms 0.14s 0 1u

.probe

.end 

2) The output file says that are some ERRORS. Here is the ‘.out’ file.

 

**** 10/12/12 17:43:57 ******* PSpice Lite (April 2011) ******* ID# 10813 ****

 

 * NODES

 

 

 ****     CIRCUIT DESCRIPTION

 

 

******************************************************************************

 

 

 

* (0) Reference

* (1) Irradiance profile input

* (3) PV generator output

* (4) Inverter Input

* (6) Inverter output

* (20) PV generator current at the maximum power point

* (30) PV generator voltage at the maximum power point

** PV generator

.include generator_beh.lib

 

**** INCLUDING generator_beh.lib ****

* BEHAVIOURAL MODEL OF A PV GENERATOR

* INPUT PARAMETERS:,AM1.5 JSCMR,AM1.5 VOCMR,AM1.5 PMAXMR

* AM1.5 VMMR,AM1.5 IMMR, CURRENT TEMP COEFF.,VOLTAGE TEMP.COEFF,

* NOCT, REFERENCE TEMPERATURE

* NODES

* (400) REFERENCE

* (401) INTERNAL NODE

* (402) INPUT, IRRADIANCE

* (403) INPUT, AMBIENT TEMPERATURE

* (404) OUTPUT

* (405) OUTPUT, (VOLTAGE) VALUE=SHORT CIRCUIT CURRENT(A) AT

* IRRADIANCE AND TEMPERATURE

* (406) OUTPUT, OPEN CIRCUIT VOLTAGE AT IRRADIANCE ANDTEMPERATURE

* (407) OUTPUT, (VOLTAGE) VALUE=CELL OPERATING TEMPERATURE(

C)

* (408) OUTPUT, MPP CURRENT

* (409) OUTPUT, MPP VOLTAGE

--$

ERROR -- Missing node

.subckt generator_beh 400 402 403 404 405 406 407 408 409 params:

+ iscmr=1, coef_iscm=1, vocmr=1, coef_vocm=1,pmaxmr=1,

+ noct=1,immr=1 , vmmr=1, tr=1, ns=1, nsg=1 npg=1

ev402 410 400 value={if (v(402)>0.1, v(402),0.1)}

girrad 400 401 value={v(410)/1000*(npg*iscmr+npg*coef_iscm*(v(407)-25))}

eiscm 405 400 value={v(410)/1000*(iscmr+coef_iscm*(v(407)-25))}

evocm 406 400 value={if (v(405)>1e-11, (vocmr+coef_vocm*(v(407)-25)+8.66e-5*

+ (v(407)+273)*log(v(405)/(iscmr))),0)}

etcell 407 400 value={v(403)+(noct-20)/800*v(410)}

gidiode 401 400 value={npg*v(405)/(exp(v(406)/(ns*8.66e-5*(v(407)+273)))-1)*

+ (exp(v(401)/ (ns*nsg*8.66e-5*(v(407)+273)))-1)}

rsg 401 404 {nsg/npg*((vocmr/(iscmr)-pmaxmr/(iscmr**2*(vocmr/(ns*0.0258)-log

+ ((vocmr/(ns*0.0258))+0.72))/(1+vocmr/(ns*0.0258)))))}

.func frsg() {nsg/npg*((vocmr/(iscmr)-pmaxmr/(iscmr**2*(vocmr/(ns*0.0258)-log

+ ((vocmr/(ns*0.0258))+0.72))/(1+vocmr/(ns*0.0258)))))}

gimg 400 408 value={npg*(immr*v(410)/1000+coef_iscm*(v(403)-25))}

rimg 408 400 1

evmg 409 400 value={if (v(410)>0.1, nsg*(ns*8.66e-5*(v(407)+273)*log(1+(v(405)-

-------------------$

ERROR(ORPSIM-16367): End of expression not seen

+ (ns*8.66e-5*(v(407)+273)))-1))-v(408)*frsg/nsg),0)}

.ends generator_beh

-----------------------------------------------------$

ERROR(ORPSIM-16367): End of expression not seen

.ends generator_beh

-----------------------------------------------------$

ERROR(ORPSIM-16500): Missing node

-----------------------------------------------------$

ERROR(ORPSIM-16499): Missing .ENDS in .SUBCKT

 

**** RESUMING "EXAMPLE 8.1.CIR" ****

xgenerator 0 1 43 3 45 46 47 20 30 generator_beh params:

+ iscmr=5.2, coef_iscm=0.13e-3, vocmr=21.2, coef_vocm=-0.1,pmaxmr=85,

+ noct=47,immr=4.9 , vmmr=17.3, tr=25, ns=36, nsg=2 npg=3

** Irradiance and temperature profiles

.inc aprilmicro.stl

 

ERROR(ORPSIM-15347): Cannot open input file D:\Program Files\OrCAD 16.5 Lite\tools\pspice\aprilmicro.stl.

 

 

ABORTING SIMULATION

**** 10/12/12 17:43:57 ******* PSpice Lite (April 2011) ******* ID# 10813 ****

 

 * NODES

 

 

 ****     JOB STATISTICS SUMMARY

 

 

******************************************************************************

 

 

 

Node counts:

  Top level (NUNODS)                =           1

  External (NCNODS)                 =           1

  Total (NUMNOD)                    =           0

 

Total device count (NUMEL)          =           1

  Capacitors (C)                    =           1

 

Number of subcircuits (X)           =           1

 

Matrix statistics:

  Matrix size (NSTOP)               =           0

  Initial no. elements (NTTAR)      =           0

  No. elements w/ fillin (NTTBR)    =           0

  No. fillins (IFILL)               =           0

  No. overflows (NTTOV)             =           0

  No. LU operations (IOPS)          =           0

  Percent sparsity (PERSPA)         =       0.000

 

Analysis statistics:

  No. total time points (NUMTTP)    =           0

  No. rejected time points (NUMRTP) =           0

  No. iterations (NUMNIT)           =           0

 

Runtime statistics:                       Seconds      Iterations

  Matrix load                       =        0.00

  Matrix solution                   =        0.00               0

  Readin                            =        0.00

  General setup                     =        0.00

  Setup                             =        0.00

  DC sweep                          =        0.00               0

  Bias point                        =        0.00               0

  AC and noise                      =        0.00               0

  Total transient analysis          =        0.00

  Output                            =        0.00

  Overhead                          =        0.00

  Total job time                    =         .25

 

 

3) Below is the information shown at the OUTPUT WINDOW

 

--------------- INFO(ORPROBE-3210): Simulation Circuit File:  EXAMPLE 8.1 ---------------

INFO(ORPROBE-3183): Simulation running...

* NODES

Reading and checking circuit

Missing node

ERROR(ORPSIM-16367): End of expression not seen

ERROR(ORPSIM-16367): End of expression not seen

ERROR(ORPSIM-16500): Missing node

ERROR(ORPSIM-16499): Missing .ENDS in .SUBCKT

ERROR(ORPSIM-15347): Cannot open input file D:\Program Files\OrCAD 16.5 Lite\tools\pspice\aprilmicro.stl.

ERROR(ORPSIM-15347): Cannot open input file D:\Program Files\OrCAD 16.5 Lite\too

Run aborted

Circuit has errors ... run aborted

See output file for details

INFO(ORPROBE-3188): Simulation aborted 


Viewing all articles
Browse latest Browse all 5525

Trending Articles