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_translation page
bht_translation page
Biohydrodynamics Toolbox   

bht_translation


Turn the data of the DAT-File into MATLAB structure array variables.

Syntax

[gene_data,discret_data,bound_data,ode_data,phys_data,fish] = bht_translation(filename)

Description

The function is called by bht_data_compile during the compilation of the DAT-File. It reads the DAT-File filename, extracts the data and sets up the fields of the output structure array variables gene_data,discret_data,bound_data,ode_data,phys_data and fish after they have been prealocated.
Not all of the fields of these variables are set up by bht_translation. Actually, this function does not perform any computation. Computations on the data (providing for instance the solids' centers of mass or the boundaries' meshes) are done by the functions bht_boundaries_init and bht_solids_data_init also ran by bht_data_compile.

Output variables

The following fields are set up by bht_translation (we refer to the List of output variables for a description).
Field(s) of gene_data Field(s) of discret_data Field(s) of bound_data Field(s) of ode_data Field(s) of phys_data Field(s) of fish
pb_type, collisions, alpha, epsilon, array_fishes_solids, base_filename
mesh_size
mfilename, settings, color Tmax, dT, initial_positions, initial_velocities rhof, rhos father, label, body, density, hinge_coord, local_hinge, color

See also

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

Contact us at files@mathworks.com