File numerics/src/FrictionContact/RollingFrictionContactProblem.h#

Go to the source code of this file

Definition of a structure to handle friction-contact (2D or 3D) problems.

Functions

RollingFrictionContactProblem *rollingFrictionContactProblem_new(void)#
RollingFrictionContactProblem *rollingFrictionContactProblem_new_with_data(int dim, int nc, NumericsMatrix *M, double *q, double *mu, double *mu_r)#

new RollingFrictionContactProblem from minimal set of data

Parameters:
  • dim[in] the problem dimension

  • nc[in] the number of contact

  • M[in] the NumericsMatrix

  • q[in] the q vector

  • mu[in] the mu vector

Returns:

a pointer to a RollingFrictionContactProblem structure

void rollingFrictionContactProblem_free(RollingFrictionContactProblem *problem)#

free a RollingFrictionContactProblem

Parameters:

problem – the problem to free

void rollingFrictionContact_display(RollingFrictionContactProblem *problem)#

display a RollingFrictionContactProblem

Parameters:

problem – the problem to display

int rollingFrictionContact_printInFile(RollingFrictionContactProblem *problem, FILE *file)#

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

Parameters:
  • problem – the problem to print out

  • file – the dest file

Returns:

0 if successfull

int rollingFrictionContact_printInFilename(RollingFrictionContactProblem *problem, char *filename)#

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

RollingFrictionContactProblem *rollingFrictionContact_newFromFile(FILE *file)#

read a RollingFrictionContactProblem from a file descriptor

Parameters:

file – descriptor

Returns:

problem the problem to read

RollingFrictionContactProblem *rollingFrictionContact_new_from_filename(const char *filename)#

read a RollingFrictionContactProblem from a file (.dat or hdf5 if fclib is on) from its filename

Parameters:

filename – the name of the input file

Returns:

problem the problem to read

void rollingFrictionContactProblem_compute_statistics(RollingFrictionContactProblem *problem, double *reaction, double *velocity, double tol, int do_print)#
struct RollingFrictionContactProblem#
#include <RollingFrictionContactProblem.h>

The structure that defines a (reduced or dual) Friction-Contact (3D or 2D) problem.

Public Members

int dimension#

dimension of the contact space (3D or 2D )

int numberOfContacts#

the number of contacts \( n_c \)

NumericsMatrix *M#

\( {M} \in {{\mathrm{I\!R}}}^{n \times n} \), a matrix with \( n = d n_c\) stored in NumericsMatrix structure

double *q#

\( {q} \in {{\mathrm{I\!R}}}^{n} \)

double *mu#

\( {\mu} \in {{\mathrm{I\!R}}}^{n_c} \), vector of friction coefficients ( \( n_c =\) numberOfContacts)

double *mu_r#

\( {\mu_r} \in {{\mathrm{I\!R}}}^{n_c} \), vector of friction coefficients ( \( n_c = \) numberOfContacts)