opynsim.examples#
- opynsim.examples.double_pendulum_model() opynsim._core.Model#
Returns the equivalent of
opynsim.examples.double_pendulum_specification().compile().See
opynsim.examples.double_pendulum_specification()for a description of the double pendulum.
- opynsim.examples.double_pendulum_specification() opynsim._core.ModelSpecification#
Returns a
ModelSpecificationof a double pendulum.The specification is built entirely in-memory with no external data files, which makes it useful for debugging, example Python scripts, and documentation pages. The returned specification is designed to resemble the
double_pendulum.osim, which is available as an example file in OpenSim Creator .
- opynsim.examples.pendulum_model() opynsim._core.Model#
Returns the equivalent of
opynsim.examples.pendulum_specification().compile().See
opynsim.examples.pendulum_specification()for a description of the pendulum.
- opynsim.examples.pendulum_specification() opynsim._core.ModelSpecification#
Returns a
ModelSpecificationof a pendulum.The specification is built entirely in memory with no external data files, which makes it useful for debugging, example Python scripts, and documentation pages. The returned specification should be for a one kilogram mass suspended one meter away from a pin joint that is one meter above the ground. For visualization, the head is represented as a sphere with a radius of five centimeters and the suspension rod has a radius of five millimeters.