Skip to content

FLUXOS-OVERLAND solved the 2D shallow water PDEs that accounts for inertial (local and convective), pressure, gravity and friction forces (momentum balance). The model can capture backwater effects (unlike the kinematic or diffusion waves). This is critical to simulate low-relief terrains. The model was originally developed for river reach flood…

Notifications You must be signed in to change notification settings

seantrim/FLUXOS_cpp

 
 

Repository files navigation

FLUXOS-OVERLAND

Table of Contents

Introduction

  • Soure code for the FLUXOS-OVERLAND model. The original code (named as FLUXOS) was written in Fortran and consisted of the coupling of 2dmb, +QeS2, MODFLOW and MT3DMS.

  • Modifications (from FLUXOS to FLUXOS-OVERLAND):

    • Converted to C++
    • Uses: Armadillo template-based C++ library for linear algebra
    • Removed: MODFLOW and MT3DMS (currently there is no baseflow)
    • WINTRA algorithm was integrated for calculation of runoff-soil interactions and nutrient release (paper)
  • Reading material:

Branches

Active

  • main: primary branch with latest verified updates to the working code
  • development: used to verify updates from feature branches before merging with main
  • supporting_scripts: feature branch for development of supporting Python and MATLAB scripts

To be Archived

  • adesolver: Adection-Dispersion-Reaction equation solver was converted to C++ and debugged
  • adesolver_wintra: the wintra algorithm was added

Notes

  • Note that the primary branch (formerly known as "master") was renamed as "main"
  • If using a local clone with the previous naming scheme, the clone may be updated using the following Git commands:
$ git branch -m master main
$ git fetch -p origin
$ git branch -u origin/main main

Compiling

  • CMake: CMakeLists.txt is provided
  • Library dependencies: Armadillo
  • CMake minimum version: 3.10

Execution

  • Create a folder with name "Results" inside the working directory where the input files and executable are located
  • input files (see example in Working_example folder)
    • primary input file: e.g., modset
    • DEM file (Esri ASCII-format raster with headers removed -> this will be fixed soon)
    • DEM of the basin (sub-set of the main DEM file for FLUXOS to know where the boundaries of the basin are)
    • Snowmelt timeseries (time,mm/day)
  • to execute: ./fluxos_cpp "argument_1" (where "argument_1" is the primary input file)

Visualization

  • Output stored in "Results" folder may be visualized using VisIt:

alt text

Supporting Scripts

Working Example

About

FLUXOS-OVERLAND solved the 2D shallow water PDEs that accounts for inertial (local and convective), pressure, gravity and friction forces (momentum balance). The model can capture backwater effects (unlike the kinematic or diffusion waves). This is critical to simulate low-relief terrains. The model was originally developed for river reach flood…

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 83.5%
  • C++ 12.7%
  • MATLAB 1.5%
  • JavaScript 1.0%
  • Python 0.8%
  • CSS 0.4%
  • Other 0.1%