findiff_sparse_entries_bc_rectangular: get all sparse entries and lhs for boundary conditions

View source: R/flownet_rectangular.R

findiff_sparse_entries_bc_rectangularR Documentation

get all sparse entries and lhs for boundary conditions

Description

function to get sparse matrix element positions for flow net finite difference boundary conditions (known head, known flow or connected to another domain)

Usage

findiff_sparse_entries_bc_rectangular(df)

Arguments

df

tibble describing flow problem. Generated by function 'generate_flownet_properties()'

Value

a list with two fields: 'mat' containing a tibble with sparse row ('row'), column ('col') and values ('val') of finite difference matrix elements related to boundary conditions; and 'lhs' which is a vector with all left-hand side of equation values

Examples

df <- flownet_geometry_rectangular()
ds <- findiff_sparse_entries_bc_rectangular(df)

GJMeijer/soilmech documentation built on May 22, 2022, 10:39 a.m.