File numerics/src/FrictionContact/rolling_fc2d_compute_error.h

File numerics/src/FrictionContact/rolling_fc2d_compute_error.h#

Go to the source code of this file

Functions

int rolling_fc2d_compute_error(RollingFrictionContactProblem *problem, double *z, double *w, double tolerance, SolverOptions *options, double norm, double *error)#

Error computation (using the normal map residual) for rolling friction-contact 2D problem.

Parameters:
  • problem – the structure which defines the friction-contact problem

  • z – vector

  • w – vector

  • tolerance – value for error computation

  • options

  • norm – norm of a vector (problem->q) for relative error

  • error[inout] value

Returns:

0 if ok

void rolling_fc2d_unitary_compute_and_add_error(double r[3], double u[3], double mu, double mur, double *error, double *worktmp)#

Error computation (using the normal map residual) for one rolling friction-contact 2D problem.

Parameters:
  • r – the reaction force

  • u – the local velocity

  • mu – coeficient of friction

  • worktmp – work vector

  • error[inout] value