Skip to main content

ramp_to

Function ramp_to 

Source
pub fn ramp_to(
    analysis: &mut Analysis,
    node: NodeId,
    dof: usize,
    target: f64,
    step: f64,
    on_point: impl FnMut(f64, f64),
)
Expand description

Walks the controlled DOF from wherever it is to target in steps no larger than step, via repeated leg calls. Calls on_point after every leg with (displacement, load_factor) so callers can record a full trace, not just the endpoint.