Paul,
I have a CSP project (based on the TcstroughEmpirical module) where I am trying to edit some of the calculations done by PySAM to check for the feasibility of the changes that I am proposing. For example, I would like to be able to edit how a variable is calculated or to edit the value of a variable present in the Outputs (PySAM.TcstroughEmpirical.TcstroughEmpirical.Output) group before they are passed on to another calculation.
Here is a more concrete example where the goal is to obtain CSP power production + redirect some of the incident solar energy to another process:
- Use a user-defined weather file
- Calculate optical parameters (sun position and angle, incidence angle modifier, efficiency, etc.)
- Calculate the amount of solar energy received by the solar field (Outputs.QsfAbs) + the amount of solar energy redirected in my project (user-defined variable)
- Send the value of Outputs.QsfAbs to the power block calculations, as it normally happens in SAM
I am aware that I might be able to use PySSC for this, but I am not sure how to proceed. If editing through PySSC is not an option and you don't think there is another option, would I be able to get all of the equations used in a module through PySAM/PySSC and create my own module based on the empirical calculations, for example?
Thank you in advance for your help. Let me know if you need any other details or if the question is not clear.
Best,
Marcelo