Biomech-Sim-Toolbox
1
Toolbox for movement simulation and analysis
Loading...
Searching...
No Matches
BioMAC-Sim-Toolbox
src
model
gait2d_osim
c_files
contact
gait2d_osim_contact.h
Go to the documentation of this file.
1
// gait2d_osim_contact.h
2
// This file defines things needed in the contact model
3
4
#define NCVAR 4
// number of state variables for each contact element
5
#define NCEQ 4
// number of equality constraints (f=0) for each contact element
6
#define NCINEQ 0
// number of inequality constraints (f>0) for each contact element
7
#define NCF 4
// total number of f's for each contact element
8
9
typedef
struct
{
10
int
segment
;
// Which body segment it is attached to (referring to my forward kinematic segment list)
11
int
grfseg
;
// Which GRF segment this contact point contributes to (referring to my GRF array)
12
double
xp
,yp;
// Position of contact element on body segment
13
}
contactprop
;
14
15
// prototype for the Autolev C function for contact deformation
16
void
contact_al
(
contactprop
* contact,
// parameters for one contact point
17
double
fk
[6],
double
fkdot
[6],
double
x[
NCVAR
],
double
xdot[
NCVAR
],
// inputs for one contact point
18
double
f
[
NCF
],
double
df_dfk
[
NCF
][6],
double
df_dfkdot
[
NCF
][6],
// outputs
19
double
df_dx
[
NCF
][
NCVAR
],
double
df_dxdot
[
NCF
][
NCVAR
]);
df_dx
double df_dx[4][4]
Definition:
contact_2d_raw.c:21
f
double f[4]
Definition:
contact_2d_raw.c:20
df_dxdot
double df_dxdot[4][4]
Definition:
contact_2d_raw.c:21
df_dfk
double df_dfk[4][6]
Definition:
contact_2d_raw.c:20
df_dfkdot
double df_dfkdot[4][6]
Definition:
contact_2d_raw.c:20
fkdot
double fkdot[48]
Definition:
gait10dof18musc_FK_raw.c:24
fk
double fk[48]
Definition:
gait10dof18musc_FK_raw.c:24
NCVAR
#define NCVAR
Definition:
gait2d_osim_contact.h:4
NCF
#define NCF
Definition:
gait2d_osim_contact.h:7
contact_al
void contact_al(contactprop *contact, double fk[6], double fkdot[6], double x[NCVAR], double xdot[NCVAR], double f[NCF], double df_dfk[NCF][6], double df_dfkdot[NCF][6], double df_dx[NCF][NCVAR], double df_dxdot[NCF][NCVAR])
contactprop
Definition:
gait2d_osim_contact.h:9
contactprop::segment
int segment
Definition:
gait2d_osim_contact.h:10
contactprop::grfseg
int grfseg
Definition:
gait2d_osim_contact.h:11
contactprop::xp
double xp
Definition:
gait2d_osim_contact.h:12
Generated on Tue Feb 25 2025 10:19:09 for Biomech-Sim-Toolbox by
1.9.6