position_xy_quadrilateral: Get x,y positions and derivatives of real nodes in...

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

position_xy_quadrilateralR Documentation

Get x,y positions and derivatives of real nodes in quadrilateral grid

Description

Function calculates the x and y positions of nodes in a quadrilateral grid based on their a and b positions. The derivatives of x and y with respect to a and b are also returned

Function calculates the x and y positions of nodes in a quadrilateral grid based on their a and b positions. The derivatives of x and y with respect to a and b are also returned

Usage

position_xy_quadrilateral(a, b, x1, x2, x3, x4, y1, y2, y3, y4, ...)

position_xy_quadrilateral(a, b, x1, x2, x3, x4, y1, y2, y3, y4, ...)

Arguments

a, b

arrays with quadrilateral positions

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.

...

additional arguments

Value

a tibble with fields for position 'x' and 'y', as well as 1st order derivatives ('x_a', 'x_b', 'y_a', 'y_b') and second order derivatives ('x_aa', 'x_bb', 'x_ab', 'y_aa', 'y_bb', 'y_ab')

a tibble with fields for position 'x' and 'y', as well as 1st order derivatives ('x_a', 'x_b', 'y_a', 'y_b') and second order derivatives ('x_aa', 'x_bb', 'x_ab', 'y_aa', 'y_bb', 'y_ab')

Examples

a <- c(0, 0.5, 1)
b <- c(0, 0.5, 1)
x1 <- 0
x2 <- 0
x3 <- 1
x4 <- 1
y1 <- 0
y2 <- 1
y3 <- 2
y4 <- 0
position_xy_quadrilateral(a, b, x1, x2, x3, x4, y1, y2, y3, y4)
a <- c(0, 0.5, 1)
b <- c(0, 0.5, 1)
x1 <- 0
x2 <- 0
x3 <- 1
x4 <- 1
y1 <- 0
y2 <- 1
y3 <- 2
y4 <- 0
position_xy_quadrilateral(a, b, x1, x2, x3, x4, y1, y2, y3, y4)

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