DsgFluxPreprocess¶
Wrapper for SAM Simulation Core model: cmod_dsg_flux_preprocess.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.
DsgFluxPreprocess model description
DsgFluxPreprocess
-
PySAM.DsgFluxPreprocess.
default
(config) → DsgFluxPreprocess¶ Use default attributes None
-
PySAM.DsgFluxPreprocess.
from_existing
(data, optional config) → DsgFluxPreprocess¶ Share underlying data with an existing PySAM class. If config provided, default attributes are loaded otherwise.
-
PySAM.DsgFluxPreprocess.
new
() → DsgFluxPreprocess¶
-
PySAM.DsgFluxPreprocess.
wrap
(ssc_data_t) → DsgFluxPreprocess¶ Use existing PySSC data
Warning
Do not call PySSC.data_free on the ssc_data_t provided to
wrap
Functions¶
-
class
PySAM.DsgFluxPreprocess.
DsgFluxPreprocess
¶ 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.DsgFluxPreprocess.DsgFluxPreprocess.
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, ...}
-
CT
¶ Cooling type
Required: True
Type: float
-
P_HP_in
¶ HP Turbine inlet pressure [bar]
Required: True
Type: float
-
P_HP_out
¶ HP Turbine outlet pressure [bar]
Required: True
Type: float
-
P_cycle_des
¶ Cycle power output at design [MW]
Required: True
Type: float
-
Q_rec_des
¶ Receiver thermal power at des. [MW]
Required: True
Type: float
-
T_ITD_des
¶ T_cond - T_db [C]
Required: True
Type: float
-
T_amb_des
¶ Ambient (wb) temp at design [C]
Required: True
Type: float
-
T_approach
¶ dT cold cooling water - T_wb [C]
Required: True
Type: float
-
T_rh_out_ref
¶ Reheater outlet temperature [C]
Required: True
Type: float
-
T_sh_out_ref
¶ Superheater outlet temperature [C]
Required: True
Type: float
-
b_q_loss_flux
¶ Boiler heat loss flux [kW/m2]
Required: True
Type: float
-
dT_cooling_ref
¶ dT of cooling water [C]
Required: True
Type: float
-
eta_cycle_des
¶ Cycle thermal efficiency at des.
Required: True
Type: float
-
max_flux_b
¶ Max allow. boiler flux [kW/m2]
Required: True
Type: float
-
max_flux_rh
¶ Max allow. reheater flux [kW/m2]
Required: True
Type: float
-
max_flux_sh
¶ Max allow. superheater flux [kW/m2]
Required: True
Type: float
-
rh_frac_ref
¶ Mdot fraction to reheat at design
Required: True
Type: float
-
rh_q_loss_flux
¶ Reheater heat loss flux [kW/m2]
Required: True
Type: float
-
sh_q_loss_flux
¶ Superheater heat loss flux [kW/m2]
Required: True
Type: float
-
Outputs Group¶
-
class
PySAM.DsgFluxPreprocess.DsgFluxPreprocess.
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, ...}
-
f_b
¶ Fraction of total height to boiler
Type: float
-
f_rh
¶ Fraction of total height to RH
Type: float
-
f_sh
¶ Fraction of total height to SH
Type: float
-
max_flux
¶ Maximum flux allow. on receiver [kW/m2]
Type: float
-