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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#ifndef FRICTIONCONTACT3D_nonsmooth_Newton_NaturalMap_H
#define FRICTIONCONTACT3D_nonsmooth_Newton_NaturalMap_H


#include "NumericsFwd.h"
#include "SiconosConfig.h"

#if defined(__cplusplus) && !defined(BUILD_AS_CPP)
extern "C"
{
#endif


  typedef void (*NaturalMapFun3x3Ptr)(double* reaction,
                                             double* velocity,
                                             double mu,
                                             double* rho,
                                             double* F,
                                             double* A,
                                             double* B);


  void fc3d_nonsmooth_Newton_NaturalMap(
    FrictionContactProblem* problem,
    double *reaction,
    double *velocity,
    int *info,
    SolverOptions *options);



  void fc3d_NaturalMapFunction(
    unsigned int problemSize,
    NaturalMapFun3x3Ptr computeACFun3x3,
    double *reaction3D,
    double *velocity3D,
    double *mu,
    double *rho3D,
    double *output_blocklist3,
    double *output_blocklist3x3_1,
    double *output_blocklist3x3_2);

  int fc3d_nonsmooth_Newton_NaturalMap_compute_error(
    FrictionContactProblem* problem,
    double *z , double *w, double tolerance,
    SolverOptions * options, double * error);


#if defined(__cplusplus) && !defined(BUILD_AS_CPP)
}
#endif

#endif