Thermal Conductivity varying with input temperature

2 Ansichten (letzte 30 Tage)
Aled
Aled am 6 Dez. 2020
Kommentiert: Aled am 9 Dez. 2020
Hi all,
I'm trying to create a thermal conduction block to use in a simscape model for a cylindrical pipe, therefore the fourier law equation will be in cylindrical and not for a flat plate. I also want to use the input temperature at port A to calculate thermal conductivity from an equation based on the material properties.
The block has been modified from simscape standard 'branch' and 'conduction' models.
I have put the thermal conductivity 'th_cond' as a variable and an equation has been used to calculate the thermal conductivity.
When i try and build the simscape library usin the 'ssc_build' command i get the following error. Any help would be appreciated
Failed to generate 'pipe_model_lib'
Caused by:
Error using pipe_model.conductionpipe_SSteel>equations (line 32)
Type mismatch for equation. The left hand side of the equation is {[1x1 double],
'W/(m*K)'} and the right hand side of the equation is 35.
th_cond = {[1x1 double], 'W/(m*K)'}

Antworten (1)

Juan Sagarduy
Juan Sagarduy am 8 Dez. 2020
Hi Alex
An easy way to solve this by defining the equation: th_cond == a+b*T1.
Parameters a and b shall be defined with a consistent unit: a[mW/(m*K)] and b[mW/(m*K^2)].
Then it should be alright. You can even make a and b protected parameters.
Br Juan

Kategorien

Mehr zu Two-Phase Fluid Library finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by