IndepMeshCreation: Basic data independent mesh creation

Description Usage Arguments Value

View source: R/BasicFunctions.R

Description

Creates a 2D mesh with the inla.mesh.2d function with an inner and an outer domain with different triangle density. The outer is defined as a larger nonconvex hull of the rectangleCenters while the inner is defined based on a slightly expanded counting domain

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
IndepMeshCreation(
  rectangleCentersX,
  rectangleCentersY,
  countingDomainExpanded,
  convHullVar.convex = -0.15,
  convHullVar.concave = convHullVar.convex,
  convHullVar.resolution = c(120, 120),
  meshVar.max.edge = c(1, 10),
  meshVar.offset = c(6, 6),
  meshVar.cutoff = 0.3
)

Arguments

rectangleCentersX

Vector with X-coordinate of the centerpoint of each of the obligatory rectangles

rectangleCentersY

Vector with X-coordinate of the centerpoint of each of the obligatory rectangles

convHullVar.convex

convex parameter of inla.nonvonvex.hull. See ?inla.nonconvex.hull for details

convHullVar.concave

concave parameter of inla.nonvonvex.hull. See ?inla.nonconvex.hull for details

convHullVar.resolution

resolution parameter of inla.nonvonvex.hull. See ?inla.nonconvex.hull for details

meshVar.max.edge

max.edge parameter of inla.mesh.2d. Smaller values gives smaller triangles outside triangles. See ?inla.mesh.2d for details

meshVar.offset

offset parameter of inla.mesh.2d. See ?inla.mesh.2d for details

meshVar.cutoff

cutoff parameter of inla.mesh.2d. See ?inla.mesh.2d for details

rectangleWidth

Vector with the width of each of the obligatory rectangles

rectangleHeight

Vector with the height of each of the obligatory rectanglges

Value

An INLA mesh object


PointProcess/SealPupProduction-JRSSC-code documentation built on Jan. 27, 2020, 10:06 p.m.