vc_plot_stokes: Display stored Stokes circulation and curl flux

View source: R/stokes.R

vc_plot_stokesR Documentation

Display stored Stokes circulation and curl flux

Description

Display stored Stokes circulation and curl flux

Usage

vc_plot_stokes(result, patch, title = NULL)

Arguments

result

Result of vc_stokes().

patch

Result of vc_surface_sample() for the same surface and ranges.

title

Optional character title.

Value

Plotly widget with the patch, oriented boundary and both estimates. No field or surface is reevaluated.

Examples

if (requireNamespace("plotly",quietly=TRUE)) {
  patch <- function(p)c(p[1],p[2],p[1]+p[2])
  result <- vc_stokes(function(p)c(-p[2],p[1],0),patch,c(0,1),c(0,1),
    n_boundary=4,n_outer=2,n_inner=2)
  vc_plot_stokes(result,vc_surface_sample(patch,c(0,1),c(0,1)))
}

vectorialcalculus documentation built on Nov. 17, 2026, 1:09 a.m.