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
| Type | Name | Default | Description |
|---|---|---|---|
| SI.Temperature | TAmb | 293.15 | Ambient temperature |
| SI.TemperatureDifference | TDif | 2 | Error in temperature |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| SI.Temperature | TRes | resistor.T_heatPort | Resulting temperature |
| Modelica.Electrical.Analog.Basic.Ground | ground | ||
| Modelica.Electrical.Analog.Sources.ConstantVoltage | constantVoltage | ||
| HeatTransfer.Components.HeatCapacitor | heatCapacitor | ||
| Modelica.Electrical.Analog.Basic.Resistor | resistor | ||
| HeatTransfer.Sources.FixedTemperature | fixedTemperature | ||
| HeatTransfer.Celsius.TemperatureSensor | temperatureSensor | ||
| HeatTransfer.Components.ThermalConductor | thermalConductor | ||
| Modelica.Electrical.Analog.Ideal.IdealOpeningSwitch | idealSwitch | ||
| Modelica.Blocks.Sources.Ramp | ramp | ||
| Modelica.Blocks.Logical.OnOffController | onOffController | ||
| Modelica.Blocks.Logical.Not | logicalNot |