Code covered by the BSD License  

Highlights from
Biohydrodynamics Toolbox

image thumbnail
from Biohydrodynamics Toolbox by Alexandre Munnier
Tool to simulate easily the motion of moving solids or swimming robots in a potential fluid flow.

bht_link page
bht_link page
Biohydrodynamics Toolbox    

bht_link1, bht_link2


Functions describing polygon-shaped boundary.

Syntax

y = bht_link1(t,der,settings)
y = bht_link2(t,der,settings)

Description

These functions define smoothed polygon-shaped boundaries as parameterized lines over [0,2*pi[. The input variable t (the parameter) must be a vector with all of its elements within [0,2*pi[. The function returns, depending on the flag der:
  • der = 0: the points' coordinates corresponding to the parameters t.
  • der = 1: the coordinates of the tangent vectors (the first derivative of the parameterization).
  • der = 2: the second derivative of the parameterization.
The inpute variable settings is a row vector of four elements for bht_link1 and height elements for bht_link2. It is used to set the boundaries' shapes as shown in the figures below.

Boundaries' view

Here is what the boundaries look like.
Images/link1.jpg
Images/link2.jpg

See also

Fluid's boundaries
bht_boundary_check
2008 - A. Munnier and B. Pincon (Insitut Elie Cartan and INRIA Lorraine, Projet CORIDA, Nancy, France).         

Contact us at files@mathworks.com