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_solids_date_init page
bht_solids_date_init page
Biohydrodynamics Toolbox    

bht_solids_data_init


Compute the solids' areas, centers of mass, momenta of inertia and the bodies' masses.

Syntax

[phys_data,bound_data] = bht_solids_data_init(gene_data,bound_data,phys_data)

Description

The function is ran by bht_data_compile. It calls the M-Files in which the fluid's boundaries are described and computes the areas and centers of mass of the solids. When necessary, it translates all of a boundary's discretization points (previously computed by the function bht_boundaries_init) in order to put the center of mass at the origin ; a warning message is next displayed in the current workspace.
The momenta of inertia and the masses of the solids are also computed and the mass matrix Ms is built. The total masses of the bodies are computed as well. 
The input variables gene_data, bound_data and phys_data are structure array variables which have been prealocated and partly set during the compilation by the functions bht_translation and bht_boundaries_init.

Output variables

The following fields are set up by bht_solid_data_init (see the List of output variables for a description).
Field(s) of phys_data Field(s) of bound_data
Ms, solids_area, fishes_mass
X (if necessary)

See also

bht_data_compile
bht_translation
bht_boundaries_init
List of output variables
2008 - A. Munnier and B. Pincon (Insitut Elie Cartan and INRIA Lorraine, Projet CORIDA, Nancy, France).         

Contact us at files@mathworks.com