Docs › Build a first case in each physics package › Solid mechanics
5.16 Solid mechanics
onesim.physics.solid_mechanics
LinearElasticity uses small-strain elasticity and an elastic material. FixedDisplacement, Traction, TractionFree and BodyForce describe supports and loads. Remove rigid-body modes through physical constraints and evaluate stress inside the domain. Use the cantilever for a force, deflection and mesh-refinement workflow. For thermal strain, couple a temperature field and set a stress-free reference. Inspect stress component ordering before selecting the first normal component or constructing an invariant.
For global dynamics, StructuralOscillator takes mass, stiffness, damping and force. MaxwellRelaxation evolves stress under a strain-rate input, FatigueCrackGrowth uses ParisLaw, HertzImpact uses HertzContactLaw, and CohesiveOpening uses BilinearCohesiveLaw. Initialize each law's state, follow its units and check the relevant quantity such as dissipated energy, contact force, crack length or traction versus opening. Use a resolved time step around rapid contact or softening. The vibration example in Chapter 2 gives a complete extraction and plotting pattern.