UiTesCalcs¶
Wrapper for SAM Simulation Core model: cmod_ui_tes_calcs.cpp
Input Consistency Warning¶
As described in Possible Problems, some input parameters are interdependent but the equations that enforce consistency are not available in this PySAM module. Therefore, the onus is on the PySAM user to check that interdependencies are correctly handled. The variables which may require additional logic include:
Provided for each of these inputs is a list of other inputs that are potentially interdependent.
Creating an Instance¶
Refer to the Initializing a Model page for details on the different ways to create an instance of a PySAM class.
UiTesCalcs model description
UiTesCalcs
-
PySAM.UiTesCalcs.
default
(config) → UiTesCalcs¶ Use default attributes None
-
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
-
replace
(dict) → None¶ Replace attributes from nested dictionary, except for Outputs. Unassigns all values in each Group then assigns from the input dict.
nested_dict = { 'Common': { var: val, ...}, ...}
-
unassign
(name) → None¶ Unassign a value in any of the variable groups.
-
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
(dict) → None¶ Assign attributes from dictionary, overwriting but not removing values
Common_vals = { var: val, ...}
-
export
() → dict¶ Export attributes into dictionary
-
replace
(dict) → None¶ Replace attributes from dictionary, unassigning values not present in input dict
Common_vals = { var: val, ...}
-
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
(dict) → None¶ Assign attributes from dictionary, overwriting but not removing values
Outputs_vals = { var: val, ...}
-
export
() → dict¶ Export attributes into dictionary
-
replace
(dict) → None¶ Replace attributes from dictionary, unassigning values not present in input dict
Outputs_vals = { var: val, ...}
-
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
-