Skip to content

Rigid Frame

The compute_frame_velocity operator drives a group of particles (a frame, e.g. the loading plate of a mechanical test) as a single rigid body. For each component of the frame velocity, the user chooses between:

  • velocity control: the velocity is imposed;
  • force control: the velocity follows the motion of a virtual rigid body of mass \(M\), driven by a target force:
\[ M \frac{dv}{dt} = F_{target}(t) + F_{specimen} - c\, v \]

where \(F_{specimen}\) is the sum of the forces acting on the particles of the frame region (the force exerted by the sample on the frame), \(F_{target}\) is the force applied by the "machine" on the frame, and \(c\) is a viscous damping coefficient. The velocity is integrated with an explicit Euler scheme and the simulation time step.

The operator does not modify the particles: it only computes the frame_velocity slot. The velocity is then applied with the existing operators freeze_particles and set_velocity (with its value slot rebound to frame_velocity).

Parameters

Parameter Type Default Description
region ParticleRegionCSG required frame region, e.g. TOP or TOP or LEFT_UP
frame_mass double required virtual mass \(M\) of the frame (force-controlled components)
control_mode vector<string> [velocity, velocity, velocity] control mode of each component (x, y, z): velocity or force
imposed_velocity Vec3d [0,0,0] velocity of the velocity-controlled components
target_force Vec3d [0,0,0] force applied by the machine on the frame (force-controlled components)
force_ramp_start long 0 step at which the linear force ramp starts
force_ramp_steps long 0 number of steps of the linear ramp from 0 to target_force (0: full force at once)
frame_damping double 0 viscous damping coefficient \(c\)
frame_max_velocity double -1 cap on the absolute value of each force-controlled velocity component (≤ 0: no cap)
frame_log_frequency long 1000 prints the frame state (particles, target force, specimen force, velocity) every n steps (≤ 0: never)
frame_velocity Vec3d (in/out) current frame velocity: the state of the virtual body, shared by all the instances of the operator, which allows switching between loading stages without discontinuity
frame_force Vec3d (out) force exerted by the sample on the frame (\(F_{specimen}\))

Usage

  • Place compute_frame_velocity in compute_force after the contact and inner bond operators (so that the particle forces are complete) and before freeze_particles / set_velocity.
  • The region of compute_frame_velocity must contain all the regions frozen and moved with the frame. A region moved but not included in the sum of the forces is not in equilibrium with the frame.
  • The sign convention follows the forces: with a target force of \(+F\) along \(y\) on the top frame, the machine pulls the frame upward (tension); \(F_{specimen}\) is then negative.
  • After a sudden failure of the sample, a force-controlled frame accelerates freely. frame_max_velocity limits this runaway; it is a numerical device that should be reported when active.
  • Choosing \(M\) and \(c\): the frame and the sample behave as a mass-spring system of stiffness \(K\) (the sample stiffness). The period \(2\pi\sqrt{M/K}\) should be large compared to the time step, and \(c \approx 2\sqrt{K M}\) gives a critically damped response.

Examples

Compression of a sample by a force-controlled top frame, see example/spheres/impose_frame/movable_frame_force.msp:

particle_regions:
  - FRAME: { bounds: [ [ -5., -5., 19.0 ], [ 15., 15., 25. ] ] }

frame_box:
  - compute_frame_velocity:
      region: FRAME
      control_mode: [ velocity, velocity, force ]   # x, y, z
      target_force: [ 0., 0., -72. ]                # pushes the frame toward -z
      imposed_velocity: [ 0., 0., 0. ]
      frame_mass: 1.0
      frame_log_frequency: 1000
  - freeze_particles: { region: FRAME }
  - apply_frame_velocity:
      rebind: { value: frame_velocity }
      body:
        - set_velocity: { region: FRAME }

compute_force:
  - contact_singlemat_sphere_hooke_cohesive:
     ...
  - frame_box

Tension of a block of bonded polyhedra: bottom frame fixed, top frame driven by a force ramp along \(y\):

particle_regions:
  - BOT: { bounds: [ [ -5., -5., -5. ], [ 15.,  3., 10. ] ] }
  - TOP: { bounds: [ [ -5., 17., -5. ], [ 15., 25., 10. ] ] }

frame_traction:
  - compute_frame_velocity:
      region: TOP
      control_mode: [ velocity, force, velocity ]
      target_force: [ 0., 150., 0. ]
      force_ramp_start: 0
      force_ramp_steps: 100000
      frame_mass: 60.
      frame_damping: 3500.
      frame_max_velocity: 0.02
      frame_log_frequency: 200
  - freeze_particles: { region: TOP }
  - apply_frame_velocity:
      rebind: { value: frame_velocity }
      body:
        - set_velocity: { region: TOP }
  - freeze_particles: { region: BOT }

compute_force:
  - contact_multimat_polyhedron
  - inner_bond_polyhedron
  - frame_traction

A lateral force is first ramped up, then kept constant while an axial velocity is imposed. Both instances share the same frame_velocity state, and target_force / force_ramp_steps must be identical in both stages:

eval_stage:
  rebind: { result: stage1 }
  body:
    - before_timestep: { end_at: 72000 }

frame_stage1:
  condition: stage1
  body:
    - compute_frame_velocity:
        region: TOP or LEFT_UP
        control_mode: [ force, force, velocity ]
        target_force: [ 585., 0., 0. ]
        force_ramp_steps: 52000
        frame_mass: 60.
        frame_damping: 7000.
        frame_max_velocity: 0.02

frame_stage2:
  condition: not stage1
  body:
    - compute_frame_velocity:
        region: TOP or LEFT_UP
        control_mode: [ force, velocity, velocity ]
        target_force: [ 585., 0., 0. ]
        imposed_velocity: [ 0., 0.002, 0. ]
        force_ramp_steps: 52000
        frame_mass: 60.
        frame_damping: 7000.
        frame_max_velocity: 0.02

frame_loading:
  - eval_stage
  - frame_stage1
  - frame_stage2
  - freeze_particles: { region: TOP or LEFT_UP }
  - apply_frame_velocity:
      rebind: { value: frame_velocity }
      body:
        - set_velocity: { region: TOP or LEFT_UP }