MathEngine
Home Page       Structures       File List       Functions and Macros      

MdtKeaConstraints Struct Reference

Kea Constraints structure. More...

#include <MdtKea.h>

List of all members.

Public Attributes

int num_partitions
 Number of partitions described by this structure. More...

int* num_rows_partition
 num_rows_partition[i] is number of rows in partition i. More...

int* num_constraints_partition
 num_constraints_partition[i] is number of constraints in partition i. More...

int num_rows
 Total number of constraint rows. More...

int num_constraints
 Total number of constraints. More...

MeReal* Jstore
 List of nonzero blocks of jacobian matrix. More...

MeReal* xi
 Constraint error vector. More...

MeReal* c
 Vector in the constraint equation m{J*v=c}. More...

MeReal* lo
 Low limit on Lagrange multiplier. More...

MeReal* hi
 High limit on Lagrange multiplier. More...

MeReal* lambda
 Calculated Lagrange multiplier READ ONLY. More...

MeReal* force
 Vector of forces applied to satisfy constraints READ ONLY. More...

MeReal* slipfactor
 First order constraint slipping vector. More...

MeReal* xgamma
 Projection constants. More...

int* Jsize
 Jsize[i] is the number of rows in constraint i. More...

int* Jofs
 Offset of constraint i from the start of its partition. More...

int* Jbody
 Jbody[i*3+0],Jbody[i*3+1],Jbody[i*3+2] are the bodies constrained by constraint i. More...


Detailed Description

Kea Constraints structure.

To find the total number of rows_to_allocate, find the maximum number of rows the constraints can add, but allow up to an extra three rows padding per partition.


Member Data Documentation

int * MdtKeaConstraints::Jbody

Jbody[i*3+0],Jbody[i*3+1],Jbody[i*3+2] are the bodies constrained by constraint i.

3 ints for each constraint added.

int * MdtKeaConstraints::Jofs

Offset of constraint i from the start of its partition.

partition_start+Jofs[i] is the offset in the above vectors of the first element corresponding to constraint i, where partition_start is the offset of the first constraint in the partition which i belongs to. One int for each constraint added

int * MdtKeaConstraints::Jsize

Jsize[i] is the number of rows in constraint i.

One int for each constraint added.

MeReal * MdtKeaConstraints::Jstore

List of nonzero blocks of jacobian matrix.

The size should be 18 MeReals for each rows_to_allocate, initialised to 0.

MeReal * MdtKeaConstraints::c

Vector in the constraint equation m{J*v=c}.

One MeReal for each rows_to_allocate initialised to 0.

MeReal * MdtKeaConstraints::force

Vector of forces applied to satisfy constraints READ ONLY.

24 MeReals for each constraint added initialised to 0. Currently disabled on PS2.

MeReal * MdtKeaConstraints::hi

High limit on Lagrange multiplier.

One MeReal for each rows_to_allocate initialised to 0.

MeReal * MdtKeaConstraints::lambda

Calculated Lagrange multiplier READ ONLY.

One MeReal for each rows_to_allocate initialised to 0.

MeReal * MdtKeaConstraints::lo

Low limit on Lagrange multiplier.

One MeReal for ebach rows_to_allocate initialised to 0.

int MdtKeaConstraints::num_constraints

Total number of constraints.

(+ | 0<=i<num_partitions . num_constraints_partition[i])

int * MdtKeaConstraints::num_constraints_partition

num_constraints_partition[i] is number of constraints in partition i.

The size should be one int for each partition.

int MdtKeaConstraints::num_partitions

Number of partitions described by this structure.

int MdtKeaConstraints::num_rows

Total number of constraint rows.

(+ | 0<=i<num_partitions . num_rows_partition[i])

int * MdtKeaConstraints::num_rows_partition

num_rows_partition[i] is number of rows in partition i.

The size should be one int for each partition.

MeReal * MdtKeaConstraints::slipfactor

First order constraint slipping vector.

One MeReal for each rows_to_allocate initialised to 0.

MeReal * MdtKeaConstraints::xgamma

Projection constants.

One MeReal for each rows_to_allocate initialised to 0.

MeReal * MdtKeaConstraints::xi

Constraint error vector.

One MeReal for each rows_to_allocate initialised to 0.


The documentation for this struct was generated from the following file:
MathEngine Dynamics Toolkit - Version 0.0.5 Alpha - Reference Manual generated using doxygen at Wed Oct 11 00:34:52 2000

Copyright MathEngine PLC 2000, all rights reserved.