TES model code

  • Redelinghuys
  • Topic Author
More
09 Nov 2020 07:10 #8982 by Redelinghuys
TES model code was created by Redelinghuys
Dear Paul

I hope all is well.

Would it be possible to direct me to the code on Github that details the TES model?

I am specifically referring to:
- 2-tank indirect TES with molten salt as storage fluid;
- physical PBT plant.

I am mainly interested in how SAM calculates the hourly TES charge state (MWht), as I cannot find it in the manual. It seems that this output is not simply calculated by incrementally adding the hourly TES charge thermal power (MWt) and subtracting the hourly TES thermal losses (MWt). 

Best wishes,
Louw

Please Log in or Create an account to join the conversation.

  • pgilman
More
09 Nov 2020 13:59 #8983 by pgilman
Replied by pgilman on topic TES model code
Hi Louw,

The part of the code that sets inputs and outputs of the physical trough model is in github.com/NREL/ssc/blob/develop/ssc/cmod_tcstrough_physical.cpp .

The code for the functions for the various parts of the system is in github.com/NREL/ssc/tree/develop/tcs .

For the TES model:

github.com/NREL/ssc/blob/develop/tcs/csp_solver_two_tank_tes.cpp

github.com/NREL/ssc/blob/develop/tcs/sam_trough_storage_type806.cpp

For the physical trough power cycle model:

github.com/NREL/ssc/blob/develop/tcs/sam_trough_plant_type807.cpp

Best regards,
Paul.

Please Log in or Create an account to join the conversation.

Moderators: pgilman
Powered by Kunena Forum