Module parameters 'tamb' and 'pressure' are only Numbers in Module 'irradproc'

  • asifak
  • Topic Author
More
06 Jun 2024 06:55 #13238 by asifak
SSC SDK Module 'irradproc' is a good one which process the Irradiance Data. It also provides the option of Array where whole year Irradiance data can be stored and processed. However, when it comes to the Ambient Temperature and Pressure, these are defined as NUMBERS ony which means different Temperature and Pressure cannnot be taken as input for the whole Array i.e. full year. 

Why it is like this or I am missing the concept of ARRAY and NUMBER in a module??

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

  • pgilman
More
06 Jun 2024 23:57 #13242 by pgilman
Hi Asif,

The 'irradproc' compute module contains functions for calculating the sun position and plane-of-array irradiance given data from a weather file. These functions are called by other compute modules that make up the SAM model (Detailed PV, PVWatts, Physical Trough Model, etc.).

The answer to your question has to do with the internal 'irradproc' objects. The module's source code is here:

github.com/NREL/ssc/blob/develop/ssc/cmod_irradproc.cpp

The ambient temperature and atmospheric pressure variables are inputs to the 'solarpos_spa()' function that calculates sun angles. It is called in the 'wfcheck' compute module once for each timestep in the weather file -- the code that calls that function reads the temperature and pressure data from the weather file.

The irradiance variables are inputs to the 'irrad()' function in 'irrad_proc' compute module. It reads in arrays of data from the weather file.

Best regards,
Paul.

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

Moderators: pgilman
Powered by Kunena Forum