turboflow.centrifugal_compressor.loss_model module

turboflow.centrifugal_compressor.loss_model.LOSS_COEFFICIENTS = ['stagnation_enthalpy_loss', 'static_enthalpy_loss']

Available loss coefficients.

turboflow.centrifugal_compressor.loss_model.LOSS_MODELS = ['isentropic', 'custom', 'oh', 'zhang_set1', 'zhang_set2', 'zhang_set3']

Available loss models.

turboflow.centrifugal_compressor.loss_model.apply_tuning_factors(loss_dict, tuning_factors)[source]

Apply tuning factors to the loss model

The tuning factors are multiplied with their associated loss component.

Parameters:
loss_dictdict

A dictionary containing loss components.

tuning_factorsdict

A dictionary containing the multiplicative tuning factors.

Raises:

KeyError: If a key from tuning_factors is not found in loss_dict.

turboflow.centrifugal_compressor.loss_model.evaluate_loss_model(loss_model_options, input_parameters, component)[source]

Calculate loss coefficient based on the selected loss model.

The avaialble loss models are:

  • isentropic : Loss coefficient set to zero (isentropic).

  • custom : Constant loss coefficent according to user. Require loss_model_options[“custom_value”].

Parameters:
loss_model_optionsdict

Options for the loss calculation.

input_parametersdict

Input parameters required for loss model calculation.

Returns:
dict

A dictionary containing loss components.