Skip to main content

geoclaw-landspill

License Travis CI GitHub Action CI status Conda

Note: if looking for content of geoclaw-landspill-cases, please checkout tag v0.1. This repository has been converted to a fully working solver package.

geoclaw-landspill is a package for running oil overland flow simulations for applications in pipeline risk management. It includes a numerical solver and some pre-/post-processing utilities.

The numerical solver is a modified version of GeoClaw. GeoClaw solves full shallow-water equations. We added several new features and utilities to it and make it usable to simulate the overland flow from pipeline ruptures. These features include:

  • adding point sources to mimic the rupture points
  • adding evaporation models
  • adding Darcy-Weisbach bottom friction models with land roughness
  • adding temperature-dependent viscosity
  • recording detail locations and time of oil flowing into in-land waterbodies
  • downloading topography and hydrology data automatically (the US only)
  • generating CF-1.7 compliant NetCDF files

Documentation

  1. Dependencies, installation, and tests
  2. Usage
  3. Configuration file: setrun.py
  4. Example cases
  5. Containers: Docker and Singularity

Quick start

We only maintain compatibility with Linux. Though using pip or building from source may still work in Mac OS or Windows (e.g., through WSL), we are not able to help with the installation issues on these two systems.

Beyond this quick start, to see more details, please refer to the documentation section.

1. Installation

The fast way to install geoclaw-landspill is through Anaconda's conda command. The following command creates a conda environment (called landspill) and installs the package and dependencies:

$ conda create \
    -n landspill -c barbagroup -c conda-forge \
    python=3.8 geoclaw-landspill

Then use conda activate landspill or source <conda installation prefix>/bin/activate landspill to activate the environment. Type geoclaw-landspill --help in the terminal to see if geoclaw-landspill is correctly installed.

2. Running an example case

To run an example case under the folder cases, users have to clone this repository. We currently don't maintain another repository for cases. After cloning this repository, run

$ geoclaw-landspill run <path to an example case folder>

For example, to run utal-flat-maya:

$ geoclaw-landspill run ./cases/utah-flat-maya

Users can use environment variable OMP_NUM_THREADS to control how many CPU threads the simulation should use for OpenMP parallelization.

3. Creating a CF-compliant NetCDF raster file

After a simulation is done, users can convert flow depth in raw simulation data into a CF-compliant NetCDF raster file. For example,

$ geoclaw-landspill createnc ./case/utah-flat-maya

Replace ./cases/utah-flat-maya with the path to another desired case.

QGIS and ArcGIS should be able to read the resulting NetCDF raster file.


Third-party codes and licenses


Contributing

See CONTRIBUTING.md.


Contact

Pi-Yueh Chuang: pychuang@gwu.edu

Metadata

Release files for geoclaw-landspill 1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for geoclaw-landspill 1.0
File Size Uploaded
geoclaw-landspill-1.0.tar.gz 377.5 kB Details

Release files / geoclaw-landspill-1.0.tar.gz

Download URL geoclaw-landspill-1.0.tar.gz
Size 377.5 kB
Tags Source
SHA-256 checksum
How to use checksums
325585e9783fc326a441c93349e7603fe8e875f289ecfb9698a592e5ab84f028
BLAKE2b-256 checksum
How to use checksums
21067bcb3833ef652b358627495925e90107ac17f31ac8327d2f7aa5b984521b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page