# 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.

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 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

• error[inout] 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.

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

• z – vector

• w – vector

• options

• tolerance – value for error computation

• error[inout] value

Returns:

0 if ok

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

• error[inout] 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.

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

• z – vector

• w – vector

• tolerance – value for error computation

• options

• norm – normalisation coeff

• error[inout] value

Returns:

0 if ok