Model Description and References
This is an implementation of an electric compressor assembly. The unit contains a compressor driven by a DC motor, voltage-controlled by a converter, which is in turn manipulated by a PI controller that attempts to match the reference flow to the inlet flow.
Note that the unit has an internal controller (by default PI) that needs to be properly tuned to the problem.
Bad tuning will often show up as high-frequency oscillations in the controller output, which will slow down simulation; detune the controller gain in that case.
Governing Equations
power = (pin_p.v - pin_n.v)*(pin_p.i);
| Quantity | Description |
power | The power consumed by the Compressor |
Parameters
| Name | Type | Unit | Default | Description |
useHeatPort | Boolean | 1 | false | = true, if heatPort is enabled (inherited) |
T | Modelica.Units.SI.Temperature | K | 293.15 | Fixed device temperature if useHeatPort = false (inherited) |
Interfaces and Connections
| Name | Kind | Type | Unit | Description |
heatPort | Connection | Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_a | K; W | Optional port to which dissipated losses are transported in form of heat |
port_a | Connection | Modelica.Fluid.Interfaces.FluidPort_a | Pa; kg/s; J/kg | - |
port_b | Connection | Modelica.Fluid.Interfaces.FluidPort_b | Pa; kg/s; J/kg | - |
pin_p | Connection | Modelica.Electrical.Analog.Interfaces.PositivePin | V; A | Positive electrical terminal |
pin_n | Connection | Modelica.Electrical.Analog.Interfaces.NegativePin | V; A | Negative electrical terminal |
set_mass_flow | Input signal | Modelica.Blocks.Interfaces.RealInput | - | - |