siconos.io.tools module

Functions and tools used in mechanics_run and mechanics_hdf5

siconos.io.tools.extract_contact_nodes_with_indices(mesh_data)[source]

Dummy

siconos.io.tools.arguments()[source]

Returns tuple containing dictionary of calling function’s named arguments and a list of calling function’s unnamed positional arguments.

siconos.io.tools.tmpfile(suffix='', prefix='siconos_io', contents=None, debug=False)[source]

A context manager for a named temporary file.

siconos.io.tools.warn(msg)[source]
siconos.io.tools.object_id(obj)[source]

returns an unique object identifier

siconos.io.tools.str_of_file(filename)[source]
siconos.io.tools.file_of_str(filename, string)[source]
siconos.io.tools.get_open_fds()[source]

Get the number of open file descriptors for the current process.

Return type:

int

class siconos.io.tools.Timer[source]

Bases: object

elapsed()[source]
update()[source]
siconos.io.tools.load_siconos_mesh(shape_filename, scale=None)[source]

loads a vtk .vtp file and returns a SiconosMesh shape WARNING triangles cells assumed!