<br><div class="gmail_quote">Hi to all,<br><br><br>I need to solve at least 92 differential equations inside of one TRNSYS type Im writting with the numerical method that uses the DTDT / T array.<br>When defining the DTDT and T arrays with more than 50 slots, the TRACE command will give me a Fatal error while debugging. I already tried to change the TrnsysConstants.f90 file to assume a higher number of everything that can be set as a higher number there (including number of derivatives), but the errors are the same.<br>
<br>If anyone has any tips on how to debug this please tell me something :)<br><br>Thanks!<br><br><span style="color:rgb(102,102,102)">--<br>Sérgio Casimiro<br>MIT Portugal | Ph.D. Student</span><br><br>------------------------------------------------------------------------------------------------------<br>
Details:<br><br>I'm using TRNSYS 16.1, with CVF 6.6B<br><ol><li>If I use the TRACE command with more than 60 Derivatives, TRNSYS will stop saying: "First-Chance exception in TRNEXE.EXE (TRNDLL.DLL): 0xC000008C: Array Bounds Exceeded"</li>
<li>The debugger will stop at Trace.for, line 71 : 10 TF(N)=TI(N)+DELT*DTDT(N) </li><li>LST file wont say anything relevant for me to correct anything<br></li></ol><p>In my component I got to the point of destroying the whole code I wrote just to see the sensibility of TRNSYS to this maximum number of derivatives with the TRACE command. I have set there also the correct Dimensions for the DTDT and T arrays (in the case of 60 derivatives, their size is 60), and T=0 and DTDT=0.<br>
</p><p>In the deck file I have this:</p><p>* START, STOP and STEP<br>CONSTANTS 3<br>START=0<br>STOP=1.000000024<br>STEP=0.000277778<br>* User defined CONSTANTS <br></p><p>SIMULATION START STOP STEP ! Start time End time Time step<br>
TOLERANCES 0.0001 0.0001 ! Integration Convergence !>>Adicionei aqui um zero (diminui a tolerancia por uma ordem de grandeza)<br>LIMITS 84 30 84 ! Max iterations Max warnings Trace limit<br>
DFQ 1 ! TRNSYS numerical integration solver method<br>WIDTH 80 ! TRNSYS output file width, number of characters<br>LIST ! NOLIST statement<br>MAP ! MAP statement<br>
SOLVER 0 1 1 ! Solver statement Minimum relaxation factor Maximum relaxation factor<br>NAN_CHECK 1 ! Nan DEBUG statement<br>OVERWRITE_CHECK 1 ! Overwrite DEBUG statement<br>
TIME_REPORT 1 ! enable time report statement<br>
EQSOLVER 0 ! EQUATION SOLVER statement<br>ETRACE START STOP ! EQUATION TRACE statement<br><br>* Model "Type810" (Type 810)<br>* <br>UNIT 2 TYPE 810 Type810<br>*$UNIT_NAME Type810<br>
*$MODEL .\My Components\Type810.tmf<br>*$POSITION 300 142<br>*$LAYER Main # <br>TRACE START STOP<br>DERIVATIVES 60<br></p>(I have here 60 Zeros's bellow "DERIVATIVES 60" that Im not copying now here).<br>*------------------------------------------------------------------------------<br>
END<br><br><br clear="all"><div><span style="color:rgb(102,102,102)"><br><br><br></span></div>
</div><br>