<jupyter_start><jupyter_text>Core Pressures and Mass FluxWe can additionally find higher level pressure drops across the system.  We will start with a specific steam generator with inputs given below.<jupyter_code>import NuclearTools.MassFlux as mf
import pint
U = pint.UnitRegistry()

obj = mf.steam_generator(
    m = 36*10**6 * U.lb/U.hr,
    T_hl = (620 + 459.67) * U.degR,
    T_cl = (560 + 459.67) * U.degR,
    A_ht = 79800 * U.foot**2,
    n_tubes = 6633,
    D = .6875 * U.inch,
    wall_th = .04 * U.inch,
    L = 30.64 * U.foot,
    radius_max = 53.25 * U.inch,
    radius_min = 2.25 * U.inch,
    plate_th = 21.2 * U.inch,
    inlet_k = 1.5,
    exit_k = 1.0,
    eq_long = 55,
    eq_short = 90,
    U = U)
print('The total pressure loss is:', obj.total_dp)
print('')
print('The friction pressure loss is:', obj.dP_loss.to(U.psi))
print('The exit pressure loss is:', obj.dP_exit.to(U.psi))
print('The entrance pressure loss is:', obj.dP_plate.to(U.psi))<jupyter_output>The total pressure loss is: 30.788242433526023 pound_force_per_square_inch

The friction pressure loss is: 24.632394868638567 pound_force_per_square_inch
The exit pressure loss is: 2.0459598885959243 pound_force_per_square_inch
The entrance pressure loss is: 4.109887676291534 pound_force_per_square_inch<jupyter_text>Above we have all the pressure drops across the system.  Since this is a U-Tube SG, we can also see the difference in the short-leg and long-leg calculations.<jupyter_code>print('The average length velocity is:', obj.v_avg.to(U.foot/U.s))
print('The long-leg length velocity is:', obj.v_long.to(U.foot/U.s))
print('The short-leg length velocity is:', obj.v_short.to(U.foot/U.s))<jupyter_output>The average length velocity is: 17.02281545360703 foot / second
The long-leg length velocity is: 17.14011441419696 foot / second
The short-leg length velocity is: 16.90789221304102 foot / second<jupyter_text>Now we will switch over to the full core calculations<jupyter_code>obj2 = mf.core_pressure(
    pitch = .496 * U.inch,
    D_clad = .374 * U.inch,
    n_rods = 55777,
    height = 144 * U.inch,
    pressure = 2250 * U.psi,
    n_grids = 8,
    k_grid = 0.5,
    core_height = 150 * U.inch,
    k_core_in = 1.5,
    k_core_out = 1.5,
    v_ID = 173 * U.inch,
    b_OD = 157.6 * U.inch,
    L_d = 21 * U.foot,
    k_d = 4.5,
    L_hl = 20 * U.foot,
    D_hl = 2.42 * U.foot,
    HL_LD = 10,
    k_hl_in = 1.5,
    k_hl_out = 1.0,
    k_sg_in = 1.5,
    k_sg_out = 1.0,
    SG_LD = 90,
    D_sg = .6875 * U.inch,
    SG_th = .04 * U.inch,
    n_tubes = 6633,
    A_total = 79800 * U.foot**2,
    L_cl = 40 * U.foot,
    D_cl = 2.29 * U.foot,
    k_cl_in = 1.5,
    k_cl_out = 1.0,
    CL_LD = 50,
    T_in = (560+459.67) * U.degR,
    T_out = (620+459.67) * U.degR,
    m = 144*10**6 * U.lb/U.hour,
    U = U,
    loops = 4)
print('The pressure change in the core:', obj2.P_core(obj2.m).to(U.psi))
print('The pressure change in the downcomer:', obj2.P_downcomer(obj2.m).to(U.psi))
print('The pressure change in the hot leg:', obj2.P_hot_leg(obj2.m).to(U.psi))
print('The pressure change in the steam generator:', obj2.P_sg(obj2.m).to(U.psi))
print('The pressure change in the cold leg:', obj2.P_cold_leg(obj2.m).to(U.psi))
print('The total pressure drop is:', obj2.P_total.to(U.psi))
print('The needed pump horsepower is:', obj2.work.to(U.hp))<jupyter_output>The total pressure drop is: 149.31634426124694 pound_force_per_square_inch
The needed pump horsepower is: 11846.968391401917 horsepower
{'fraction_non_alphanumeric': 0.12997423418265103, 'fraction_numerical': 0.0936158030346407, 'mean_word_length': 3.362047440699126, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '35437', 'license': 'MIT', 'n_tokens_mistral': 1622, 'n_tokens_neox': 1401, 'n_words': 362, 'path': 'Examples/Mass_Flux.ipynb', 'repo_name': 'khurrumsaleem/NuclearTools', 'size': '3493'}