NonlinearConfigSpring – Nonlinear spring acting on a configuration variable¶
Like ConfigSpring which creates a spring
force directly on a generalized coordinate, a NonlinearConfigSpring
implements a force, \(F_{q}\) on a generalized coordinate which can be a function of configuration:
\[F_{q} = -f (m\cdot q+b)\]
where \(f\) is a spline function provided by the user, \(m\) is a linear scaling factor, and \(b\) is an offset value.
Implemented Calculations¶ Calculation Implemented V N V_dq Y V_dqdq Y V_dqdqdq Y
NonlinearConfigSpring Objects¶
-
class
trep.potentials.NonlinearConfigSpring(system, config, spline[, m=1.0, b=0.0, name=None])¶ Create a new nonlinear spring acting on the specified configuration variable. The configuration variable must already exist in the system.
-
NonlinearConfigSpring.config¶ The configuration variable that spring depends and acts on.
(read only)
-
NonlinearConfigSpring.spline¶ A
Splineobject relating the configuration to force. See thetrep.Splinedocumentation to create a spline object.
-
NonlinearConfigSpring.m¶ A linear scaling factor on the configuration.
-
NonlinearConfigSpring.b¶ An offset factor on the scaled configuration.