flickering lamp with visual effects in simulink

Hi,
I’m trying to simulate a lamp connected to an electrical system that suffers from flickering voltage in simulink. The lamp light should show flicker in a visual manner. Any idea’s if this is possible or how to go about it?
Please, assume here that lamp is a resistor therefore when the voltage changes the energy flowing in changes as and a result the light loses or gains intensity. So a simple way to regulate the intensity of a monocolored lamp in simulink should do nicely.
If you have more knowledge regarding this topic please answer the following question as well.
In a broader sense is there a way for example to simulate a tungsten filament lighting up or any other phenomenon, assuming you have the equations governing it (supposing you can solve it with finite element or what have you), with visual effects?
Cordially,
Omid

Answers (1)

It is possible to simulate an electrical system with flickering voltage in 1D in Simscape Electrical or even Simulink. To visualize you can use a Lamp where you can define different colours and set the simulation to be slow enough so that can make sense. A better way to visualize is to simulate the system and then post-process the signals and plot it in an animated way. There is not an out of the box solution and will require a bit of customization to get the visual effects you’re looking for.

Categories

Find more on Simulink in Help Center and File Exchange

Asked:

on 6 Feb 2021

Answered:

on 13 Jan 2025

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!