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
-
P_ref
¶ Power cycle output at design [MWe]
Required: True
Type: float
-
T_htf_cold_des
¶ Cold HTF temp (out of TES HX, if applicable) [C]
Required: True
Type: float
-
T_htf_hot_des
¶ Hot HTF temp (into TES HX, if applicable) [C]
Required: True
Type: float
-
design_eff
¶ Power cycle thermal efficiency
Required: True
Type: float
-
field_fl_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]
-
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
-
rec_htf
¶ TES storage fluid code
Required: True
Type: float
-
tank_pairs
¶ Number of equivalent tank pairs
Required: True
Type: float
-
tshours
¶ 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
-
csp_pt_tes_htf_density
¶ HTF dens [kg/m^3]
Type: float
-
csp_pt_tes_tank_diameter
¶ Single tank diameter [m]
Type: float
-
q_dot_tes_est
¶ Estimated tank heat loss to env. [MWt]
Type: float
-
q_tes
¶ TES thermal capacity at design [MWt-hr]
Type: float
-
tes_avail_vol
¶ Available single temp storage volume [m^3]
Type: float
-
vol_tank
¶ Total single temp storage volume [m^3]
Type: float
-