- Posts: 5
TroughPhysical Problem - nLoops
- SebaSAM
- Topic Author
Less
More
31 Oct 2023 13:32 #12604
by SebaSAM
TroughPhysical Problem - nLoops was created by SebaSAM
Hello!
I am trying to make a simulation in pysam using the TroughPhysical module and I am having problems with the SolarField group. The thing is that I define the number of loops with a number like for example 8 and then when I execute the module it turns back to 10. It always go back to 10. I tried adjusting the solar multiple variable but it says that:AttributeError: 'TroughPhysical.SolarField' object has no attribute 'solar_multiple'"
I don't know how to solve this and is a problem because it affects the generation output.
I attached the file in this post, hope it helps.
My best regards,
Sebastián
I am trying to make a simulation in pysam using the TroughPhysical module and I am having problems with the SolarField group. The thing is that I define the number of loops with a number like for example 8 and then when I execute the module it turns back to 10. It always go back to 10. I tried adjusting the solar multiple variable but it says that:AttributeError: 'TroughPhysical.SolarField' object has no attribute 'solar_multiple'"
I don't know how to solve this and is a problem because it affects the generation output.
I attached the file in this post, hope it helps.
My best regards,
Sebastián
Please Log in or Create an account to join the conversation.
- pgilman
Less
More
- Posts: 5447
07 Nov 2023 11:12 - 07 Nov 2023 11:12 #12628
by pgilman
Replied by pgilman on topic TroughPhysical Problem - nLoops
Hi Sebastián,
That approach to setting nLoops should work. I ran this modified version of your script using Python 3.8.7 for Windows.
With the following result:
Best regards,
Paul.
That approach to setting nLoops should work. I ran this modified version of your script using Python 3.8.7 for Windows.
Code:
import PySAM.TroughPhysical as tcp
system_model_cilindro = tcp.default('PhysicalTroughSingleOwner')
system_model_cilindro.Weather.file_name="CollahuasiCSV.csv"
system_model_cilindro.TES.tshours=10
system_model_cilindro.Powerblock.P_ref=5.55
system_model_cilindro.SolarField.nLoops=int(8)
Cycle_th_eff=0.356
system_model_cilindro.SolarField.m_dot_htfmin=0.01
system_model_cilindro.SolarField.m_dot_htfmax=12
print(system_model_cilindro.SolarField.nLoops)
print("simulating...")
system_model_cilindro.execute()
print("done.")
print(system_model_cilindro.SolarField.nLoops)
With the following result:
Best regards,
Paul.
Last edit: 07 Nov 2023 11:12 by pgilman.
Please Log in or Create an account to join the conversation.
Moderators: pgilman