WOLFRAM SYSTEM MODELER
TemperatureStateEstimation |
![]() |
SystemModel["EducationExamples.ElectricalEngineering.TemperatureStateEstimation"]
This model analyzes the robustness of a state estimator, taking measurements from an electrical radiator. The state estimator blends together different measurements and a model of the system in order to estimate the current radiator temperature.
The model contains a small electric radiator that is powered by a 24V voltage source. The radiator element heats up the body of the radiator. The temperature of the radiator will also be affected by the ambient temperature, which will increase during the simulation. Three measurements are taken continuously: radiator voltage, ambient temperature and a direct measurement of the radiator temperature. Using the Modelica.Noise library, a white noise is added to each of the measurements. All noisy measurements are fed into a Kalman filter that estimates the radiator temperature.
Expectation value and standard deviation for the noise distributions can be changed by highlighting the noise sources and changing the mu and sigma parameters, respectively. The Kalman filter was created assuming the standard values for the noise distributions in the model are true. By increasing the noise or any other parameter in the model, you can see how robust the filter is to modeling errors.
To simulate the model, perform this step:
When first simulating the model, you will see the Temperature Estimation plots:
In the plot, the actual temperature is compared to the temperature estimated by the Kalman filter. In the top plot, the noisy measurements taken by the temperature sensor are also displayed.
The other available plots Ambient Temperature Measurement, Temperature Measurement and Voltage Signal focus on measurement, each showing the measured signal, the actual signal and the added noise.
![]() |
globalSeed |
Type: GlobalSeed |
---|---|---|
![]() |
temperatureMeasurementNoise |
Type: NormalNoise |
![]() |
voltageControlNoise |
Type: NormalNoise |
![]() |
voltageControlSignal |
Type: Constant |
![]() |
voltageControlInput |
Type: Sum |
![]() |
temperatureMeasurement |
Type: Sum |
![]() |
ambientTemperatureSignal |
Type: Ramp |
![]() |
ambientTemperatureMeasurementNoise |
Type: NormalNoise |
![]() |
ambientTemperatureMeasurement |
Type: Sum |
![]() |
stateEstimator |
Type: StateSpace |
![]() |
heatCapacitor |
Type: HeatCapacitor |
![]() |
heatingResistor |
Type: HeatingResistor |
![]() |
temperatureSensor |
Type: TemperatureSensor |
![]() |
thermalConductor |
Type: ThermalConductor |
![]() |
ground |
Type: Ground |
![]() |
signalVoltage |
Type: SignalVoltage |
![]() |
ambientTemperature |
Type: PrescribedTemperature |