# Simulink Model for ohmic heating in a resistor

29 visualizzazioni (ultimi 30 giorni)
Mukti Chaturvedi il 16 Lug 2022
Commentato: Mukti Chaturvedi il 27 Lug 2022
I need to model temperature rise of a resistor due to joule heating with a variable supply or a variable resistor. Is there a simulink component that can be used for this or it has to be implemented with the physical equations fed into block diagrams?
Can someone help give an idea of how this can be modeled?
##### 0 CommentiMostra -2 commenti meno recentiNascondi -2 commenti meno recenti

Accedi per commentare.

### Risposta accettata

David John il 18 Lug 2022
Have a look at the Variable Resistor and Thermal Resistor blocks. The source code should be available for both of these blocks.
If you start from the Thermal Resistor source code, you can simply change R from being a parameter to being an input:
inputs
R = { 0.0, 'Ohm' }; % R:left
end
##### 12 CommentiMostra 10 commenti meno recentiNascondi 10 commenti meno recenti
David John il 26 Lug 2022
Modificato: David John il 26 Lug 2022
If you are making a custom block, change the line "intermediates (Access=private, ExternalAccess=none)" to "intermediates (Access=private, ExternalAccess=observe)", and then R will appear in the simlog.
Or simply extract i, p.v and n.v from the simlog and plot (p.v-n.v)./i against T.
Mukti Chaturvedi il 27 Lug 2022
Thanks you for all the help. I have tried getting a plot wrt time and also resistance wrt Temperature. Attached the model with the plot options. Supply voltage is now given as 70V.
Now, please suggest how can a temperature check be included in a way so that when temperature exceeds 1000 degree C, then supply voltage has to be changed to 100 V for 0.02s.
I am not aware of MATLAB coding, but stil,can a source code of this model be generated?

Accedi per commentare.

### Categorie

Scopri di più su Elements in Help Center e File Exchange

### Community Treasure Hunt

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

Start Hunting!

Translated by