Giter Club home page Giter Club logo

nghopomboi / re-mpfa Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jhabriel/re-mpfa

0.0 0.0 0.0 1.09 MB

RE-MPFA is a package that implements a cell-centered finite volume discretization, specifically Multi-Point Flux Approximation (MPFA) in order to solve the three-dimensional incompressible mixed-based form of the Richards' Equation. The code runs on MATLAB and it is build upon two main toolboxes, MRST

License: GNU General Public License v3.0

MATLAB 100.00%

re-mpfa's Introduction

RE-MPFA

Description

This module implements a discretization of the (three-dimensional) incompressible Richards' equation using cell centered finite volume methods, specifically Multi-Point Flux Approximation.

Due to the non-linear nature of the water retention curves (van Genuchten-Mualem), the resulting set of partial differential equations is also non-linear. To approximate the solutions at each time step, we use a classical Newton iterative scheme, where the Automatic Differentiation capabilities of MRST are exploited.

Examples of usage for three ilustrative scenarios can be found in:

  • waterInfiltration1D.m
  • waterInfiltration3D.m
  • waterEvaporation3D.m

For more information on the MPFA discretization, we refer to: I. Aavatsmark: An introduction to multipoint flux approximations for quadrilateral grids, Comput. Geosci. 6(3-4) 405-432.

Requirements

The module is compatible with the (freely available) Matlab Reservoir Simulation Toolbox (MRST) provided by SINTEF ICT: http://www.sintef.no/projectweb/mrst/ In particular, the grid data structure is that of MRST, and it is assumed that MRST is in the MATLAB path.

Also, it is assumed that the fvbiot package(freely available) which provides the discretization of the flux is in the MATLAB path as well. The fvbiot package was developed by Eirik Keilevgalen from the Porous Media Group of the University of Bergen.

The code has been tested with Matlab R2019a and mrst-2019a.

Tips

We highly recommend you to use the MATLAB publish tool, where you will be able to go through each section of the scripts, which were carefully documented.

Cite

If you use RE-MPFA, please cite: Varela, J. (2018). Implementation of an MPFA/MPSA-FV Solver for the Unsaturated Flow in Deformable Porous Media (Master's thesis, The University of Bergen).

Bugs/Contacts

You can report bugs or make consultations by e-mailing: Jhabriel Varela ([email protected]).

re-mpfa's People

Contributors

jhabriel avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.