Friday, February 16, 2024

Summarizing my cryospheric work (made with a good company)

The hydrological cycle is significantly influenced by the presence of water in its condensed states in middle and extreme latitudes. Various hydrological parameters change below 0  Celsius, such as water viscosity, thermal capacity, and hydraulic conductivity. Consequently, mainstream hydrology treatments that neglect freezing provide incorrect results in winter, high elevations, and the far north and south for most of the year. In the current state of global warming that threatens the cryosphere which is progressively disappearing, it is even more crucial to address its dynamics


A little of-of-date itinerary can be found in a previous post here. To understand our progress, three milestone theses summarize the work done

  • Matteo's  Together, we worked out the Thermodynamics of non equilibrium for ice-systems and the theory of freezing soils. Matteo implemented also an integrator in GEOtop, not the perfect one, but acceptable. Matteo's 2011 paper is a benchmark paper in the topic. 
  • Stefano's brought GEOtop to some maturity and especially fine tuned the various tools related to snow and ice. Stefano's 2014 paper remains a landmark in our work. 
  • Niccolò's  pushes forward the previous work. Especially remarkable is his work on re-implementing the informatics according to new (for us) concepts in OO programming and using (finally) safe algorithms for the integration of the equations. His WHETGEO and FreeThaw papers are a must read for completeness and clarity.

Our work's focus was primarily on the critical zone, where we modified the Darcy-Buckingham law to account for freezing and thawing and their related hydrological and mechanical effects. We primarily focused on the hydrological effects neglecting the mechanical ones but not neglecting the energy budget, a common practice in hydrology, which is obviously not possible. Consequently, we faced the necessity to simultaneously solve both the mass budget and the energy budget.

The formulation of the equations can be found in the theses and papers cited above, and you will realize that establishing a correct relation between the Darcy scale energy content and the corresponding water (liquid or solid) is the main challenge. Proper physics requires the consideration of interfaces between the phases: air-water-soil-ice. While a complete understanding of this relation has not been yet achieved, some working approximations have been obtained. Looking at the two compartments, snow and ice in the soil, they differ in many aspects, with snow lacking soil and being affected by its aerial origin. Both snow and ice in the soil have their own complexities, which affect their evolution. They often interact and the fate of the soil with or without snow is quite different.

While determining the correct equations would be satisfactory goal for many, it remains unresolved how to numerically estimate these equations. It turns out that these mildly nonlinear equations pose problems when solved using the usual algorithms based on variations of the Newton method. Convergence of the numerical methods is not guaranteed, and many workarounds have been deployed to overcome these difficulties, often leading to issues with mass and energy conservation principles.

Fortunately, Casulli and Zanolli (2010) found a method to address these challenges. The fundamental paper can be found in bibliography, and a progressive approach to its formulation can be obtained by reading Casulli's lecture notes and completed by watching videos in this blog. Ideally, attending Casulli's annual school in Trento, held every second half of January after our GEOframe winter school, would provide the best understanding. Tubini's recent papers are the result of this approach, and FreeThaw and WHETGEO are concrete implementations of these algorithms in Java/OMS/GEOframe.

Another aspect to consider is the implementation of these algorithms in informatics. Concepts related to this can be found in parts of Tubini's thesis and the related papers, especially Tubini and Rigon, 2022.

Finally, as a source of information, all of these models' open-source codes can be found on GitHub, both for the older GEOtop and the more recent GEOframe model components.

References


Casulli, Vincenzo, and ZANOLLI. 2010. “A Nested Newton-Type Algorithm for Finite Colume Methods Solving Richards’ Equation in Mixed Form.SIAM Journal of Scientific Computing 32 (4): 2225–73.

Dall’Amico, Matteo. 2010. “Coupled Water and Heat Transfer in Permafrost Modeling.” Edited by Riccardo Rigon and Stephan Gruber. Phd, University of Trento. http://eprints-phd.biblio.unitn.it/335/.

Dall’Amico, M., S. Endrizzi, S. Gruber, and R. Rigon. 2011. “A Robust and Energy-Conserving Model of Freezing Variably-Saturated Soil.” The Cryosphere. https://tc.copernicus.org/articles/5/469/2011/.

Endrizzi, Stefano. 2007. “Snow Cover Modelling at a Local and Distributed Scale over Complex Terrain.” Ph.D. Thesis, January, 1–189.

Endrizzi, S., S. Gruber, M. Dall’Amico, and R. Rigon. 2014. “GEOtop 2.0: Simulating the Combined Energy and Water Balance at and below the Land Surface Accounting for Soil Freezing, Snow Cover and Terrain Effects.” Geoscientific Model Development 7 (6): 2831–57. https://doi.org/10.5194/gmd-7-2831-2014.

Tubini, N. 2021, June. “Theoretical and Numerical Tools for Studying the Critical Zone from Plots to Catchments.” Edited by R. Rigon and S. Gruber. Ph.D., Dipartimento di Ingegneria Civile, Ambientale e Meccanica, Università di Trento.

Tubini, Niccolò, Stephan Gruber, and Riccardo Rigon. 2021. “A Method for Solving Heat Transfer with Phase Change in Ice or Soil That Allows for Large Time Steps While Guaranteeing Energy Conservation.” The Cryosphere 15 (6): 2541–68. https://doi.org/10.5194/tc-15-2541-2021.

Tubini, Niccolò, and Riccardo Rigon. 2022. “Implementing the Water, HEat and Transport Model in GEOframe (WHETGEO-1D v.1.0): Algorithms, Informatics, Design Patterns, Open Science Features, and 1D Deployment.” Geoscientific Model Development 15 (1): 75–104. https://doi.org/10.5194/gmd-15-75-2022.


Thursday, February 1, 2024

Hydrological modelling 2024

Welcome to the 2024 Hydrological modelling class. To understand better what is below: 
  • storyboard is a summary, usually in Italian, of the lecture
  • A whiteboard is an explanation of a particular topic made on the whiteboard (using Notability on the iPad)
  • Slides are commented in English (since 2021)
  • Videos are available to comment the slides. They are usually recorded during the lectures with no editing at all (which would be too much time expensive). 2024 Videos are uploaded to a Vimeo Showcase that can be found here
  • Additional  information (only for the brave or the curious) and references are in italics
 

2023-02-19 - I  - Syllabus - Introduction 2 Hydrological Modelling 

Here  I introduced the class. Its learning by doing philosophy (altered by the necessity due to COVID-19 times that impose to do first the all the theoretical parts and subsequently all the practical parts hoping that they can be done in presence). 
To begin is also worth to have a little (philosophical) analysis of what a model is. This is what done in the following parte of the lecture
2024-02-22 - Geomorphometry   - Discussion of previous lesson topics. The rational of introducing these concepts  is that catchments are spatially extended and in this course we are interested to deal with catchments hydrology. 

In this first part we deal with the geometrical (differential) characteristics of the topography. Elevations, slopes, curvatures. They will be necessary later to extract the river network and the parts of a catchment.
In this class we define also what the drainage directions are and how they are computed in the case of DEMs (a topography discretized over a regular grid).  From drainage directions are determined the total contributing areas in each point of  a DEM. These two characteristics are eventually used to determine  the channels head and extract the river networkIn turn, the extraction of the channel network allows for the extraction of hillslope and a first definition of  the Hydrologic Response Units (HRU). 
    2024-02-26
    Q&A - 

    2024-02-29 -  Interpolations 
    This lecture, assuming that now you have at least the concepts of what a catchment is and theoretically you know how to extract it and subdivide it in parts, deals with the data to feed catchments hydrology models. Because catchments have a spatial distribution, then also the driving data must be distributed. We need therefore methods of interpolation. 

    2024-03-04 -  Interpolations part II. 
    In this class we try to understand how to estimate the errors over the estimates. Besides we introduce a method (the Normal Score) to avoid to obtain negative values when positive interpolated values are required.
    Q&A - 
    Spatial Interpolation (Vimeo2023)

     Hydrological Models. This is a class about hydrological models, so what are they ?

    The title is self-explanatory. A theoretical approach to modelling is necessary because we have to frame properly our action when we jump from the laws of physics to the laws of  hydrology. Making hydrology we do not have to forget physics but for getting usable models we have to do appropriate simplifications and distorsions. The type of model we will use in the course are those in the tradition are called lumped models. Here we also introduce a graphical tool to represent these models.
    2024-03-06-Hydrological Models 

    For old material give a look to Hydrological Modelling 2023
    2024-03-11
    2024-03-18
     Linear Models for HRUs

    Once we have grasped the main general (and generic) ideas, we try to draw the simplest systems. They turn out to be analytically solvable, and we derive their solutions carefully. From the group of linear systems springs out the Nash model, whose derivation is performed.  Obviously, it remains the problem to understand how much the models can describe "reality". However, this an issue we leave for future investigations.
    • Summarizing the previous class results at the blackboard(Vimeo2022)
    2024-03-21
     A little more on the IUH and looking at the variety of HDSys models

    We introduced previously without very much digging into it the concept of Instantaneous Unit Hydrograph. Here we explain more deeply its properties, Then we observe that there are issues related to the partition of fluxes and we discuss some simple models for obtaining them. Not rocket science here. The concept that we need those tools is more important than the tools themselves. We also observe that linearity is not satisfactory and we give a reference to many non linear models. Finally we discuss an implementation of some of the discussed concepts in the System GEOframe. 
    2024-03-25
    2024-03-28
    Intermediate exam (2024-04-22)

     Travel Time, Residence Time and Response Time
    Here below we started a little series of lectures about a statistical way of seeing water movements in catchments. This view has a long history but recently had a closure with the work of Rinaldo, Botter and coworkers. Here it is presented an alternative vie to their concepts. Some passages could be of some difficulty but the gain in understanding the processes of fluxes formation at catchment scale is, in my view, of great value and deserves some effort.  The way of thinking is the following: a) the overall catchments fluxes are the sum of the movements of many small water volumes (molecules); b) the water of molecules can be seen through 3 distributions: the travel time distribution, the residence time distribution and the response time distributions; c) the relationships between these distributions are revealed; d) the relation of these distributions with the the treatment of the catchments made through ordinary differential equations is obtained through the definition of age ranked distributions; e) The theory this developed is a generalizations of the unit hydrograph theory. 
    2024-04-04
    Some References (advanced)
    Additional material

    Digressions I - A Glimpse on distributed process-based models

    Digressions II - Radiation -  After all radiation moves it all.
    Digressions III 
    Equations for disease spreading (Out of schedule)
    Digressions IV

  • Examples of Applications:
  • Hydrology 2024 lab

    The lab is almost half of the class. According to the motto "learning by doing" it covers at least three numerical experiments:

    • Some elaborations with time series
    • The estimation of the Intensity-Duration-Frequency curves
    • A few experiments with infiltration
    • A few experiments with evaporation and transpiration 
    Please find below
    Videos and material are  indicated singularly below.


     2023-03-04 Introduction to working with Jupyter and Notebooks
    2024-03-12
    • Counting the events and producing their empirical statistics (Vimeo2022)

    Interpolating the Gumbel distribution to annual precipitation maxima

    2024-05-06/07 - Introduction to Infiltration with WHETGEO 1D

    Below, you'll discover the resources for the second part of the lab, which encompass instructions for utilizing Object Modelling System version 3 (OMS3) models such as WHETGEO1D and GEOET. Within the OMS Projects, you'll find a directory named Jupyter_Notebook, housing sets of notebooks designed to guide you through handling both input and output data for these programs.
    A general introduction to some OMS3 concepts

    Please below find Notebooks and video related to the estimation of radiation. Theradiationin this class, will be functional to the estimation of evapotranspiration with the Priestley-Taylor and Penman-FAO models,
    2024-05-20 - Introduction to the estimation of evapotranspiration

    Addendum

    Hydrology 2024

    The Course of Hydrology 2024 will be 90% similar to last year class with minor modifications.  Indication of tools used etc can be found at the 2023 Index (3 minutes reading). Here you'll find the material of the classes including slides, old and new videos. Hydrology is an exciting field since water is so important for life and human activities. Here a  brief introduction from a National Geographics post

    Companion of this post il the laboratory page on which you find material for your exercises. 

    Classes and related material

    You can find:
    • Storyboards is a summary, usually in Italian, of the lecture
    • Whiteboard is an explanation of a particular topic made on the whiteboard (using Notability on the iPad)
    • Slides are commented in English
    • Videos are available to comment the slides. They are usually recorded during the lectures with no editing at all (which would be too much time expensive). 2024 Videos are uploaded to a Vimeo Showcase that can be found here
    • Additional  information (only for the brave or the curious) and references are in italics

    19 Febbraio 2024 - - Introduction to the course and to hydrology
    Complementary References
    2023-02-20 - Ground based Precipitations and their statistics Separation snow-rainfall - measure of precipitation

    In this part of the class we describe where it rains and how much it rains using statistical concept. One important objective is to understand what are the extreme precipitations for their importance in engineering. 
    2024-02-26 - 2024-02-27  - Statistics of extreme precipitations

     Some reviews on statistics - Return Period
    Extreme precipitations  (Storyboard2020)
    Distributions Storyboard2020

    Determination of Gumbel's parameters
    Extreme precipitations  II
    2024-03-05 -Beyond Gumbel
    A summary about the extreme precipitation estimations (Whiteboard)

    Water in soil and aquifers 
     (Storyboard2020)
    Once precipitations arrive to the ground surface they either infiltrate or generate runoff. We first state how they infiltrate and, actually how water behave in the soil and in the ground. We talk about the complexity of the Earth surface that contains life and call it, the Critical Zone. To study infiltration we introduce the Darcy and Richards equations of which we explain the characteristics.

     - The Richardson-Richards equation  (Storyboard 2020)
    2024-04-15

     Runoff Generation and propagation (Summary 2020)

    Once the rainfall gains the terrain, it can infiltrate or producing runoff. In the next we discuss the main mechanisms that produce runoff.
    Q&A - Runoff - Runoff 2022

    2024-04-22

    Runoff moves on the surface of the terrain according to the de Saint-Venant equation. In the following the equation is derived in the 1D case.

    Evaporation generalities (Storyboard2020)

    A consistent part of root zone and surface water evaporates and returns to the atmosphere to eventually form clouds and precipitation again. The process follows quite complicate routes and is different when happening from liquid surfaces, soil or vegetation (and BTW animals).  In this group of lectures we try to figure out the physical mechanisms that act in the process and give some hint on methods to estimate evaporation and transpiration with physically based models. 
    2024-04-23
      Evaporation and Transpiration Formulas
    2024-04-29
     2024-04-30  - After all radiation moves it all