View source: R/vector_fields.R
| vc_vector_field_sample | R Documentation |
Sample a spatial vector field in a nested Cartesian solid
vc_vector_field_sample(
f,
lower,
upper,
bottom,
top,
interval = NULL,
n = 8L,
n_u = 6L,
n_v = 6L,
partition = NULL
)
f |
Function of one Cartesian vector returning three finite components. |
lower, upper |
Scalar y-boundary functions of x, ordered at sampled nodes. |
bottom, top |
Scalar z-boundary functions accepting one x,y vector. |
interval |
Finite increasing x bounds, or NULL with partition supplied. |
n, n_u, n_v |
Positive subdivisions in x, across y and across z. |
partition |
Optional vc_partition result for custom x strips. |
Subdivisions include both endpoints and z varies fastest. The sampled solid validates boundary order at the nodes. Degenerate fibers can repeat positions.
List with type vector_field3d and samples x,y,z,u,v,w,magnitude.
vc_vector_field_sample(function(p)c(-p[2],p[1],0),function(x)-1,
function(x)1,function(p)-1,function(p)1,c(-1,1),n=2,n_u=2,n_v=1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.