File numerics/src/FrictionContact/fc3d_compute_error.h

Go to the source code of this file

functions related to error computation for friction-contact problems

Functions

int fc3d_compute_error(FrictionContactProblem *problem, double *z, double *w, double tolerance, SolverOptions *options, double norm, double *error)

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

Return

0 if ok

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

  • [inout] error: value

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

Error computation for a friction-contact 3D problem.

Return

0 if ok

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

  • z: vector

  • w: vector

  • options:

  • tolerance: value for error computation

  • [inout] error: value

int fc3d_Tresca_compute_error(FrictionContactProblem *problem, double *z, double *w, double tolerance, SolverOptions *options, double norm, double *error)

Error computation for friction-contact 3D problem with Tresca Friction.

Return

0 if ok

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

  • z: vector

  • w: vector

  • tolerance: value for error computation

  • options:

  • norm: normalisation coeff

  • [inout] error: value

void fc3d_Tresca_unitary_compute_and_add_error(double z[3], double w[3], double R, double *error, double *worktmp)

Error computation for one friction-contact 3D problem.

Parameters
  • z: vector

  • w: vector

  • R: radius of the cylinder

  • worktmp: work vector

  • [inout] error: value

void fc3d_unitary_compute_and_add_error(double r[3], double u[3], double mu, double *error, double *worktmp)

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

Parameters
  • r: the reaction force

  • u: the local velocity

  • mu: coeficient of friction

  • worktmp: work vector

  • [inout] error: value