modelHeatingRod

Heating rod which converts electrical energy into heat with a given efficiency

Extends from AixLib.Fluid.Interfaces.TwoPortHeatMassExchanger.

Information

Model for a heating rod.

This model adds heat in the amount of Q_flow = u Q_flow_nominal to the medium. The input signal u and the nominal heat flow rate Q_flow_nominal can be positive or negative. A positive value of Q_flow means heating, and negative means cooling.

The outlet conditions at port_a are not affected by this model, other than for a possible pressure difference due to flow friction.

Optionally, this model can have a flow resistance. Set dp_nominal = 0 to disable the flow friction calculation.

For a model that uses as an input the fluid temperature leaving at port_b, use AixLib.Fluid.HeatExchangers.PrescribedOutlet

As output, the electrical energy required to supply Q_flow is calculated using the efficiency which is a parameter of the model.

Lastly, the number of times the heating rod switches on may be used as an output.

Limitations

This model does not affect the humidity of the air. Therefore, if used to cool air below the dew point temperature, the water mass fraction will not change.

Validation

The model has been validated against the analytical solution in the example AixLib.Fluid.HeatExchangers.Validation.HeaterCooler_u.

Parameters

TypeNameDefaultDescription
Modelica.Units.SI.HeatFlowRateQ_flow_nominalHeat flow rate at u=1, positive for heating
Modelica.Units.SI.VolumeVm_flow_nominal*tau/rho_defaultVolume of heat exchanger
RealetaEfficiency of the heating rod
Advanced › Diagnostics
Booleanuse_countNumSwitrueTurn the counting of the number of heating rod uses on or off.

Components

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealInputuControl input
Modelica.Blocks.Interfaces.RealOutputPelElectrical power used to provide current heat flow
Modelica.Blocks.Math.Gaingai_etaDivide efficiency
Modelica.Blocks.MathInteger.TriggeredAddtriggeredAddTo count on-off cycles
Modelica.Blocks.Sources.IntegerConstantintegerConstant
Modelica.Blocks.Interfaces.IntegerOutputnumSwiNumber of on switches
Modelica.Blocks.Logical.GreaterThresholdgreaterThreshold

Revisions

  • May 5, 2021, by Fabian Wuellhorst:
    Added model.
    This is for AixLib, #1092.