Program listing for file numerics/src/FrictionContact/fclib_interface.h

Program listing for file numerics/src/FrictionContact/fclib_interface.h#

 1#ifndef FCLIB_INTERFACE_H
 2#define FCLIB_INTERFACE_H
 3
 4#include "SiconosConfig.h"
 5
 6#if defined(WITH_FCLIB)
 7#include "NumericsFwd.h"
 8
 9typedef struct fclib_local fclib_local;
10typedef struct fclib_global fclib_global;
11typedef struct fclib_global_rolling fclib_global_rolling;
12typedef struct fclib_solution fclib_solution;
13
14#if defined(__cplusplus) && !defined(BUILD_AS_CPP)
15extern "C"
16{
17#endif
18
19  FrictionContactProblem* from_fclib_local(const fclib_local *fclib_problem);
20
21
22  FrictionContactProblem* frictionContact_fclib_read(const char *path);
23
24  int frictionContact_fclib_write_csr(FrictionContactProblem* problem,
25                                      char * title, char * description,
26                                      char * mathInfo,
27                                      const char *path, int ndof);
28
29  int frictionContact_fclib_write(FrictionContactProblem* problem,
30                                  char * title, char * description,
31                                  char * mathInfo,
32                                  const char *path, int ndof);
33
34  int frictionContact_fclib_write_guess( double * reaction, double * velocity,
35                                         const char *path);
36
37  GlobalFrictionContactProblem* from_fclib_global(const fclib_global *fclib_problem);
38
39
40  GlobalFrictionContactProblem* globalFrictionContact_fclib_read(const char *path);
41
42
43  int globalFrictionContact_fclib_write(GlobalFrictionContactProblem* problem,
44                                        char * title, char * description,
45                                        char * mathInfo,
46                                        const char *path);
47
48  GlobalRollingFrictionContactProblem* from_fclib_global_rolling(const fclib_global_rolling *fclib_problem);
49
50  GlobalRollingFrictionContactProblem* globalRollingFrictionContact_fclib_read(const char *path);
51
52  int globalRollingFrictionContact_fclib_write(GlobalRollingFrictionContactProblem* problem,
53                                               char * title,
54                                               char * description,
55                                               char * mathInfo,
56                                               const char *path);
57#if defined(__cplusplus) && !defined(BUILD_AS_CPP)
58}
59#endif
60#endif
61
62
63#endif