Skip to content

Latest commit

 

History

History
63 lines (50 loc) · 4.9 KB

SOW.md

File metadata and controls

63 lines (50 loc) · 4.9 KB

Statement of Work

G2 Integrated Solutions (G2-IS) would like to upgrade their capacity to simulate spreading of hydrocarbon products (crude oil and refined products) from pipeline breakage events. Such simulations may be part of the analysis aimed at understanding the potential damage from release of liquid hydrocarbons, which federal regulators require of interstate pipeline operators. A current simplified model uses transport mechanisms on a topography, obtained using the ArcGIS mapping platform with the Spatial Analyst extension. The model is based on flow trajectory, lateral spread and hydrographic transport, coupled with 1D open channel flow, and considers effects like evaporation, and infiltration.

The aim of this work is to demonstrate a model with more detailed physics, using 2D shallow-water equations. This modeling framework simplifies the 3D Navier-Stokes equation for fluid flow, assuming that depth of the fluid is very small in scale, compared with the horizontal dimensions. Several open-source research software packages are available for modeling via the shallow-water equations. As a starting point, we consider GeoClaw, developed at University of Washington, and based in the Clawpack library for hyperbolic partial differential equations. These software are under the 3-clause BSD open-source license, a permissive license allowing commercial uses.

We will assess the appropriateness of the shallow-water-equations framework for the target scenario of overland flow from pipeline rupture points. We will also refine a workflow that G2-IS can adopt for regular use, according to requirements. All software deliverables will open source, under the permissive 3-clause BSD license.

Anticipated tasks

  1. Modifications to the GeoClaw software will be required to extend its use from tsunami simulation (its original application), to overland hydrocarbon flows. The following modifications are likely to be needed:

    1. Moving the friction term from Manning's equation to Darcy-Weisbach equation.
    2. Implementing automatic simulation termination based on contact of the hydrocarbon plume with any hydrologic feature (rivers, ponds, lakes, pools, etc.).
    3. Allowing a configurable input for the locations and time histories (flow hydrographs) of point sources, representing pipe rupture points.
    4. Allowing configurable input for the physical properties of the working fluid (density and viscosity).
    5. Outflow boundary conditions from the domain.
    6. Adding evaporation and infiltration models, with configurable input parameters.

     Other modifications may also be required, based on the input from G2-IS during the course of this project.

  1. Performance improvement to achieve runtimes in the order of minutes per rupture point. Possible approaches include:

    1. Taking advantage of Clawpack's multi-core parallelism (OpenMP).
    2. Experimenting with different settings for Adaptive Mesh Refinement (AMR).
    3. Modifying the code to ignore dry regions.
    4. Investigating the use of adaptive time steps.
  2. Refining of a workflow for repeated simulation of rupture points, as part of a larger analysis. We will consider the following potential improvements, given that GeoClaw is not user-friendly:

    1. Create a simple way to launch simulations, without needing to re-compile for different initial conditions.
    2. Simplify the way to configure the various simulation parameters.
    3. Integrate with Jupyter Notebooks for seamless workflows and reports.
    4. Design for implementation via REST web service.
    5. Integrate with Esri GIS software, as needed.
    6. For topgraphy data input, incorporate common Esri-supported raster formats, and/or direct read from the Esri World Terrain web service.
    7. For hydrography data input, incorporate common Esri-supported vector formats, and/or direct read from the Esri USA National Hydrography web service.
    8. Study the use of GPU-enabled Amazon AWS, Microsoft Azure or other cloud services.
    9. Output to commonly used GIS file formats: e.g., NetCDF.
    10. Resampling of AMR output (in both the X/Y and time domains) to single-resolution, square X/Y mesh and uniform time step to conform to Esri raster format limitations.
    11. Consider the workflow using Windows systems, including compiling underlying Fortran libraries for use in Windows operating systems.
  3. Possible model improvements (research questions):

    1. Study the effect of Darcy friction factor.
    2. Consider the effect of surface tension.
    3. Consider the effect of weather conditions: winds, rains, etc.