h2integrate.simulation.technologies.hydrogen.h2_transport.h2_export_pipe

h2integrate.simulation.technologies.hydrogen.h2_transport.h2_export_pipe#

Author: Jamie Kee Added to HOPP by: Jared Thomas Note: ANL costs are in 2018 dollars

07/15/2024: Jamie removed Z=0.9 assumption with linear approx, removed f=0.01 assumption with Hofer eqn, added algebraic solver, and reformatted with black. 08/02/2024: Provide cost overrides

Functions

checkASMEB318(SMYS, diam, thickness, riser, ...)

Determine if pipe parameters satisfy hoop and longitudinal stress requirements

get_anl_costs(costs, total_L, anl_cost_overrides)

Calculates the labor, right-of-way (ROW), and miscellaneous costs associated with pipe capital cost

get_mat_costs(schedules_spec, total_L, ...)

Calculates the material cost based on $/kg from Savoy for each grade Inc., S.

get_mat_factor(SMYS, SMTS, design_pressure)

Determine the material performance factor ASMEB31.12.

get_min_diameter_of_pipe(L, m_dot, p_inlet, ...)

Overview: This function returns the diameter of a pipe for a given length,flow rate, and pressure boundaries

run_pipe_analysis(L, m_dot, p_inlet, ...[, ...])

This function calculates the cheapest grade, diameter, thickness, subject to ASME B31.12 and .8

h2integrate.simulation.technologies.hydrogen.h2_transport.h2_export_pipe.run_pipe_analysis(L, m_dot, p_inlet, p_outlet, depth, risers=1, data_location=PosixPath('/home/runner/work/H2Integrate/H2Integrate/h2integrate/simulation/technologies/hydrogen/h2_transport/data_tables'), labor_in_mi=None, misc_in_mi=None, row_in_mi=None, mat_in_mi=None, region='SW')#

This function calculates the cheapest grade, diameter, thickness, subject to ASME B31.12 and .8

If $/in/mi values are provided in labor_in_mi, misc_in_mi, row_in_mi, mat_in_mi, those values will be used in the cost calculations instead of the defaults

Parameters:
  • L (float)

  • m_dot (float)

  • p_inlet (float)

  • p_outlet (float)

  • depth (float)

  • risers (int)

  • data_location (str | Path)

  • labor_in_mi (float | None)

  • misc_in_mi (float | None)

  • row_in_mi (float | None)

  • mat_in_mi (float | None)

  • region (str)

h2integrate.simulation.technologies.hydrogen.h2_transport.h2_export_pipe.get_mat_factor(SMYS, SMTS, design_pressure)#

Determine the material performance factor ASMEB31.12. Dependent on the SMYS and SMTS. Defaulted to 1 if not within parameters - This may not be a good assumption

Parameters:
  • SMYS (float)

  • SMTS (float)

  • design_pressure (float)

Return type:

float

h2integrate.simulation.technologies.hydrogen.h2_transport.h2_export_pipe.checkASMEB318(SMYS, diam, thickness, riser, depth, p_inlet, T_derating)#

Determine if pipe parameters satisfy hoop and longitudinal stress requirements

Parameters:
  • SMYS (float)

  • diam (float)

  • thickness (float)

  • riser (bool)

  • depth (float)

  • p_inlet (float)

  • T_derating (float)

Return type:

bool

h2integrate.simulation.technologies.hydrogen.h2_transport.h2_export_pipe.get_anl_costs(costs, total_L, anl_cost_overrides, loc='SW')#

Calculates the labor, right-of-way (ROW), and miscellaneous costs associated with pipe capital cost

Users can specify a region (GP,NE,MA,GL,RM,SE,PN,SW,CA) that corresponds to grouping of states which will apply cost correlations from Brown, D., et al. 2022. “The Development of Natural Gas and Hydrogen Pipeline Capital Cost Estimating Equations.” International Journal of Hydrogen Energy https://doi.org/10.1016/j.ijhydene.2022.07.270.

Alternatively, if a value (not None) is provided in anl_cost_overrides, that value be used as the $/in/mi cost correlation for the relevant cost type.

Parameters:
  • costs (DataFrame)

  • total_L (float)

  • anl_cost_overrides (dict)

  • loc (str)

Return type:

DataFrame

h2integrate.simulation.technologies.hydrogen.h2_transport.h2_export_pipe.get_mat_costs(schedules_spec, total_L, steel_costs_kg, mat_cost_override)#

Calculates the material cost based on $/kg from Savoy for each grade Inc., S. P. Live Stock List & Current Price. https://www.savoypipinginc.com/blog/live-stock-and-current-price.html. Accessed September 22, 2022.

Users can alternatively provide a $/in/mi override to calculate material cost

Parameters:
  • schedules_spec (DataFrame)

  • total_L (float)

  • steel_costs_kg (DataFrame)

  • mat_cost_override (float)

h2integrate.simulation.technologies.hydrogen.h2_transport.h2_export_pipe.get_min_diameter_of_pipe(L, m_dot, p_inlet, p_outlet)#

Overview:#

This function returns the diameter of a pipe for a given length,flow rate, and pressure boundaries

Parameters:#

L : float - Length of pipeline [km] m_dot : float = Mass flow rate [kg/s] p_inlet : float = Pressure at inlet of pipe [bar] p_outlet : float = Pressure at outlet of pipe [bar]

Returns:#

diameter_mm : float - Diameter of pipe [mm]

Parameters:
  • L (float)

  • m_dot (float)

  • p_inlet (float)

  • p_outlet (float)

Return type:

float