Repository navigation
PHX Toolbox 2.1.0 (technical preview)
PHX 2.1 adds liquids, hollow shapes and compliant contacts, gives the
density to the body, and brings the points of soft and flexible bodies and
particle groups under one set of names. Contacts combine their frictions
differently: squaring every Friction gives the contacts of 2.0.
New
- phx.Liquid: a weakly compressible SPH liquid of particles (Spacing,
Density, SoundSpeed, Viscosity), drawn as its surface or as points,
filling a shape; Bounds removes particles that leave a box around it;
no limit on the number of particles - Hollow shapes phx.shape.SphereShell, CapsuleShell and BoxShell: tanks
and drums with a wall of WallThickness, solid from both sides, holding
bodies, particles and liquids; BoxShell with rounded inner edges - Compliant contacts: ContactStiffness and ContactDamping of phx.Body make
the contacts of a body spring-dampers along the normal (rubber pads,
tyres); getDiagnosticReport reports them apart (CompliantPenetration,
CompliantBodies) - phx.Body: Density and Volume; computeVolume of every shape;
FlexibleBody.Volume - Alpha of every shape: its opacity
- Soft and flexible bodies: initial Velocities; CurrentVertices and
CurrentVelocities also after the run - phx.Particles and phx.Liquid: Shape, Position and Orientation fill and
place the group; CurrentVertices and CurrentVelocities
Changed
- A contact combines the frictions of its bodies as the geometric mean
sqrt(mu1 mu2), no longer their product, and the restitutions as the
smaller one; squaring every Friction gives the contacts of 2.0 - The density belongs to the body: a Density given to a shape warns
(phx:Shape:densityMoved) and still reaches phx.Body and FlexibleBody;
writing Mass or Density scales the Inertia; Density and Mass together
are an error - Vertices and Velocities of soft and flexible bodies and particle groups
are in their own frame, Current* in the world; Positions of particle
groups is now Vertices, Damping of soft and flexible bodies is now
LinearDamping (the old names warn) - Accuracy diagnostics re-calibrated: no joint-residual warning and no
DiagnosticJointResidual property (JointResidual stays in the report);
DiagnosticJointGap 5 % and DiagnosticTravel 50 % of LengthScale - Faster flexible bodies (Newton step -20 to -70 %); a flexible body
hitting the ground fast no longer stalls the step - Small accelerations of fast bodies are kept (a flywheel braked by a
small torque slows down); disks and cylinders roll on their rim down
to about 2 deg
Examples
- New: balancewater, dambreak
- grip has rubber jaw pads, coaster compliant wheel treads
- Demos retuned for the new friction combine and the body density;
beltmaze, buoyancy, gears, noview, rocket, screwconv and soil no longer
start with bodies inside each other
Documentation
- Reference pages phx.Liquid and the three shells; user guide sections on
liquids, compliant contacts and the mass and density rules; upgrade
guide and skills updated