|
Robotran C Documentation
|
Go to the documentation of this file.
29 int mbs_eig_0(
double **A,
int n,
double *eval_a,
double *eval_b,
double **evec_a,
double **evec_b);
43 int mbs_schur_0(
double **A,
int n,
double **T,
double **Z,
double *WR,
double *WI,
int reorder);
107 int mbs_svdDcmp_0(
double **A,
int x,
int y,
double **U,
double **S,
double **VT);
int w_methods(double y[], double dydx[], int n, double x, double h, double yout[], int(*derivs)(double, double[], double[], MbsData *, MbsDirdyn *), MbsData *s, MbsDirdyn *mbs_dd)
W Methods integrator implementation.
Definition: w_methods.c:25
#define GAM
Definition: rosenbrock.c:47
#define MBS_INFO_FAILURE
Definition: mbs_define.h:31
void mbs_msg(const char *msg,...)
Send a message.
Definition: mbs_message.c:87
#define SAFETY
Definition: rosenbrock.c:38
int mbs_estim_jac_acc(double x, double htry, double y[], double dydx[], int compute_dfdx, double dfdx[], double **dfdy, int n, int(*derivs)(double, double[], double[], MbsData *, MbsDirdyn *), MbsData *s, MbsDirdyn *dd)
Evaluate the Jacobian of a function accelerations using finite difference.
Definition: integrator.c:35
double * qd
Array with the current values of the generalized velocities.
Definition: mbs_data.h:285
#define E4
Definition: rosenbrock.c:64
int mbs_cholsl_0(double **A, int n, double **B, int nb)
Solves a symmetric positive definite system of linear equations AX=B (B being the right hand side wit...
Definition: cholesky.c:40
#define C3X
Definition: rosenbrock.c:67
This header defines global functions for W methods integrator in C.
void lubksb_0(double **a, int n, int *indx, double b[])
Definition: lubksb.c:31
#define B1
Definition: rosenbrock.c:57
double tsim
The time value.
Definition: mbs_data.h:305
double * y
Pointer to the state vector, this is a dvec_0 of size nState.
Definition: mbs_dirdyn_struct.h:175
#define GROW
Definition: rosenbrock.c:39
#define W_S
Definition: mbs_w_methods.h:21
int nState
size of the state vector
Definition: mbs_dirdyn_struct.h:174
#define C32
Definition: rosenbrock.c:53
#define ERRCON
Definition: rosenbrock.c:43
int nqu
Number of independent articulations.
Definition: mbs_data.h:262
void mbs_error_msg(int err, const char *msg,...)
Send an error message.
Definition: mbs_message.c:131
#define C43
Definition: rosenbrock.c:56
#define A32
Definition: rosenbrock.c:50
#define E1
Definition: rosenbrock.c:61
#define E2
Definition: rosenbrock.c:62
#define A21
Definition: rosenbrock.c:48
#define PSHRNK
Definition: rosenbrock.c:42
This header defines global functions for rosenbrock integrator in C.
int mbs_invLU_0(double **A, double **Am1, int n)
Inverse the square matrix A using a LU decomposition.
Definition: inverse_lapack.c:28
int mbs_freeze_jac(int freeze_index, int *next_freeze_index, double x, double h, double y[], double dydx[], int compute_dfdx, double dfdx[], double **dfdy, double dydx_freeze[], double dfdx_freeze[], double **dfdy_freeze, int n, int(*derivs)(double, double[], double[], MbsData *, MbsDirdyn *), MbsData *s, MbsDirdyn *mbs_dd)
Freeze the Jacobian of an integrator structure until mbs_dd->options->n_freeze.
Definition: integrator.c:129
void mbs_close_kin(MbsData *s, MbsAux *mbs_aux)
compute the dependent velocities that solves the constraints.
Definition: mbs_close_loops.c:146
void * integrator_struct
pointer to store integrator structure
Definition: mbs_dirdyn_struct.h:205
#define A3X
Definition: rosenbrock.c:70
#define C31
Definition: rosenbrock.c:52
#define C1X
Definition: rosenbrock.c:65
int mbs_svdDcmp_0(double **A, int x, int y, double **U, double **S, double **VT)
Realize the singular value decomposition.
Definition: svdcmp_lapack.c:78
int ludcmp_0(double **a, int n, int *indx, double *d)
LU decomposition of a matrix with index starting at 0.
Definition: ludcmp.c:82
double tsim
current simulation time
Definition: mbs_dirdyn_struct.h:171
Runge-Kutta 4 structure for dirdyn.
Definition: mbs_rk4.h:25
Rosenbrock integration structure for dirdyn.
Definition: mbs_rosenbrock.h:23
int * qu
Array with the indices of the independent articulations (free)
Definition: mbs_data.h:271
#define B2
Definition: rosenbrock.c:58
#define C4X
Definition: rosenbrock.c:68
int n_freeze
number of time step when the jacobian is freezed (computed once at the start of the n_freeze time ste...
Definition: mbs_dirdyn_struct.h:140
int mbs_eig_0(double **A, int n, double *eval_a, double *eval_b, double **evec_a, double **evec_b)
Compute the eigen values and vector of a matrix with index starting a 0.
Definition: eig_lapack.c:32
#define B3
Definition: rosenbrock.c:59
double * q
Array with the current values of the generalized coordinates.
Definition: mbs_data.h:284
int rosenbrock(int n, int(*derivs)(double, double[], double[], MbsData *, MbsDirdyn *), double *x, double y[], double eps, double hmax, double htry, long nmax, double dydx[], double yscal[], double *hnext, MbsData *s, MbsDirdyn *dd, double *hdid)
Fourth-order Rosenbrock step for integrating stiff problems, with monitoring of local truncation erro...
Definition: rosenbrock.c:105
#define E3
Definition: rosenbrock.c:63
int rk4(double y[], double dydx[], int n, double x, double h, double yout[], int(*derivs)(double, double[], double[], MbsData *, MbsDirdyn *), MbsData *s, MbsDirdyn *dd)
Runge Kutta 4 integrator implementation Given values for the variables y[1..n] and their derivatives ...
Definition: rk4.c:22
W Methods structure for dirdyn.
Definition: mbs_w_methods.h:46
#define _MBS_ERR_MOD_SPEC_14
Generic error number Module specific errors range from -11 to -19 please read the error message a...
Definition: mbs_errors_names.h:190
int mbs_close_geo(MbsData *s, MbsAux *mbs_aux)
compute a position of the multibody system which solves the constraints
Definition: mbs_close_loops.c:43
static double dmaxarg2
Definition: rosenbrock.c:102
#define _MBS_ERR_MOD_SPEC_18
Genericerror number Module specific errors range from -11 to -19 please read the error message an...
Definition: mbs_errors_names.h:214
Definition: mbs_data.h:246
MbsAux * mbs_aux
Definition: mbs_dirdyn_struct.h:169
int mbs_choldc_0(double **A, int n)
Compute the Cholesky decomposition of A, i.e.
Definition: cholesky.c:25
#define A31
Definition: rosenbrock.c:49
int dirdynared(MbsAux *mbs_aux, MbsData *s)
Compute the joint accelerations of the system in the current configuration.
Definition: mbs_dirdynared.c:26
int ThetaSC(double y[], double dydx[], int n, double x, double h, double yout[], int(*derivs)(double, double[], double[], MbsData *, MbsDirdyn *), MbsData *s, MbsDirdyn *mbs_dd)
Unknown integrator.
Definition: thetaSC.c:25
static double dmaxarg1
Definition: rosenbrock.c:102
#define C2X
Definition: rosenbrock.c:66
This header defines specific integrators functions in C.
static double dminarg1
Definition: rosenbrock.c:103
int mbs_over_under_determined(double **A, double *b, int x, int y)
Solve a linear system of equations, A*x=b, using dgelss lapack function.
Definition: svdcmp_lapack.c:18
#define A2X
Definition: rosenbrock.c:69
#define SHRNK
Definition: rosenbrock.c:41
int mbs_schur_0(double **A, int n, double **T, double **Z, double *WR, double *WI, int reorder)
A : matrix for the Eigenvalue problem in row major n : size of the matrix WR : Result of the Eigenval...
Definition: schur_lapack.c:45
#define C41
Definition: rosenbrock.c:54
void copy_dvec_0(double *vec_src, double *vec_dest, int l_v)
Copy the content of a vector (of sizel_v) of doubles to a second vector, starting with index 0.
Definition: mbs_1D_array.c:981
#define C42
Definition: rosenbrock.c:55
General structure of the direct dynamic module.
Definition: mbs_dirdyn_struct.h:166
This header defines global functions for Runge Kutta 4 integrator in C.
double * qdd
Array with the current values of the generalized acceleration.
Definition: mbs_data.h:286
#define C21
Definition: rosenbrock.c:51
int mbs_rank_0(double **A, int m, int n)
Compute the rank of matrix_in.
Definition: rank_lapack.c:38
#define B4
Definition: rosenbrock.c:60
MbsDirdynOptions * options
structure defining the option of a direct dynamic
Definition: mbs_dirdyn_struct.h:168
static double dminarg2
Definition: rosenbrock.c:103
int nhu
Number of independent constraints.
Definition: mbs_data.h:268
#define PGROW
Definition: rosenbrock.c:40