Partial Classes Describe Common Properties

1 Types from Modelica.SIunits

2 Electrical Connectors

3 Components

3.1 TwoPin

The class prefix partial is used to indicate that a class is incomplete such that it cannot be instatiated. The class TwoPin can be used to define our own Resistor, Capacitor, Inductor, Voltage source AC and Ground classes.

3.2 Resistor

3.3 Capacitor

3.4 Inductor

3.5 VsourceAC

3.6 Ground

4 SimpleCircuit

Based on these classes we can declare the Simple Circuit Model:

5 SimpleCircuit Simulation