Dear Emiliano,
I'm sorry I did not answer this part of your
earlier question
. I was waiting for a response from a colleague.
One option to investigate alternative plant control strategies would be to use the Thermal Storage Dispatch Control schedule on Thermal Storage page, which would allow you to alter the control strategy based on time of day and whether or not the sun is shining.
If this approach is too limited, and you have a copy of TRNSYS (and the time to program your own control strategy), you could try modifying the controller source code in FORTRAN. For the concentrating solar power (CSP) models, you can find a list of the source code files and their location in the Help system overview topics. For example, for the physical trough model, see
Physical Trough Overview
.
In theory, you should be able to make modifications to the FORTRAN source code files and compile the modified code in TRNSYS into a new executable to use with SAM in place of the default one. You could also use a different deck file to change the structure of the inputs of the TRNSYS model. The Exchange Variables page in SAM has ten "System Variables" that you can use to store values in the SAM user interface to interact with your custom decks.
However, at the moment, the TRNSYS source code files we distribute with SAM will not compile in TRNSYS because they require a piece of proprietary code that we are not allowed to distribute. We are working to resolve this issue and will hopefully have a solution soon.
Best regards,
Paul.