modelControlledTemperature

Control temperature of a resistor

Extends from Modelica.Icons.Example (Icon for runnable examples).

Information

A constant voltage of 10 V is applied to a temperature dependent resistor of 10*(1+(T-20C)/(235+20C)) Ohms, whose losses v**2/r are dissipated via a thermal conductance of 0.1 W/K to ambient temperature 20 degree C. The resistor is assumed to have a thermal capacity of 1 J/K, having ambient temperature at the beginning of the experiment. The temperature of this heating resistor is held by an OnOff controller at reference temperature within a given bandwidth +/- 1 K by switching on and off the voltage source. The reference temperature starts at 25 degree C and rises between t = 2 and 8 seconds linear to 50 degree C. An appropriate simulating time would be 10 seconds.

Parameters

TypeNameDefaultDescription
SI.TemperatureTAmb293.15Ambient temperature
SI.TemperatureDifferenceTDif2Error in temperature

Components

TypeNameDefaultDescription
SI.TemperatureTResresistor.T_heatPortResulting temperature
Modelica.Electrical.Analog.Basic.Groundground
Modelica.Electrical.Analog.Sources.ConstantVoltageconstantVoltage
HeatTransfer.Components.HeatCapacitorheatCapacitor
Modelica.Electrical.Analog.Basic.Resistorresistor
HeatTransfer.Sources.FixedTemperaturefixedTemperature
HeatTransfer.Celsius.TemperatureSensortemperatureSensor
HeatTransfer.Components.ThermalConductorthermalConductor
Modelica.Electrical.Analog.Ideal.IdealOpeningSwitchidealSwitch
Modelica.Blocks.Sources.Rampramp
Modelica.Blocks.Logical.OnOffControlleronOffController
Modelica.Blocks.Logical.NotlogicalNot