solve_system

| main | Tutorials | Functions | website |

This function solves the linear system of equations Kglo*H = F using default matlab methods. Note that this function takes care of the boundary conditions. It can also calculate the secondary variables which are the F terms on the constant head nodes.

Version : 1.0

Author : George Kourakos

email: giorgk@gmail.com

web : https://gwt.ucdavis.edu/research-tools-and-applications/msim

Date : 18-Mar-2014 | update : 30-Aug-2019

Department of Land Air and Water

University of California Davis

Contents

Usage

H = solve_system(Kglo, H, F)

or

[Hnew, Fnew] = solve_system(Kglo, H, F)

Input

Kglo: System matrix

H: Solution vector. This function will have scalar values on the nodes associated with dirichlet boundary conditions and nan on the unknown dofs

F: The right hand side

Output

H: The solution of the system

| main | Tutorials | Functions | website |