RollingFrictionContactProblem (functions)


siconos.numerics.rollingFrictionContactProblem_compute_statistics(RollingFrictionContactProblem *problem, array_like (np.float64, 1D)reaction, array_like (np.float64, 1D)velocity, double tol, int do_print) → None[source]

siconos.numerics.rollingFrictionContactProblem_free(RollingFrictionContactProblem *problem) → None[source]

free a RollingFrictionContactProblem

Parameters

problem – the problem to free


siconos.numerics.rollingFrictionContactProblem_new(None) → RollingFrictionContactProblem *[source]

siconos.numerics.rollingFrictionContactProblem_new_with_data(int dim, int nc, NumericsMatrix *M, array_like (np.float64, 1D)q, array_like (np.float64, 1D)mu, array_like (np.float64, 1D)mu_r) → RollingFrictionContactProblem *[source]

new RollingFrictionContactProblem from minimal set of data

Parameters
  • dim – the problem dimension

  • nc – the number of contact

  • M – the NumericsMatrix

  • q – the q vector

  • mu – the mu vector

Returns

a pointer to a RollingFrictionContactProblem structure


siconos.numerics.rollingFrictionContact_display(RollingFrictionContactProblem *problem) → None[source]

display a RollingFrictionContactProblem

Parameters

problem – the problem to display


siconos.numerics.rollingFrictionContact_newFromFile(RollingFrictionContactProblem *problem, FILE *file) → int[source]

read a RollingFrictionContactProblem in a file (numerics .dat format)

Parameters
  • problem – the problem to read

  • file – the target file

Returns

0 if successfull


siconos.numerics.rollingFrictionContact_newFromFilename(RollingFrictionContactProblem *problem, char *filename) → int[source]

read a RollingFrictionContactProblem in a file (numerics .dat format) from its filename

Parameters
  • problem – the problem to read

  • filename – the name of the target file

Returns

0 if successfull


siconos.numerics.rollingFrictionContact_printInFile(RollingFrictionContactProblem *problem, FILE *file) → int[source]

print a RollingFrictionContactProblem in a file (numerics .dat format)

Parameters
  • problem – the problem to print out

  • file – the dest file

Returns

0 if successfull


siconos.numerics.rollingFrictionContact_printInFilename(RollingFrictionContactProblem *problem, char *filename) → int[source]

print a RollingFrictionContactProblem in a file (numerics .dat format) from its filename

Parameters
  • problem – the problem to print out

  • filename – the dest file

Returns

0 if successfull