Libraries Tests

Heat Transfer Coefficient Tests

Testing the Clad-Coolant contact term functions

test_regime_dependent_h_spl_assigns_regimes_correctly()[source]

In this test, the reynolds number is set to be just mdot, thus it is directly compared with the re regime bounds. The laminar and turbulent spl values are set to be simply given values, and are compared with the interpolation scheme

Return type:

None

test_regime_dependent_q_scb_is_zero_for_Twall_equals_Tsat()[source]

Both Bergles-Rosenhow and McAdams are zero at Twall=Tsat

Return type:

None

test_BR_T_wall_inc_for_precalculated_case

test_BR_partial_scb_for_precalculated_case

test_htc_is_geq_to_Dittus_Boelter

test_wall_temperature_for_precalculated_case

test_regime_dependent_q_scb_is_zero_for_Twall_equals_Tsat

Both Bergles-Rosenhow and McAdams are zero at Twall=Tsat

test_regime_dependent_h_spl_assigns_regimes_correctly

In this test, the reynolds number is set to be just mdot, thus it is directly compared with the re regime bounds.

Pressure Drop Tests

test_turbulent_friction_for_precalculated_case

test_viscosity_correction_for_precalculated_case

test_rectangular_laminar_correction_for_precalculated_case

test_Darcy_Weisbach_pressure_by_mdot_for_precalculated_case

test_local_pressure_inverse_methods_are_inverse

test_pressure_difference_for_a_few_simple_cases

Pressure difference (by gravity and friction) becomes greater as current decreases, since gravity offsets friction

test_friction_factor_identifies_the_required_names

test_friction_factor_raises_value_error_for_unknown_names

test_friction_factor_keyword_passing

test_regime_dependent_friction_assigns_regimes_correctly

test_idelchik_expansion_is_analytic_for_large_re

test_idelchik_local_pd_computes_nonpositive_dp

test_idelchik_contraction_at_high_reynolds_follows_known_form

Regression / comparison testing the pressure drop functions and correlations

test_Darcy_Weisbach_pressure_by_mdot_for_precalculated_case(mdot, rho, f, L, Dh, A, pdd)[source]
test_bend_factor_for_precalculated_cases(angle, relative_curvature, re, k_bend)[source]
test_bend_factor_for_zero_bend_angle_returns_zero()[source]
Return type:

None

test_bend_factor_raises_error_when_angle_out_of_range()[source]
Return type:

None

test_bend_factor_raises_error_when_relative_curvature_out_of_range()[source]
Return type:

None

test_contraction_when_ratio_is_0_has_factor_half()[source]
Return type:

None

test_contraction_when_ratio_is_1_asserts_no_pressure()[source]
Return type:

None

test_expansion_when_ratio_is_0_has_factor_one()[source]
Return type:

None

test_expansion_when_ratio_is_1_asserts_no_pressure()[source]
Return type:

None

test_friction_factor_identifies_the_required_names()[source]
test_friction_factor_keyword_passing()[source]
test_friction_factor_raises_value_error_for_unknown_names()[source]
test_idelchik_contraction_at_high_reynolds_follows_known_form()[source]
Return type:

None

test_idelchik_expansion_is_analytic_for_large_re()[source]
Return type:

None

test_idelchik_local_pd_computes_nonpositive_dp()[source]
Return type:

None

test_local_pressure_inverse_methods_are_inverse()[source]
Return type:

None

test_pressure_difference_for_a_few_simple_cases()[source]

Pressure difference (by gravity and friction) becomes greater as current decreases, since gravity offsets friction

test_rectangular_laminar_correction_for_precalculated_case(a_dp, K_R)[source]
test_regime_dependent_friction_assigns_regimes_correctly()[source]
Return type:

None

test_turbulent_friction_for_precalculated_case(re, epsilon, turbulent_pd)[source]
test_viscosity_correction_for_precalculated_case(heat_wet_ratio, mu_ratio, K_H)[source]

Thresholds Tests

test_SK_CHF_is_non_negative_for_specific_cases

test_WF_OFI_for_precalculated_case

test_Saha_Zuber_OSV_precalculated_case

test_Mirshak_CHF_precalculated_case

test_Fabrega_CHF_precalculated_case

Testing the post-analysis thresholds functions

test_Fabrega_CHF_precalculated_case(T_sat, Tin, Dh, critical_flux)[source]
test_Mirshak_CHF_precalculated_case(T, p, u, critical_flux)[source]
test_SK_CHF_is_non_negative_for_specific_cases()[source]
test_Saha_Zuber_OSV_precalculated_case(T, p, u, Dh, critical_flux)[source]
test_WF_OFI_for_precalculated_case(mdot, T_sat, Tin, Dh, Lh, G, PF)[source]
test_bpr_finite_nonzero_for_one_sided_channel()[source]