Skip to main content

Module geometry

Module geometry 

Source
Expand description

Geometry a machine file gives beside its netlist: the belt’s wrap at a driven pulley from where the wheels stand (effects.belt_wrap) and the belt drawn round its wheels, and a body leaning on its carriage (effects.tool_flex).

Structs§

Wheel
A wheel the belt runs round, in the belt’s plane (x, z of the 3D view): its centre, and its radius signed by the sense the belt runs round it, + anticlockwise, - clockwise (seen from the front, x to the right, z up). A clamp is a wheel of radius 0.

Functions§

arc
Points on wheel at from the belt’s contact from round to its contact to, in the wheel’s sense (anticlockwise for a positive radius), pieces + 1 of them, both ends included. A clamp (radius 0) gives its centre.
contacts
Where the belt’s straight run from wheel a to wheel b leaves a and meets b: c - rho l on each, l the run’s direction (run) turned left by 90 degrees.
flex_at
The spring that holds a leaning body upright at the pose q: (its stiffness k at the centre of mass, dk per metre of the lever axis, the tool tip’s travel per metre the centre of mass moves). The guide gives way sideways (lateral) and in tilt; a force at the distance h below it tilts it with the arm h, so the compliance at the centre of mass is 1 / lateral + h^2 / tilt, and the tool tip, h_tool below, moves k (1 / lateral + h h_tool / tilt) per metre of it. Both distances shrink as the lever axis travels: dk/dz = 2 k^2 h / tilt, the leaning axis’s own law (flex_at in its crate).
lean_reach
How far a point d below the carriage (above it where negative) is out sideways, per newton at the leaning body’s centre of mass h below the carriage (lean_reach of the crate without bending): the guide’s give 1 / lateral plus its tilt h d / tilt.
lean_rise
How far a point at distance d below the carriage rises as the leaning body is held out by a sideways force F at its centre of mass, h below the carriage, per F^2 (lean_rise of the crate with the guide’s tilt only: a hanging bar turned by theta is shortened by theta^2 / 2 per length, and theta = F h / tilt along the whole of it, so the rise is 1/2 d (h / tilt)^2; where h is negative nothing hangs below the carriage and only the length beyond counts).
lean_weight
The weight’s geometric stiffness of the lean, and its rate per metre of the lever axis: the body’s weight m g at its centre of mass rises by F^2 lean_rise as the spring’s force F = k u holds it out, V = m g F^2 r = 1/2 c u^2 with c = 2 k^2 m g r (the body hangs like a pendulum, c > 0 where its centre of mass is below the carriage). The rate is the central difference over 2e-6 m, as the crate has it. Both are 0 without gravity.
rise_coefficients
The tool tip’s rise as the body leans, rho = a(z) u^2 (rise_coefficients of the crate): the tip, tool_drop - z below the carriage, rises by k^2 lean_rise per u^2 (the leaning bar is shortened by theta^2 / 2 per length, with the spring’s force F = k u). Returns [a, da/dz, d2a/dz2] by central differences over 1e-4 m of the lever axis; zeros without one (a body that leans with no axis to rise along).
tip_slope
How the tool tip’s travel per metre of lean (flex_at) changes along the lever axis: [d tip / dz, d2 tip / dz2] by central differences over 1e-4 m (tip_slope of the crate); zeros without a lever axis. The process force’s sideways part works on tip(z) u, so it pushes on the lever axis with F tip’ u.
wrap
The angle (rad) by which the belt wraps wheel at, coming from wheel from and going on to wheel to: how far the belt’s direction turns round it, in the wheel’s sense, from 0 to a whole turn. For the shipped crates’ layouts this is mech::wrap_angle: half a turn less the lean of the two runs.