Stiffness

Linear stiffness between two points in a 1D space. In Laplace domain with \(s\in\mathbb C\):

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

Stiffness

Linear stiffness between two points in a 1D space. In Laplace domain with \(s\in\mathbb C\):

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

Power variables

flux: Force \(f\) (N)

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

Arguments

label : str
Stiffness label.
nodes : ('P1', 'P2')
Mechanical points associated with the stiffness endpoints with positive flux P1->P2.
parameters : keyword arguments
Component parameter.
Key Description Unit Default
K Mechanical stiffness N/m 1000.0

Usage

stiff = Stiffness('stiff', ('P1', 'P2'), K=1000.0)

Netlist line

mechanics.stiffness stiff ('P1', 'P2'): K=1000.0;

Example

>>> # Import dictionary
>>> from pyphs.dictionary import mechanics
>>> # Define component label
>>> label = 'stiff'
>>> # Define component nodes
>>> nodes = ('P1', 'P2')
>>> # Define component parameters
>>> parameters = {'K': 1000.0,  # Mechanical stiffness (N/m)
...              }
>>> # Instanciate component
>>> component = mechanics.Stiffness(label, nodes, **parameters)
>>> # Graph dimensions
>>> len(component.nodes)
2
>>> len(component.edges)
1