The FunctionalModels standard library


NOTE: Many of these components are unfinished or broken. These are mainly components that require events and support of discrete systems.


These components are available with FunctionalModels.Lib.

Normal usage is:

using FunctionalModels
using FunctionalModels.Lib

# modeling...

Library components include models for:

  • Electrical circuits
  • Heat transfer
  • Rotational mechanics

Most of the components mimic those in the Modelica Standard Library.

The main types for Unknowns and signals defined in FunctionalModels.Lib include:

Flow/through variableNode/across variableNode helper type
Electrical systemsCurrentVoltageElectricalNode
Heat transferHeatFlowTemperatureHeatPort
Mechanical rotationTorqueAngleFlange

ModelingToolkit does not have variable types, so Signal, ElectricalNode, HeatPort, and Flange are all aliases of Any, mainly to help with documentation of models.

Current, Voltage, HeatFlow, Temperature, Torque, and Angle are all helper functions that create variables with gensym.

Signal

ElectricalNode

HeatPort

Flange

Current

Voltage

HeatFlow

Temperature

Torque

Angle

AngularVelocity

AngularAcceleration