ContactMechanics.IO package
Submodules
ContactMechanics.IO.NetCDF module
Output surface topography and contact deformation to a structured NetCDF database.
- class ContactMechanics.IO.NetCDF.NetCDFContainer(fn, frame=0, double=False, store_force=False, mode='r', format='NETCDF4')
Bases:
object
Methods
close
get_cursor
get_elastic_surface
get_filename
get_h
get_next_frame
get_rigid_surface
get_size
has_h
set_cursor
set_elastic_surface
set_h
set_rigid_surface
set_shape
sync
- close()
- get_cursor()
- get_elastic_surface()
- get_filename()
- get_h()
- get_next_frame()
- get_rigid_surface()
- get_size()
- has_h()
- set_cursor(cur_frame)
- set_elastic_surface(h)
- set_h(h, ndof=None)
- set_rigid_surface(h, ndof=None)
- set_shape(x, ndof=None)
- sync()
- class ContactMechanics.IO.NetCDF.NetCDFContainerFrame(parent, i)
Bases:
object
- Attributes:
- index
- traj
Methods
set_grid
(name, value[, x0, y0])Assing a value to a certain grid, where the grid starts at x0,y0.
get_index
get_traj
sync
- get_index()
- get_traj()
- property index
- set_grid(name, value, x0=0, y0=0)
Assing a value to a certain grid, where the grid starts at x0,y0. Grid can be smaller than the dimensions in the file. Padding region is then set to undefined.
- sync()
- property traj
- ContactMechanics.IO.NetCDF.open(fn, mode='r', frame=None, **kwargs)