TroughPhysical Problem - nLoops

  • Sebastian Paulsen
  • Topic Author
More
31 Oct 2023 19:32 #12604 by Sebastian Paulsen
TroughPhysical Problem - nLoops was created by Sebastian Paulsen
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. 

File Attachment:

File Name: Parabolic Problem.zip
File Size:144 KB


My best regards, 
Sebastián


 
Attachments:

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

  • Paul Gilman
More
07 Nov 2023 18:12 - 07 Nov 2023 18:12 #12628 by Paul Gilman
Replied by Paul Gilman 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.
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.
Attachments:
Last edit: 07 Nov 2023 18:12 by Paul Gilman.

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

Moderators: Paul Gilman
Powered by Kunena Forum