UiTesCalcs¶
Wrapper for SAM Simulation Core model: cmod_ui_tes_calcs.cpp
Creating an Instance¶
There are three methods to create a new instance of a PySAM module. Using default populates the newclass’ attributes with default values specific to a config. Each technology-financialconfiguration corresponds to a SAM GUI configuration. Using new creates an instance with empty attributes. The wrap function allows compatibility with PySSC, for details, refer to PySSC.
UiTesCalcs model description
UiTesCalcs
-
PySAM.UiTesCalcs.default(config) → UiTesCalcs¶ Use financial config-specific default attributes
-
PySAM.UiTesCalcs.from_existing(data, optional config) → UiTesCalcs¶ Share underlying data with an existing PySAM class. If config provided, default attributes are loaded otherwise.
-
PySAM.UiTesCalcs.new() → UiTesCalcs¶
-
PySAM.UiTesCalcs.wrap(ssc_data_t) → UiTesCalcs¶ Use existing PySSC data
Warning
Do not call PySSC.data_free on the ssc_data_t provided to
wrap
Functions¶
-
class
PySAM.UiTesCalcs.UiTesCalcs¶ This class contains all the variable information for running a simulation. Variables are grouped together in the subclasses as properties. If property assignments are the wrong type, an error is thrown.
-
assign(dict) → None¶ Assign attributes from nested dictionary, except for Outputs
nested_dict = { 'Common': { var: val, ...}, ...}
-
execute(int verbosity) → None¶ Execute simulation with verbosity level 0 (default) or 1
-
export() → dict¶ Export attributes into nested dictionary
-
value(name, optional value) → Union[None, float, dict, sequence, str]¶ Get or set by name a value in any of the variable groups.
-
Common Group¶
-
class
PySAM.UiTesCalcs.UiTesCalcs.Common¶ -
assign() → None¶ Assign attributes from dictionary
Common_vals = { var: val, ...}
-
export() → dict¶ Export attributes into dictionary
-
TES_HTF_code¶ TES storage fluid code
Required: True
Type: float
-
TES_HTF_props¶ User defined tes storage fluid prop data
Info: 7 columns (T,Cp,dens,visc,kvisc,cond,h), at least 3 rows
Required: True
Type: sequence[sequence]
-
T_HTF_cold¶ Cold HTF temp (out of TES HX, if applicable) [C]
Required: True
Type: float
-
T_HTF_hot¶ Hot HTF temp (into TES HX, if applicable) [C]
Required: True
Type: float
-
W_dot_pb_des¶ Power cycle output at design [MWe]
Required: True
Type: float
-
eta_pb_des¶ Power cycle thermal efficiency
Required: True
Type: float
-
h_tank¶ Total height of tank (HTF when tank is full [m]
Required: True
Type: float
-
h_tank_min¶ Min. allowable HTF height in storage tank [m]
Required: True
Type: float
-
tank_pairs¶ Number of equivalent tank pairs
Required: True
Type: float
-
tes_hrs¶ Hours of TES relative to q_dot_pb_des [hr]
Required: True
Type: float
-
u_tank¶ Loss coefficient from the tank [W/m2-K]
Required: True
Type: float
-
Outputs Group¶
-
class
PySAM.UiTesCalcs.UiTesCalcs.Outputs¶ -
assign() → None¶ Assign attributes from dictionary
Outputs_vals = { var: val, ...}
-
export() → dict¶ Export attributes into dictionary
-
HTF_dens¶ HTF dens [kg/m^3]
Type: float
-
d_tank¶ Single tank diameter [m]
Type: float
-
q_dot_loss¶ Estimated tank heat loss to env. [MWt]
Type: float
-
q_tes_des¶ TES thermal capacity at design [MWt-hr]
Type: float
-
vol_one_temp_avail¶ Available single temp storage volume [m^3]
Type: float
-
vol_one_temp_total¶ Total single temp storage volume [m^3]
Type: float
-