|
MBSE
|
MBSE allows users to define mechanisms by means of a human-friendly YAML file.
Example: mechanisms/fourbars1-with-rel-angle.yaml
Prototype file structure:
%YAML 1.2
---
# Optional top comment section.
#
# Define points (mandatory)
points:
# 0 (="A")
- {x: 0, y: 0, fixed: true}
# 1
# ...
# Define bodies (mandatory)
planar_bodies:
# 0
- points: [0, 1]
# ...
# Relative coordinates (Optional section)
relative_coordinates:
# 0
- type: RelativeAngleAbsoluteDOF
Required sections are:
points: one entry per defined "point", both moving and fixed ones.planar_bodies: each planar body is defined by means of exactly two points. Length, mass, inertia with respect to the first point (I0), and center of gravity (cog) must be also specified, possibly using equations that get evaluated (in that order) substituting these variables:index: 0-based index of the body,length: the length. You can use auto to compute length automatically from the distance |pt(1)-pt(0)|.mass: The mass.I0: The inertia.Usage: