EnviroGRIDS Project - Gridification of SWAT

What is SWAT?

The Soil and Water Assessment Tool (SWAT) is a physically-based continues-event hydrologic model developed to predict the impact of land management practices on water, sediment and agricultural chemical yields in large, complex watersheds with varying soils, land use, management conditions over long period of time. For simulation, a watershed is subdivided into a number of homogeneous subbasins (hydrologic response units or HRUs) having unique soil and land use properties. The input information for each subbasin is grouped into categories of weather; unique areas of land cover, soil and management within the subbasin; ponds/reservoirs; groundwater; and the main channel of reach, draining the subbasin. The loading and movement of runoff, sediment, nutrient and pesticide loadings to the main channel in each subbasin in simulated considering the effect of several physical processes that influence the hydrology.

Objectives of SWAT

  • Simulation of processes at land and water phase
  • Spatially distributed (different scales)
  • Semi physically based / empirical approaches
  • Simulation of changes (climate, land use, management etc.)
  • Water quantities, incl. different runoff components
  • Water quality: Nutrients, Sediments, Pesticides, Bacteria, (algae and oxygen), etc.

Gridification of SWAT

The main purpose of SWAT gridification is to enable Grid-computing for SWAT software.

For now, main objectives are:

  • Enabling SWAT simulation to run using Ganga application
  • Enabling SWAT uncertainty analysis to run using Ganga application.
  • To build some kind of middle-ware for sending input and running SWAT specified jobs.

SWAT first grid run

SWAT simulation was run on LCG Backend (Balaton region model from enviroGRIDS project) using Ganga software. Lake Balaton region of research is about 2500km2 which is part of enviroGRIDS Black Sea research area (about 2000 000km2). For Balaton Lake the amount of input data is 5.9MB and output is 49.3MB for 16 years simulation. Input and output data amount depends on research mesh resolution so it could be, as well, larger or smaller for any similar area. Average one job execution time (for Balaton Lake using LCG backend) is about 40 minutes (strongly dominated by grid overhead).
Input and output data have very good compression factor which is about 7.
Model calibration and uncertainty analysis or calculating very large models splitted on subbasins requires very large number of swat runs which justifies using of computing grid.

SWAT2009 compilation

Written for Intel Fortran Compiler
Under Linux (c2d 2.0Ghz machine) compiling takes about 5 minutes 22 seconds

Subbasin based parallelization

The first phase of SWAT algorithms seems to work very well. It still requires some adjustments but the current outcome is very satisfying. The idea on subbasin base parallelization is do split model onto subbasins before running SWAT on it, then run SWAT on split model and merge it after all. Right now we are taking cross platform approach so splitter and merger is written in Python. During merging swatgrid application is in use, it basically finishes SWAT calculation based on routing.

Recent activity

We are now able to run split model using diane/ganga tandem, further testing are in progress.

Parallelization of SWAT-CUP algorithms

It seems, the best way to parallelize SWAT-CUP is to use SUFI2 calibration algorithm. It is the only one that allow running SWAT simulations in parallel and use their output afterwards. Right now we are waiting for our partners to provide us with properly modified executables.

Half Year Plan (01.01.2010 - 01.07.2010)

  • 01.03.2010 - Splitting and merging pre and post processors running under linux
  • 01.04.2010 - Alpha version of monitoring tool for SWAT jobs
  • 12.04.2010 - Upsalla Milestone with working subbasin based splitting and merging and simple SWAT dedicated monitoring tool.
  • 01.07.2010 - Beta or RC version of SWAT dedicated monitoring tool. Tested and certified versions of subbasin based splitter and merger.

Monitoring System

As a part of SWAT gridification we develop new ganga/diane monitoring system.
System is now in test phase and things are fixed and added on daily basis. For more information about Ganga/Diane Dashboard see documentation

Important Links

enviroGRIDS home page: http://www.envirogrids.net/
SWAT home page: http://www.brc.tamus.edu/swat/index.html
SWAT-CUP home page: http://www.eawag.ch/organisation/abteilungen/siam/software/swat/index_EN

Download recourses

SWAT Source (and 32bit executable) for Linux: ftp://ftp.brc.tamus.edu/pub/outgoing/bkomar/linux/swat/dev9.zip
Topic attachments
I Attachment History Action Size Date Who Comment
Unknown file formatpptx Gridification_of_SWAT.pptx r1 manage 83.4 K 2009-10-14 - 16:33 UnknownUser Slide for Group Leaders Meeting (first observations on SWAT simulations)
Unknown file formatgz swatgrid.tar.gz r1 manage 405.2 K 2010-01-19 - 11:10 UnknownUser Swatgrid merge application + 32bit swatgrid linux archive
Compressed Zip archivetgz txtinout.tgz r1 manage 340.8 K 2009-10-15 - 11:57 UnknownUser Balaton Lake Simulation Input files
Edit | Attach | Watch | Print version | History: r9 < r8 < r7 < r6 < r5 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r9 - 2010-01-19 - unknown
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    ArdaGrid All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback