FrictionContactProblem (functions)


siconos.numerics.createSplittedFrictionContactProblem(FrictionContactProblem *problem, SplittedFrictionContactProblem *splitted_problem) → None[source]

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

siconos.numerics.frictionContactProblem_free(FrictionContactProblem *problem) → None[source]

free a FrictionContactProblem

Parameters:problem – the problem to free

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

new FrictionContactProblem 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 FrictionContactProblem structure


siconos.numerics.frictionContact_display(FrictionContactProblem *problem) → None[source]

display a FrictionContactProblem

Parameters:problem – the problem to display

siconos.numerics.frictionContact_newFromFile(FrictionContactProblem *problem, FILE *file) → int[source]

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

Parameters:
  • problem – the problem to read
  • file – the target file
Returns:

0 if successfull


siconos.numerics.frictionContact_newFromFilename(FrictionContactProblem *problem, char *filename) → int[source]

read a FrictionContactProblem 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.frictionContact_printInFile(FrictionContactProblem *problem, FILE *file) → int[source]

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

Parameters:
  • problem – the problem to print out
  • file – the dest file
Returns:

0 if successfull


siconos.numerics.frictionContact_printInFilename(FrictionContactProblem *problem, char *filename) → int[source]

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

Parameters:
  • problem – the problem to print out
  • filename – the dest file
Returns:

0 if successfull