rolling_fc3d_compute_error (functions)

siconos.numerics.rolling_fc3d_compute_error(RollingFrictionContactProblem *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.

  • 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.rolling_fc3d_unitary_compute_and_add_error(double r[3], double u[3], double mu, double mur, 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.

  • r – the reaction force

  • u – the local velocity

  • mu – coeficient of friction

  • worktmp – work vector

  • error – value