vc_vector_field_sample: Sample a spatial vector field in a nested Cartesian solid

View source: R/vector_fields.R

vc_vector_field_sampleR Documentation

Sample a spatial vector field in a nested Cartesian solid

Description

Sample a spatial vector field in a nested Cartesian solid

Usage

vc_vector_field_sample(
  f,
  lower,
  upper,
  bottom,
  top,
  interval = NULL,
  n = 8L,
  n_u = 6L,
  n_v = 6L,
  partition = NULL
)

Arguments

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.

Details

Subdivisions include both endpoints and z varies fastest. The sampled solid validates boundary order at the nodes. Degenerate fibers can repeat positions.

Value

List with type vector_field3d and samples x,y,z,u,v,w,magnitude.

Examples

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)

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