Dear Han,
Thank you for following up. I realized I forgot to mention an important detail. In SDKtool, to force
to store time series results in 15-minute time steps, you have to explicitly set the value of the input variable
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
, 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
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.