Menu

Issues using Math Operations inside Linecode

Beginners
2015-12-03
2015-12-04
  • Mohamad Ismail

    Mohamad Ismail - 2015-12-03

    Hello community,

    I'm having some trouble when using math operations in Linecode. Here's an example:

    New linecode.LC01 nphases=3 basefreq=60 units = mi 
    ~ rmatrix = ['0.2 5.280 *' | '0.04 5.280 *'  '0.2 5.280 *' | '0.04 5.280 *' '0.04 5.280 *'    '0.2 5.280 *'] 
    ~ xmatrix = ['0.2 5.280 *' | '0.04 5.280 *'  '0.2 5.280 *' | '0.04 5.280 *' '0.04 5.280 *'    '0.2 5.280 *'] 
    

    Using this linecode, I'm getting the following error:

    "Error 792 Reported From OpenDSS Intrinsic Function:
    TLineObj.CalcYprim

    Error Description:
    Matrix Inversion Eror for Line "100200"

    Probable Cause:
    Invalid impedance specified. Replaced with a tiny conductance.

    While trying to find out where the error was, I eliminated the math operation one element at a time. So I found out that if I remove the math operation from the 3rd element of xmatrix, it works fine.

    New linecode.LC01 nphases=3 basefreq=60 units = mi 
    ~ rmatrix = ['0.2 5.280 *' | '0.04 5.280 *'  '0.2 5.280 *' | '0.04 5.280 *' '0.04 5.280 *'    '0.2 5.280 *'] 
    ~ xmatrix = ['0.2 5.280 *' | '0.04 5.280 *'  0.2 | '0.04 5.280 *' '0.04 5.280 *'    '0.2 5.280 *'] 
    

    Is there something that I'm missing? Or is it a bug?

    Thank you!

    Mohamad

     

    Last edit: Mohamad Ismail 2015-12-03
  • Roger Dugan

    Roger Dugan - 2015-12-04

    I don't know what is going on. It could be a bug in the Parser module.

    A workaround:

    Set units=kft and omit the 5.280 multiplier. OpenDSS can take care of the units conversion during the LINE definition. The LINE length units can be miles. It will work.

     

Log in to post a comment.

MongoDB Logo MongoDB