approxPot2D: Approximate potential in two dimensions

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/approxPot.R

Description

Approximate potential in two dimensions

Usage

1
approxPot2D(f, xs, ys, V0 = "auto", mode = "mixed")

Arguments

f

Two-dimensional representing the flow (right hand side of differential equation)

xs

Vector xs positions to evaluate

ys

Vector of ys positions to evaluate

V0

(Optional) Value of V at first element of (xs,ys). When default, the global minimum is assigned 0

mode

(Optional) Integration mode. Options are horizontal (default), vertical and mixed

Value

The potential estimated at each point (xs, ys)

Author(s)

Pablo Rodríguez-Sánchez (https://pabrod.github.io)

References

https://arxiv.org/abs/1903.05615

See Also

approxPot1D, deltaV

Examples

1
2
3
4
5
6
7
8
9
# Flow
f = function(x) {c(-x[1]*(x[1]^2 - 1.1), -x[2]*(x[2]^2 - 1))}

# Sampling points
xs <- seq(-1.5, 1.5, length.out = 10)
ys <- seq(-1.5, 1.5, length.out = 15)

# Approximated potential
Vs <- approxPot2D(f, xs, ys, mode = 'horizontal')

PabRod/consRvative documentation built on Jan. 3, 2021, 1:48 p.m.