Mass

Mass moving in 1D space. In Laplace domain with \(s\in\mathbb C\):

\begin{equation*} f(s) = \frac{e(s)}{M\,s}. \end{equation*}

Mass

Mass moving in 1D space. In Laplace domain with \(s\in\mathbb C\):

\begin{equation*} f(s) = \frac{e(s)}{M\,s}. \end{equation*}

Power variables

flux: Velocity \(v\) (m/s)

effort: Force \(f\) (N)

Arguments

label : str
Mass label.
nodes : ('N1', 'N2')
Nodes associated with the component terminals with positive flux N1->N2.
parameters : keyword arguments
Component parameter.
Key Description Unit Default
M Mechanical mass kg 0.01

Usage

mass = Mass('mass', ('N1', 'N2'), M=0.01)

Netlist line

mechanics_dual.mass mass ('N1', 'N2'): M=0.01;

Example

>>> # Import dictionary
>>> from pyphs.dictionary import mechanics_dual
>>> # Define component label
>>> label = 'mass'
>>> # Define component nodes
>>> nodes = ('N1', 'N2')
>>> # Define component parameters
>>> parameters = {'M': 0.01,  # Mechanical mass (kg)
...              }
>>> # Instanciate component
>>> component = mechanics_dual.Mass(label, nodes, **parameters)
>>> # Graph dimensions
>>> len(component.nodes)
2
>>> len(component.edges)
1