# fc3d_compute_error (functions)¶

siconos.numerics.fc3d_Tresca_compute_error(FrictionContactProblem *problem, array_like (np.float64, 1D)z, array_like (np.float64, 1D)w, double tolerance, SolverOptions *options, double norm, array_like (np.float64, 1D)error) → int[source]

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 – value 0 if ok

siconos.numerics.fc3d_Tresca_unitary_compute_and_add_error(double z[3], double w[3], double R, array_like (np.float64, 1D)error, array_like (np.float64, 1D)worktmp) → None[source]

Error computation for one friction-contact 3D problem.

Parameters: z – vector w – vector R – radius of the cylinder worktmp – work vector error – value

siconos.numerics.fc3d_compute_error(FrictionContactProblem *problem, array_like (np.float64, 1D)z, array_like (np.float64, 1D)w, double tolerance, SolverOptions *options, double norm, array_like (np.float64, 1D)error) → int[source]

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 – value 0 if ok

siconos.numerics.fc3d_compute_error_velocity(FrictionContactProblem *problem, array_like (np.float64, 1D)z, array_like (np.float64, 1D)w, double tolerance, SolverOptions *options, array_like (np.float64, 1D)error) → int[source]

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 – value 0 if ok

siconos.numerics.fc3d_unitary_compute_and_add_error(double r[3], double u[3], double mu, array_like (np.float64, 1D)error, array_like (np.float64, 1D)worktmp) → None[source]

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