gfc3d_compute_error (functions)


siconos.numerics.gfc3d_compute_error(GlobalFrictionContactProblem *problem, array_like (np.float64, 1D)reaction, array_like (np.float64, 1D)velocity, array_like (np.float64, 1D)globalVelocity, double tolerance, SolverOptions *options, double norm, array_like (np.float64, 1D)error) → int[source]

Error computation for global friction-contact 3D problem The computation of the error uses as input the reaction (reaction) and the global velocity (globalVelocity) The value of the local velocity (velocity) is recomputed.

Parameters:
  • problem – the structure which defines the friction-contact problem
  • reaction
  • velocity
  • globalVelocity
  • tolerance – value for error computation
  • options – pointer to SolverOptions
  • norm – normalisation coeff
  • error – value
Returns:

0 if successfull