Importing inputs from SAM GUI to PySAM TcsmoltenSalt module

  • Westphal
  • Topic Author
More
23 May 2024 17:38 #13197 by Westphal
Hi Paul,

Ok thank you, so you're saying there is no way to use the "JSON for Inputs" code generator option in SAM that outputs all variables to a single JSON file, as detailed in the in the "JSON for Inputs" section at the bottom of  nrel-pysam.readthedocs.io/en/main/inputs-from-sam.html ?

Thank you,
Evan

 

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

  • pgilman
More
29 May 2024 16:59 - 29 May 2024 17:00 #13218 by pgilman
Hi Evan,

The file generated by the code generator's "JSON for Inputs" option should also work.

Best regards,
Paul.
Last edit: 29 May 2024 17:00 by pgilman.

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

  • Westphal
  • Topic Author
More
29 May 2024 17:51 #13219 by Westphal
Would you mind providing some example code on how to load inputs using the single JSON file outputted by the "JSON for Inputs" code generator option?

I think the example JSON for inputs code on the "Importing inputs from SAM" page is incorrect as it is a copy of the code above for the PySAM JSON method which loops through the separate modules even though the text description states "you don’t have to loop through the modules" for the JSON for inputs method.

Thank you,

Evan

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

Moderators: pgilman
Powered by Kunena Forum