ContactMechanics.CommandLineInterface package
Submodules
ContactMechanics.CommandLineInterface.HardWall module
Command line front-end for hard wall calculations
- ContactMechanics.CommandLineInterface.HardWall.dump(txt, surface, substrate, u, f, offset=0)
- ContactMechanics.CommandLineInterface.HardWall.dump_nc(container, u, f, disp0, load, area)
- ContactMechanics.CommandLineInterface.HardWall.main()
- ContactMechanics.CommandLineInterface.HardWall.next_step(system, surface, history=None, pentol=None, maxiter=None, logger=<ContactMechanics.Tools.Logger.Logger object>, verbose=False)
Run a full contact calculation. Try to guess displacement such that areas are equally spaced on a log scale.
- Parameters:
system (PyCo.System.SystemBase object) – The contact mechanical system.
surface (SurfaceTopography.SurfaceTopography object) – The rigid rough surface.
history (tuple) – History returned by past calls to next_step
pentol (float, optional) – Penetration tolerance, passed to CG solver. (Default: None)
maxiter (int, optional) – Maximum number of iterations, passed to CG solver. (Default: None)
verbose (bool, optional) – Output verbosity. (Default: False)
- Returns:
displacements (numpy.ndarray) – Current surface displacement field.
forces (numpy.ndarray) – Current surface pressure field.
displacement (float) – Current displacement of the rigid surface
load (float) – Current load.
area (float) – Current fractional contact area.
history (tuple) – History of contact calculations.
- ContactMechanics.CommandLineInterface.HardWall.save_contact(fn, surface, substrate, pressure, macro=None)
- ContactMechanics.CommandLineInterface.HardWall.save_gap(fn, surface, gap, macro=None)
- ContactMechanics.CommandLineInterface.HardWall.save_pressure(fn, surface, substrate, pressure, macro=None)
- ContactMechanics.CommandLineInterface.HardWall.tuple2(s)