Biomech-Sim-Toolbox
1
Toolbox for movement simulation and analysis
Toggle main menu visibility
Main Page
Related Pages
Classes
Class List
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
a
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
w
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
b
c
d
e
f
g
i
j
l
m
n
p
q
r
s
t
w
x
y
z
Macros
_
a
e
i
j
m
n
s
v
Examples
•
All
Classes
Files
Functions
Variables
Macros
Pages
Loading...
Searching...
No Matches
BioMAC-Sim-Toolbox
src
model
gait3d
c_files
contact
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
8
typedef
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
12
}
contactprop
;
13
14
// prototype for the Autolev C function for contact element equations
15
void
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
]);
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:
gait3d_contact.h:4
contact_al
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])
NCF
#define NCF
Definition:
gait3d_contact.h:5
contactprop
Definition:
gait2d_osim_contact.h:9
contactprop::zp
double zp
Definition:
gait3d_contact.h:11
Generated on Tue Feb 25 2025 10:19:09 for Biomech-Sim-Toolbox by
1.9.6