DsgFluxPreprocess¶
Wrapper for SAM Simulation Core model: cmod_dsg_flux_preprocess.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.
DsgFluxPreprocess model description
DsgFluxPreprocess
-
PySAM.DsgFluxPreprocess.default(config) → DsgFluxPreprocess¶ Use financial config-specific default attributes
-
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
-
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() → None¶ Assign attributes from dictionary
Common_vals = { var: val, ...}
-
export() → dict¶ Export attributes into dictionary
-
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() → None¶ Assign attributes from dictionary
Outputs_vals = { var: val, ...}
-
export() → dict¶ Export attributes into dictionary
-
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
-