# Thermal Conductivity varying with input temperature

조회 수: 12(최근 30일)
Aled 2020년 12월 6일
댓글: Aled 2020년 12월 9일
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)'}

댓글을 달려면 로그인하십시오.

### 답변(1개)

Juan Sagarduy 2020년 12월 8일
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표시숨기기 없음
Aled 2020년 12월 9일
Thanks Juan, the error is now gone :)

댓글을 달려면 로그인하십시오.

### Community Treasure Hunt

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

Start Hunting!
{"ft_lang_label":"__label__en","ft_lang_prob":0.80964273,"math_prob":0.9521946,"size":1465,"snap":"2022-05-2022-21","text_gpt3_token_len":404,"char_repetition_ratio":0.12457221,"word_repetition_ratio":0.016597511,"special_character_ratio":0.24300341,"punctuation_ratio":0.08362369,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.98597234,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-05-21T10:31:30Z\",\"WARC-Record-ID\":\"<urn:uuid:ec0b7782-8aae-4128-a4a5-816a3fe396da>\",\"Content-Length\":\"117728\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:f84a2ed5-c74e-46e7-bc5a-15af9fd3456a>\",\"WARC-Concurrent-To\":\"<urn:uuid:11718db8-d5af-4b58-9fe5-e9eb4529dda5>\",\"WARC-IP-Address\":\"23.1.9.244\",\"WARC-Target-URI\":\"https://kr.mathworks.com/matlabcentral/answers/683003-thermal-conductivity-varying-with-input-temperature\",\"WARC-Payload-Digest\":\"sha1:VL55JKWTVSEQGVGZFRIPCUU4SP3TZ3RA\",\"WARC-Block-Digest\":\"sha1:H4SOLWTVM2WVAIJZMH5HR6MOD6OPZNYW\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-21/CC-MAIN-2022-21_segments_1652662539049.32_warc_CC-MAIN-20220521080921-20220521110921-00592.warc.gz\"}"}