Question
Asked 22 January 2025

How to Access and Manipulate the Source Code of the SWAT+ Model? Any Tutorials or Guidelines?

I am working on enhancing the SWAT+ model for my PhD research and need to modify its source code. Could anyone suggest:
  1. Tutorials or documentation for understanding and editing the source code?
  2. Tips or tools for compiling and testing changes?
  3. How much knowledge of Fortran is required for this task? Are there any recommended Fortran tutorials tailored to such purposes?
Any guidance would be greatly appreciated. Thank you!

Most recent answer

Rouhollah Davarpanah
Warsaw University of Life Sciences
Thank you, professor. I appreciate your support and guidance.

All Answers (5)

Toby Carlson
Pennsylvania State University
Are you replying in relation to the SWAT model? We published online, complete with the code in both executable and basic code statements, along with a vast quantity of aux
1 Recommendation
Toby Carlson
Pennsylvania State University
Finishing last message. If you’re interested in our online version of Svat that can be downloaded. please contact me at tnc@psu.edu. All lowercase.
1 Recommendation
Rouhollah Davarpanah
Warsaw University of Life Sciences
Dear Professor Carlson,
Thank you for your kind response. Upon reviewing your model, SVAT, I noticed that it differs from the SWAT model (Soil and Water Assessment Tool) that I am currently working with. The SWAT model was developed by Dr. Jeff Arnold and his team at the USDA Agricultural Research Service.
However, I found that your SVAT model shares some similar objectives and features, which could be highly beneficial for my research. I am currently working on a literature review paper, and I would like to reference your model based on its capabilities and contributions to the field.
So, I will contact you to receive the SVAT model as I am trying to discover its features.
Thank you for your support and consideration.
Regards,
Rouhollah Davarpanah
Toby Carlson
Pennsylvania State University
Mr D. I just sent you the paper containing a link to the SVAT model.
Rouhollah Davarpanah
Warsaw University of Life Sciences
Thank you, professor. I appreciate your support and guidance.

Similar questions and discussions

What is the relationship between evapotranspiration and groundwater fluctuations? How does this relationship affect recharge analysis?
Question
11 answers
  • Xiaoran YinXiaoran Yin
Hi all,
I have a question regarding the relationship between evaporation and groundwater fluctuations. Does evaporation cause groundwater to fall, or does rising groundwater lead to increased evaporation?
By "evaporation," I mean actual evapotranspiration from the land surface, as defined by most evapotranspiration models (e.g., GLEAM, MERRA).
I believe this process can be described using a conceptual model:
Imagine a cup of water with green beans soaking in it, covered by a lid. When the lid is opened, water evaporates, and as the water level decreases, does the evaporation (per unit of time) also decrease? The answer is yes, indicating that groundwater (represented by the cup of water) influences evaporation.
Now, imagine the cup is topped by a sponge (representing the unsaturated zone). If we measure evaporation from the top of the sponge (which should represent actual evapotranspiration at the land surface), the evaporation will still decrease as the water in the cup (groundwater) decreases. However, there should be a time lag because groundwater evaporation reaches the sponge first.
This concept is especially relevant for soils, where soil evaporation is derived from both past groundwater evaporation and past precipitation infiltration. Similarly, for vegetation transpiration, a rising water table would lead to increased water uptake by vegetation, thereby increasing transpiration. Again, a time lag would be expected in this process.
In other words, according to this conceptual model, actual evapotranspiration at the land surface tends to lag behind groundwater evaporation.
With this in mind, is it correct that groundwater recharge analysis should subtract evapotranspiration from precipitation and then calculate recharge per unit of time? In particular, in some common response analyses, recharge is considered as the net of precipitation minus evaporation, and then the groundwater time series is fitted with a gamma function or other response functions. However, doesn't this treatment implicitly assume that higher evaporation leads to lower groundwater levels in the future?
However, shouldn't evaporation be a “sink” rather than a “source” of groundwater? Shouldn't the only components of evapotranspiration that affect recharge be vegetation indicating interception losses and soil interception?
Please let me know your answer.

Related Publications

Article
Full-text available
TheBrazilian Cerrado biome (BCB) is among 25 biodiversity hotspots identified worldwide, and covers the recharge area of important aquifers and rivers in South America. The increase in deforestation has been threatening water availability in this region. In order to assist in the water-resource management of the BCB, this study models the daily str...
Article
Full-text available
A Graphical User Interface (GUI) is regularly used to support model applications in catchment hydrological modelling software. A GUI is generally user-friendly for novice users but opens sources of irreproducible research. We illustrate that none of the 10 Soil and Water Assessment Tool (SWAT) models over the Upper Blue Nile can easily be reproduce...
Article
Full-text available
Although hydrological models play an essential role in managing water resources, quantifying different sources of uncertainties is a challenging task. In this study, the application of parameter uncertainty quantification methods and their performance for predicting runoff were investigated in Kashafrood River, as a large-scale basin, located in th...
Got a technical question?
Get high-quality answers from experts.