positions_real_quadrilateral: Get positions of all real nodes in quadrilateral domains

View source: R/flownet_quadrilateral_old.R View source: R/flownet_quadrilateral.R

positions_real_quadrilateralR Documentation

Get positions of all real nodes in quadrilateral domains

Description

Generate positions of all real nodes in a quadrilateral domain, both in terms of normalised positions a and b, and actual positions x and y

Generate positions of all real nodes in a quadrilateral domain, both in terms of normalised positions a and b, and actual positions x and y

Usage

positions_real_quadrilateral(
  nx,
  ny,
  x1,
  x2,
  x3,
  x4,
  y1,
  y2,
  y3,
  y4,
  domain = 1,
  i0 = 0,
  ...
)

positions_real_quadrilateral(
  nx,
  ny,
  x1,
  x2,
  x3,
  x4,
  y1,
  y2,
  y3,
  y4,
  domain = 1,
  i0 = 0,
  ...
)

Arguments

nx, ny

number of real nodes in x and y directions

x1, x2, x3, x4, y1, y2, y3, y4

x and y positions of the corner points of the quadrilateral. Corners are numbered in clockwise order.

domain

domain identifier

i0

optional index numbering offset

...

additional arguments to pass

Value

a tibble with positions, e.g. 'a', 'b', 'x', 'y' as well as 1st and 2nd order derivatives of positions (e.g. 'x_a', 'y_bb')

a tibble with positions, e.g. 'a', 'b', 'x', 'y' as well as 1st and 2nd order derivatives of positions (e.g. 'x_a', 'y_bb')

Examples

nx <- 4
ny <- 3
x1 <- 0
x2 <- 0
x3 <- 1
x4 <- 1
y1 <- 0
y2 <- 1
y3 <- 2
y4 <- 0
positions_real_quadrilateral(nx, ny, x1, x2, x3, x4, y1, y2, y3, y4)
nx <- 4
ny <- 3
x1 <- 0
x2 <- 0
x3 <- 1
x4 <- 1
y1 <- 0
y2 <- 1
y3 <- 2
y4 <- 0
positions_real_quadrilateral(nx, ny, x1, x2, x3, x4, y1, y2, y3, y4)

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