File fc3d_Solvers.h

Free functions, typedefs, enums …

Subroutines for the resolution of contact problems with friction (3-dimensional case).

Subroutines for the resolution of contact problems with rolling friction (3-dimensional and 2-dimensional case).

Functions

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

Non-Smooth Gauss Seidel solver for friction-contact 3D problem.

[in] iparam[SICONOS_FRICTION_3D_IPARAM_ERROR_EVALUATION (7)] : error computation method : SICONOS_FRICTION_3D_NSGS_ERROR_EVALUATION_FULL (0) : Full error computation with velocity computation SICONOS_FRICTION_3D_NSGS_ERROR_EVALUATION_LIGHT_WITH_FULL_FINAL (1) : Light error computation with incremental values on reaction verification of absolute error at the end SICONOS_FRICTION_3D_NSGS_ERROR_EVALUATION_LIGHT (2) : only light error computation (velocity not computed) SICONOS_FRICTION_3D_NSGS_ERROR_EVALUATION_ADAPTIVE (3) : we adapt the frequency of the full erro evaluation.

[in] iparam[SICONOS_FRICTION_3D_NSGS_FILTER_LOCAL_SOLUTION(14)] : filter local solution if the local error is greater than 1.0 SICONOS_FRICTION_3D_NSGS_FILTER_LOCAL_SOLUTION_FALSE (0) the filter is not applied SICONOS_FRICTION_3D_NSGS_FILTER_LOCAL_SOLUTION_TRUE (1) the filter is applied

[in] iparam[SICONOS_FRICTION_3D_NSGS_RELAXATION(4)] : method uses overrelaxation SICONOS_FRICTION_3D_NSGS_RELAXATION_FALSE (0) relaxation is not used, SICONOS_FRICTION_3D_NSGS_RELAXATION_TRUE (1) relaxation is used with parameter dparam[8],

[in] iparam[SICONOS_FRICTION_3D_NSGS_SHUFFLE(5)] : shuffle the contact indices in the loop SICONOS_FRICTION_3D_NSGS_SHUFFLE_FALSE (0) : no shuffle SICONOS_FRICTION_3D_NSGS_SHUFFLE_TRUE (1) : shuffle only at the beginning SICONOS_FRICTION_3D_NSGS_SHUFFLE_TRUE_EACH_LOOP (2) : shuffle in each iteration

[in] iparam[SICONOS_FRICTION_3D_NSGS_SHUFFLE_SEED(6)] : seed for the random generator in shuffling contacts

[out] iparam[SICONOS_IPARAM_ITER_DONE(1)] = iter number of performed iterations

[in] iparam[8] = error computation frequency

[in] dparam[SICONOS_DPARAM_TOL(0)] user tolerance on the loop [in] dparam[8] the relaxation parameter omega [out] dparam[SICONOS_DPARAM_RESIDU(1)] reached error

The internal (local) solver must set by the SolverOptions options[1]

Parameters:
  • problem – the friction-contact 3D problem to solve

  • velocity – global vector (n), in-out parameter

  • reaction – global vector (n), in-out parameters

  • info – return 0 if the solution is found

  • options – the solver options : [in] iparam[0] : Maximum iteration number

void fc3d_nsgs_update(int contact, FrictionContactProblem *problem, FrictionContactProblem *localproblem, double *reaction, SolverOptions *options)
void fc3d_nsgs_generic(FrictionContactProblem *problem, double *reaction, double *velocity, int *info, SolverOptions *options)
void fc3d_admm(FrictionContactProblem *problem, double *reaction, double *velocity, int *info, SolverOptions *options)
void fc3d_admm_init(FrictionContactProblem *problem, SolverOptions *options)
void fc3d_admm_free(FrictionContactProblem *problem, SolverOptions *options)
void fc3d_nsgs_velocity(FrictionContactProblem *problem, double *reaction, double *velocity, int *info, SolverOptions *options)

Non-Smooth Gauss Seidel in velocity solver for friction-contact 3D problem.

Parameters:
  • problem – the friction-contact 3D problem to solve

  • velocity – global vector (n), in-out parameter

  • reaction – global vector (n), in-out parameters

  • info – return 0 if the solution is found

  • options – the solver options

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

Proximal point solver for friction-contact 3D problem.

Parameters:
  • problem – the friction-contact 3D problem to solve

  • velocity – global vector (n), in-out parameter

  • reaction – global vector (n), in-out parameters

  • info – return 0 if the solution is found

  • options – the solver options :

int fc3d_TrescaFixedPoint(FrictionContactProblem *problem, double *reaction, double *velocity, int *info, SolverOptions *options)

Fixed point solver for friction-contact 3D problem based on the Tresca problem with fixed friction threshold.

Parameters:
  • problem – the friction-contact 3D problem to solve

  • velocity – global vector (n), in-out parameter

  • reaction – global vector (n), in-out parameters

  • info – return 0 if the solution is found

  • options – the solver options

Returns:

error code

int fc3d_Panagiotopoulos_FixedPoint(FrictionContactProblem *problem, double *reaction, double *velocity, int *info, SolverOptions *options)

Fixed point solver for friction-contact 3D problem based on the Panagiotopoulos method based on an alternative technique between the normal problem and the tangential one.

Parameters:
  • problem – the friction-contact 3D problem to solve

  • velocity – global vector (n), in-out parameter

  • reaction – global vector (n), in-out parameters

  • info – return 0 if the solution is found

  • options – the solver options

Returns:

error code

void fc3d_SOCLCP(FrictionContactProblem *problem, double *reaction, double *velocity, int *info, SolverOptions *options)
int fc3d_ACLMFixedPoint(FrictionContactProblem *problem, double *reaction, double *velocity, int *info, SolverOptions *options)

Fixed point solver for friction-contact 3D problem based on the ACLM.

Parameters:
  • problem – the friction-contact 3D problem to solve

  • velocity – global vector (n), in-out parameter

  • reaction – global vector (n), in-out parameters

  • info – return 0 if the solution is found

  • options – the solver options : \retuen error code

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

Projected Gradient on Cylinder solver for Friction-contact 3D problem.

Parameters:
  • problem – the friction-contact 3D problem to solve

  • velocity – global vector (n), in-out parameter

  • reaction – global vector (n), in-out parameters

  • info – return 0 if the solution is found

  • options – the solver options : if dparam[3] >0 = rho if dparam[3] <= 0 then a line-search is performed. iparam[2] is the maximum number of iteration is the line&#8212;search. The internal (local) solver must set by the SolverOptions options->internalsolvers.

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

Fixed Point solver for friction-contact 3D problem based on the De Saxce Formulation.

Parameters:
  • problem – : the friction-contact 3D problem to solve

  • velocity – global vector (n), in-out parameter

  • reaction – global vector(n), in-out parameters

  • info – return 0 if the solution is found

  • options – the solver options : dparam[3] : rho . if dparam[3] >0 then rho=dparam[3] otherwise a computataion of rho is assumed.

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

Fixed Point Projection solver for friction-contact 3D problem based on the De Saxce Formulation.

Parameters:
  • problem – : the friction-contact 3D problem to solve

  • velocity – global vector (n), in-out parameter

  • reaction – global vector (n), in-out parameters

  • info – return 0 if the solution is found

  • options – the solver options : dparam[3] : rho . if dparam[3] >0 then rho=dparam[3] otherwise a computataion of rho is assumed.

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

Fixed Point solver for friction-contact 3D problem based on the VI reformulation.

Parameters:
  • problem – : the friction-contact 3D problem to solve

  • velocity – global vector (n), in-out parameter

  • reaction – global vector (n), in-out parameters

  • info – return 0 if the solution is found

  • options – the solver options :

void fc3d_VI_FixedPointProjection_Cylinder(FrictionContactProblem *problem, double *reaction, double *velocity, int *info, SolverOptions *options)
void fc3d_ExtraGradient(FrictionContactProblem *problem, double *reaction, double *velocity, int *info, SolverOptions *options)

Extra Gradient solver for friction-contact 3D problem based on the De Saxce Formulation.

Parameters:
  • problem – the friction-contact 3D problem to solve

  • velocity – global vector (n), in-out parameter

  • reaction – global vector (n), in-out parameters

  • info – return 0 if the solution is found

  • options – the solver options

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

Extra Gradient solver (VI_EG) for friction-contact 3D problem based on a VI reformulation.

Parameters:
  • problem – the friction-contact 3D problem to solve

  • velocity – global vector (n), in-out parameter

  • reaction – global vector (n), in-out parameters

  • info – return 0 if the solution is found

  • options – the solver options

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

Hyperplane Projection solver for friction-contact 3D problem based on the De Saxce Formulation.

Parameters:
  • problem – the friction-contact 3D problem to solve

  • velocity – global vector (n), in-out parameter

  • reaction – global vector (n), in-out parameters

  • info – return 0 if the solution is found

  • options – the solver options

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

solver using PATH (via GAMS) for friction-contact 3D problem based on an AVI reformulation

Parameters:
  • problem – the friction-contact 3D problem to solve

  • velocity – global vector (n), in-out parameter

  • reaction – global vector (n), in-out parameters

  • info – return 0 if the solution is found

  • uoptions – the solver options

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

solver using PATHVI (via GAMS) for friction-contact 3D problem based on an AVI reformulation

Parameters:
  • problem – the friction-contact 3D problem to solve

  • velocity – global vector (n), in-out parameter

  • reaction – global vector (n), in-out parameters

  • info – return 0 if the solution is found

  • options – the solver options

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

solver using PATH (via GAMS) for friction-contact 3D problem based on an AVI reformulation

Parameters:
  • problem – the friction-contact 3D problem to solve

  • velocity – global vector (n), in-out parameter

  • reaction – global vector (n), in-out parameters

  • info – return 0 if the solution is found

  • options – the solver options

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

solver using PATHVI (via GAMS) for friction-contact 3D problem based on an AVI reformulation

Parameters:
  • problem – the friction-contact 3D problem to solve

  • velocity – global vector (n), in-out parameter

  • reaction – global vector (n), in-out parameters

  • info – return 0 if the solution is found

  • options – the solver options

void fc3d_nonsmooth_Newton_AlartCurnier_new(FrictionContactProblem *problem, double *reaction, double *velocity, int *info, SolverOptions *options)
void fc3d_nsn_ac_new_set_default(SolverOptions *options)
void fc3d_IPM_SNM(FrictionContactProblem *problem, double *reaction, double *velocity, int *info, SolverOptions *options)
void fc3d_IPM_SNM_init(FrictionContactProblem *problem, SolverOptions *options)
void fc3d_ipm_snm_set_default(SolverOptions *options)
int fc3d_driver(FrictionContactProblem *problem, double *reaction, double *velocity, SolverOptions *options)
SolverOptions *fc3d_solver_options_create(solver_id_t solver_id)
void fc3d_list_available_solvers(void)
void fc3d_print_solver_info(solver_id_t solver_id)