| vc_plot_stokes | R Documentation |
Display stored Stokes circulation and curl flux
vc_plot_stokes(result, patch, title = NULL)
result |
Result of vc_stokes(). |
patch |
Result of vc_surface_sample() for the same surface and ranges. |
title |
Optional character title. |
Plotly widget with the patch, oriented boundary and both estimates. No field or surface is reevaluated.
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)))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.