VirtualFCS.Fluid.ElectricCompressor

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);
QuantityDescription
powerThe power consumed by the Compressor

Parameters

NameTypeUnitDefaultDescription
useHeatPortBoolean1false= true, if heatPort is enabled (inherited)
TModelica.Units.SI.TemperatureK293.15Fixed device temperature if useHeatPort = false (inherited)

Interfaces and Connections

NameKindTypeUnitDescription
heatPortConnectionModelica.Thermal.HeatTransfer.Interfaces.HeatPort_aK; WOptional port to which dissipated losses are transported in form of heat
port_aConnectionModelica.Fluid.Interfaces.FluidPort_aPa; kg/s; J/kg-
port_bConnectionModelica.Fluid.Interfaces.FluidPort_bPa; kg/s; J/kg-
pin_pConnectionModelica.Electrical.Analog.Interfaces.PositivePinV; APositive electrical terminal
pin_nConnectionModelica.Electrical.Analog.Interfaces.NegativePinV; ANegative electrical terminal
set_mass_flowInput signalModelica.Blocks.Interfaces.RealInput--