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:
velocitycontrol: the velocity is imposed;forcecontrol: the velocity follows the motion of a virtual rigid body of mass \(M\), driven by a target force:
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_velocityincompute_forceafter the contact and inner bond operators (so that the particle forces are complete) and beforefreeze_particles/set_velocity. - The
regionofcompute_frame_velocitymust 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_velocitylimits 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:
Tension of a block of bonded polyhedra: bottom frame fixed, top frame driven by a force ramp along \(y\):
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: