[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[TRNSYS-users] Dum Problems with online plotter



Hello all,

I modified a STEC library fortran source code and created a new proforma for one kind of Solar collectors. After debugginf for a while I was finally getting good results as the proforma was doing exactly what I wanted.

So what's the problem?

If I use only a printer I get good results, all the variables give results that would sound quite reasonable and no "NaN" nor "infinite" values are in the final results. Now --this is the dummy-part-- if I add an online plotter to the project (in order to see things better) I get this "floating point" error right at the beggining (at the second time-step... 1hr). It doesn't matter what do I connect the online plotter with... If I connect it to a forcing function (for example), which doesn't really interact with my created Type it does the same thing!!!

I tried debugging my TypeXXX.for, but when I'm on it I get to the TRNSYS.for file and that's where the problem occurs. This happens almost at the end of the TRNSYS.for file, when the time-step it's about to conclude (after this loop, line 959):

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
C    SEND THE ONLINE PLOTTER PARAMETERS AND OUTPUTS BACK TO THE EXECUTABLE FOR PLOTTING
      DO J=1,5
        DO I=1,20
           PLOTOUT(I+(20*(J-1)))=PLOUT(I,J)
        ENDDO

        DO I=6,20
           PAROUT(I+(20*(J-1)))=PROUT(I-5,J)
        ENDDO
      ENDDO

C    AT THIS POINT THE SIMULATION IS FINISHED AT THE CURRENT TIMESTEP
      RETURN
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

After this (and BEFORE the error) it jumps to the end of the file (where it says "END"), and then I get the following error in Visual Studio:

"No symbols are loaded for any call stack frame. The source code cannot be displayed". I click next and I get the error in TRNSYS.

Has anyone had this error before? I'm doing the simulations for my master tesis and I haven't been able to find out how to fix it.

Thanks to all

Carlos






On Mon, Oct 13, 2008 at 4:11 PM, Carlos Flores <karlitro@gmail.com> wrote:
Hello Matt or David,

So, I think I'm finally understanding the way you do things with FORTRAN, but have a finall question.

I followed all the 8.5 basic steps and now things are way more clear. I'm using Intel visual fortran and Microsoft Visual Studio, and did the TRNDLL.dll build and rebuild steps (I did them using the Solution in the folder %TRNSYS16%/Compilers/\Ivf91-Mvs2005.

Now, the thing is... I added my new type in a project under the same "Solution" and it works fine.

Now, this is my issue now:

1) Are the new TRNDLL.dll and Type999.dll going where they are suppose to go? or, Should I take those files and copy them somewhere?
2) Lets suppose the dll goes directly where they are suppose to go. Now, what should I tell the proforma I created (in TRNSYS) so it knows that it has to do what the Type999.dll file says?

I think I'm really close to be able to modify the way I want all the stuff... I only need these final indications.

Thanks one more time for the help.

Carlos Flores
PRIEN
Universidad de Chile




On Fri, Oct 10, 2008 at 1:08 PM, Matt Duffy <duffy@tess-inc.com> wrote:
Dear Artemi Spanaki,

Perhaps my manual is not the same as yours.  I was trying to reference
section 8.5 "Instructions to rebuild TRNDLL.dll and other dynamic link
libraries". I recommend looking over that section. Please remember that
the TRNSYS Simulation Studio is simply a graphical front-end.  To rebuild
the TRNDLL, if that is indeed what you are trying to accomplish, you have
to do that in your Fortran compiler.  Again, that section in the manual
lays that out clearly.

Best regards,

Matt Duffy




----- Original Message -----
From: spanakiart@hotmail.com
Sent: Fri, October 10, 2008 2:05
Subject:[TRNSYS-users] Additional question about dll


Dear sir and trnsys users

Sorry for being so boring with my questions, but I can't even found the
way to have
access to 'TRNDll files', on simulation studio. The only way to find these
files is
through the explorer. This is why I can't follow the instructions of ref.
8.4.9.4 in
page 8-111.

Is there any chance of having that problem because of an error in my
installation?
I have the 16.00.0038 TRNSYS version.
In username I get the message of please enter user id.
Thank you very much.
Yours sincerely

Artemi Spanaki

_________________________________________________________________
Connect to the next generation of MSN Messenger
http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&amp;source=wlmailtagline_______________________________________________
TRNSYS-users
mailing list
TRNSYS-users@cae.wisc.edu
https://www-old.cae.wisc.edu/mailman/listinfo/trnsys-users


----- End of original message -----

_______________________________________________
TRNSYS-users mailing list
TRNSYS-users@cae.wisc.edu
https://www-old.cae.wisc.edu/mailman/listinfo/trnsys-users