CG  Version 25
Macros | Functions
RigidBodyMotion.C File Reference
#include "RigidBodyMotion.h"
#include "GenericGraphicsInterface.h"
#include "display.h"
#include "TimeFunction.h"
Include dependency graph for RigidBodyMotion.C:

Macros

#define DGECO   EXTERN_C_NAME(dgeco)
 
#define SGECO   EXTERN_C_NAME(sgeco)
 
#define DGESL   EXTERN_C_NAME(dgesl)
 
#define SGESL   EXTERN_C_NAME(sgesl)
 
#define GECO   SGECO
 
#define GESL   SGESL
 

Functions

RealArray mult (const RealArray &a, const RealArray &b)
 return the product if two matrices.
 
RealArray trans (const RealArray &a)
 return the transpose of a matrix
 
real dot (const RealArray &a, const RealArray &b)
 return the dot product of two arrays
 
RealArray getCrossProductMatrix (const RealArray &w)
 Return the matrix which represents the cross product of w with another vector, [ w X ].
 
void SGECO (real &b, const int &nbd, const int &nb, int &ipvt, real &rcond, real &work)
 
void DGECO (real &b, const int &nbd, const int &nb, int &ipvt, real &rcond, real &work)
 
void SGESL (real &a, const int &lda, const int &n, int &ipvt, real &b, int &job)
 
void DGESL (real &a, const int &lda, const int &n, int &ipvt, real &b, int &job)
 
RealArray solve (const RealArray &a, const RealArray &b)
 solve the matrix equation A*x = b and return x.
 
int arrayToState (const RealArray &yv, RealArray &xv, RealArray &vv, RealArray &omegav, RealArray &ea)
 Unpack the state vector yv into the arrays xv, vv, omegav, and matrix ea.
 
int stateToArray (const RealArray &xv, const RealArray &vv, const RealArray &omegav, const RealArray &ea, RealArray &yv)
 Pack the arrays xv, vv, omegav, and matrix ea into the state vector yv.
 

Macro Definition Documentation

#define DGECO   EXTERN_C_NAME(dgeco)
#define DGESL   EXTERN_C_NAME(dgesl)
#define GECO   SGECO
#define GESL   SGESL
#define SGECO   EXTERN_C_NAME(sgeco)
#define SGESL   EXTERN_C_NAME(sgesl)

Function Documentation

int arrayToState ( const RealArray &  yv,
RealArray &  xv,
RealArray &  vv,
RealArray &  omegav,
RealArray &  ea 
)

Unpack the state vector yv into the arrays xv, vv, omegav, and matrix ea.

References j, and m.

Referenced by RigidBodyMotion::dirkImplicitSolve().

void DGECO ( real &  b,
const int &  nbd,
const int &  nb,
int &  ipvt,
real &  rcond,
real &  work 
)
void DGESL ( real &  a,
const int &  lda,
const int &  n,
int &  ipvt,
real &  b,
int &  job 
)
real dot ( const RealArray &  a,
const RealArray &  b 
)
RealArray getCrossProductMatrix ( const RealArray &  w)

Return the matrix which represents the cross product of w with another vector, [ w X ].

References assert(), n, and W.

Referenced by RigidBodyMotion::dirkImplicitSolve(), RigidBodyMotion::getCoordinates(), RigidBodyMotion::getForceInternal(), RigidBodyMotion::takeStepLeapFrog(), and RigidBodyMotion::takeStepTrapezoid().

RealArray mult ( const RealArray &  a,
const RealArray &  b 
)
void SGECO ( real &  b,
const int &  nbd,
const int &  nb,
int &  ipvt,
real &  rcond,
real &  work 
)
void SGESL ( real &  a,
const int &  lda,
const int &  n,
int &  ipvt,
real &  b,
int &  job 
)
RealArray solve ( const RealArray &  a,
const RealArray &  b 
)

solve the matrix equation A*x = b and return x.

References a, display(), GECO, GESL, m, OV_ABORT(), printF(), and x.

Referenced by RigidBodyMotion::dirkImplicitSolve().

int stateToArray ( const RealArray &  xv,
const RealArray &  vv,
const RealArray &  omegav,
const RealArray &  ea,
RealArray &  yv 
)

Pack the arrays xv, vv, omegav, and matrix ea into the state vector yv.

References j, and m.

RealArray trans ( const RealArray &  a)