15min output for power tower

5 posts / 0 new
Last post
Harry Han
15min output for power tower

Dear Paul

I have created a TMY file with 15min time step. I have imported it into a power tower model and the results show only hourly results. How can I output the 15min results?

Thank you!

Best regards!

Han

Paul Gilman

Dear Han,

Please see this post for a discussion of this issue:

https://sam.nrel.gov/node/74897

Best regards,
Paul.

Harry Han

Dear Paul

I have genetated the code through SAM, and then I ran it in the SDK, however the results are still hourly results. Would you please tell me how can I show subhourly results in SDK?

Thank you very much!

best regards!

Han

Paul Gilman

Dear Han,

Thank you for following up. I realized I forgot to mention an important detail. In SDKtool, to force tcs_molten_salt to store time series results in 15-minute time steps, you have to explicitly set the value of the input variable time_steps_per_hour to 4 in the LK script:

var('time_steps_per_hour',4);

Here are the complete steps to generate subhourly results for the power tower model (this is not necessary for the physical trough model because it reports subhourly outputs). This assumes you have downloaded the SAM SDK and can run the SDKtool program that comes with the SDK:

1. Start SAM, and create or open your power tower project file.

2. On the Case tab at the top of the page, click the v icon to show the shortcut menu.

3. Click Generate code, choose LK for SDKtool, and create a folder to save the files. This will save a set of files to use with SDKtool.

4. Start SDKtool, click Script Editor, and open the tower.lk file in the folder you created in Step 3. This is the LK script SAM generated from your inputs. It sets values of all of the input variables using data from your SAM case, and includes some extra code at the end to run compute modules and display results.

5. Somewhere before the call to run(), add the line var('time_steps_per_hour',4);. (For 15-minute weather data, set the value to 4. For 10-minute data, set the value to 6, etc.) This overrides the aggregation of subhourly outputs to hourly values. If you do not set the value of time_steps_per_hour SAM automatically assigns a default value of 1, resulting in hourly outputs.

6. Click Run to run the script.

Now the time series outputs should be subhourly. You can use the script to display or export the data, and you can see the data on the Data Container tab (use the buttons at the top to show statistical summaries, export, and view the data).

Best regards,
Paul.

Harry Han

Dear Paul

Thank you Paul! I have got the 15min results! Thank you!

Han

Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer