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_data_compile page
bht_data_compile page
Biohydrodynamics Toolbox    

bht_data_compile


Compile the user's DAT-File.

Syntax

[gene_data,discret_data,bound_data,ode_data,phys_data,fish] = bht_data_compile('DataFilename',filename1)
[...] = bht_data_compile('DataFilename',filename1,'ControlsFilename',filename2)

Description

The statement:
>> bht_data_compile('DataFilename',filename1);
does the following:
  • It compiles the data contained in the user's DAT-File filename1.dat, checks them and turns them into the MATLAB tructure array variables gene_data, discret_data, bound_data, ode_data, phys_data and fish (see List of output variables for details). These variables are next saved on disk in the MAT-File filename1_data.mat.
  • It generates the M-File filename1_kine.m by which articulated bodies' kinematics are handled in the computations.
The command line:
>> bht_data_compile(...,'ControlsFilename',filename2);
generates furthermore a pattern of the M-File filename2.m (the controls M-File). This M-File has to be completed by the user. It drives the time-evolving angles of the articulated bodies' hinges.
The function bht_data_compile runs successively the M-Files bht_translation, bht_boundaries_init, bht_solids_data_init, bht_g_kinematics and bht_g_controls.

See also

Writing a DAT-File
controls M-File
BhT overview
bht_boundary_chek
bht_kine_check
bht_controls_check
2008 - A. Munnier and B. Pincon (Insitut Elie Cartan and INRIA Lorraine, Projet CORIDA, Nancy, France).       

Contact us at files@mathworks.com