Biomech-Sim-Toolbox 1
Toolbox for movement simulation and analysis
All Classes Files Functions Variables Macros Pages
gait3d_contact.h
Go to the documentation of this file.
1// gait3d_contact.h
2// This file defines things needed in the contact model
3
4#define NCVAR 6 // number of state variables for each contact element
5#define NCF 6 // number of equality constraints (f=0) for each contact element
6
7// define struct that holds contact properties for one contact point
8typedef struct {
9 int segment; // Which body segment it is attached to (referring to my forward kinematic segment list)
10 int grfseg; // Which GRF segment this contact point contributes to (referring to my GRF array)
11 double xp,yp,zp; // Position of contact element on body segment
13
14// prototype for the Autolev C function for contact element equations
15void contact_al(contactprop* contact, // parameters for one contact point
16 double fk[12], double fkdot[12], double x[NCVAR], double xdot[NCVAR], // inputs for one contact point
17 double f[NCF], double df_dfk[NCF][12], double df_dfkdot[NCF][12], // outputs
18 double df_dx[NCF][NCVAR], double df_dxdot[NCF][NCVAR]);
double df_dx[4][4]
Definition: contact_2d_raw.c:21
double f[4]
Definition: contact_2d_raw.c:20
double df_dxdot[4][4]
Definition: contact_2d_raw.c:21
double df_dfk[4][6]
Definition: contact_2d_raw.c:20
double df_dfkdot[4][6]
Definition: contact_2d_raw.c:20
double fkdot[48]
Definition: gait10dof18musc_FK_raw.c:24
double fk[48]
Definition: gait10dof18musc_FK_raw.c:24
#define NCVAR
Definition: gait3d_contact.h:4
void contact_al(contactprop *contact, double fk[12], double fkdot[12], double x[NCVAR], double xdot[NCVAR], double f[NCF], double df_dfk[NCF][12], double df_dfkdot[NCF][12], double df_dx[NCF][NCVAR], double df_dxdot[NCF][NCVAR])
#define NCF
Definition: gait3d_contact.h:5
Definition: gait2d_osim_contact.h:9
double zp
Definition: gait3d_contact.h:11