Thermal Conductivity varying with input temperature

3 vues (au cours des 30 derniers jours)
Aled
Aled le 6 Déc 2020
Commenté : Aled le 9 Déc 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)'}

Réponses (1)

Juan Sagarduy
Juan Sagarduy le 8 Déc 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
  1 commentaire
Aled
Aled le 9 Déc 2020
Thanks Juan, the error is now gone :)

Connectez-vous pour commenter.

Catégories

En savoir plus sur Elements dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by