Integration Tests

test_pump_resistor_in_series_follows_analytic_solution

A simple circuit of an ideal pump and an ideal resistor.

test_parallel_resistors_with_pump_against_analytic_solution

A simple circuit of an ideal pump and two ideal resistors in parallel.

test_resistors_in_series_against_analytic_solution

test_channel_stable_state_with_uniform_heating_increases_linearly

For uniform heat flux, the temperature should rise linearly in the simple channel model (T flow).

test_channel_point_kinetics

Checking compatibility between channels and Point Kinetics through a simple, analytical case.

test_kirchhoff_with_decaying_pump_eventually_flips_flow_direction_gravity

Gravity induces pressure differences.

test_Tin_jumps_at_resistor_between_two_hxs_at_flow_reversal

Circuit.

test_power_is_negligible_for_negative_Tfuel_feedback_and_ref_temp_is_boundary_conditions

This test checks whether negative feedback may be established between a Fuel calculation and Point Kinetics.

test_power_is_negligible_for_negative_Tcool_feedback_and_ref_temp_is_inlet

This test checks whether negative feedback may be established between an MTR Channel calculation and Point Kinetics.

test_inertia_through_RL_circuit_follows_analytic_solution

test_kirchhoff_significance_in_two_in_series_resistors

test_kirchhoff_significance_for_many_parallel_edges

Looking at test_kirchhoff_significance_in_two_in_series_resistors, for integer values of signify there should be an equivalent system in which R1 is duplicated signify times.

test_pump_and_current_source

test_flapper_opens_with_ref_mdot

test_flapper_and_pump

test_pump_coastdown_allows_channels_to_reverse_flow_direction

Let us assume the following system: two channels standing upright where one is hotter than the other, and a pump pumping water from the cold channel to the hot channel.

test_inertia_with_friction_in_PCS_coastdown

This test is equivalent to Primary Cooling System Coastdown.

test_local_pressure_with_flow_reversal

Testing a simple circuit in which a local pressure drop experiences flow reversal

Testing global, or integrative, arrangements.

test_Tin_jumps_at_resistor_between_two_hxs_at_flow_reversal()[source]

Circuit:

HX1 -->-- R -->-- HX2
 |                 |
 ---<--- P ---<----

When flow direction is positive, the resistor’s temperature should be that of HX1. If it is reversed, the temperature should be that of HX2.

test_channel_point_kinetics()[source]

Checking compatibility between channels and Point Kinetics through a simple, analytical case.

test_channel_stable_state_with_uniform_heating_increases_linearly()[source]

For uniform heat flux, the temperature should rise linearly in the simple channel model (T flow). Each fuel cell receives :param P power.

Return type:

None

test_inertia_through_RL_circuit_follows_analytic_solution()[source]
Parameters:
  • r (float) – Resistance

  • inertia (float) – Moment of inertia

Return type:

None

test_inertia_with_flapper_in_PCS_coastdown()[source]

This test is conceptually equivalent to Primary Cooling System Coastdown, only this time another branch is added, hosting a Flapper. The flapper is set to open at a specific time.

Eventually, flow between the open flapper and the resistor should be equal.

test_inertia_with_friction_in_PCS_coastdown()[source]

This test is equivalent to Primary Cooling System Coastdown.

test_inertia_with_transistor_in_PCS_coastdown()[source]

This test is conceptually equivalent to Primary Cooling System Coastdown. This time another branch is added, hosting a time dependent parabolic resistor which starts at a large resistance, and decreases drastically at some point in time. We only check for convergence.

Absolute tolerance (atol) in \(\ddot{m}\) eqs. should be noted.

test_inertia_with_two_parallel_resistors()[source]

This test is equivalent conceptually to Primary Cooling System Coastdown, but with two resistors in parallel instead of one. This test was added due to prove KirchhoffWDerivatives’s ability to handle more complex situations.

Return type:

None

test_kirchhoff_significance_for_many_parallel_edges()[source]

Looking at test_kirchhoff_significance_in_two_in_series_resistors, for integer values of signify there should be an equivalent system in which R1 is duplicated signify times.

Return type:

None

test_kirchhoff_with_decaying_pump_eventually_flips_flow_direction_gravity()[source]

Gravity induces pressure differences. p1, p2 designate the uphill and downhill gravity differences, in a very crude model.

test_local_pressure_with_flow_reversal()[source]

Testing a simple circuit in which a local pressure drop experiences flow reversal

test_parallel_resistors_with_pump_against_analytic_solution()[source]

A simple circuit of an ideal pump and two ideal resistors in parallel.

Return type:

None

test_power_is_negligible_for_negative_Tcool_feedback_and_ref_temp_is_inlet()[source]

This test checks whether negative feedback may be established between an MTR Channel calculation and Point Kinetics. In this setup, a fuel plate and channel represent the core. T0 is the critical reference temperature of the coolant. Thus, at steady state the power should be close to zero and all temperatures should be close to T0.

test_power_is_negligible_for_negative_Tfuel_feedback_and_ref_temp_is_boundary_conditions()[source]

This test checks whether negative feedback may be established between a Fuel calculation and Point Kinetics. In this setup, a fuel plate is tied to a thermal bath of temperature T0, which is also the critical reference temperature. Thus, at steady state the power should be close to zero and all temperatures should be T0.

test_pump_coastdown_allows_channels_to_reverse_flow_direction()[source]

Let us assume the following system: two channels standing upright where one is hotter than the other, and a pump pumping water from the cold channel to the hot channel. As the pump coasts down, the gravitational effect becomes more prominent until the flow is reversed.

test_pump_resistor_in_series_follows_analytic_solution()[source]

A simple circuit of an ideal pump and an ideal resistor.

Return type:

None