c2vsim.readMesh: c2vsim.readMesh Reads the Mesh element information of the...

View source: R/c2vsim.R

c2vsim.readMeshR Documentation

c2vsim.readMesh Reads the Mesh element information of the C2Vsim coarse and fine grid

Description

c2vsim.readMesh Reads the Mesh element information of the C2Vsim coarse and fine grid

Usage

c2vsim.readMesh(filename, NE = 1392, Nskip = 93, Ncols = 5)

Arguments

filename

is the name of the mesh element file. Usually is CVelement.dat

NE

is the number of elements. The default value corresponds to the coarse grid version

Nskip

is the number of lines to skip before start reading the list of nodes. The default value corresponds to the coarse grid version.

Ncols

is the number of columns. For the coarse grid version is 5 : 1 for element ID and 4 columns for the node IDs. For the fine grid there is an extra column with the subregion id.

Value

a data frame with the following fields: ID, ND1...ND4. If the elements are triangles then the ND4 index is zero

Examples

MSH <- c2vsim.readMesh("CVelement.dat")

UCD-GW-Nitrate/gwtools documentation built on April 5, 2025, 5:01 p.m.