piece wise function for thermal properties in PDE solver

21 ビュー (過去 30 日間)
Brant
Brant 2024 年 12 月 4 日 18:46
コメント済み: Brant 2024 年 12 月 5 日 1:05
Hello all,
I need to basically create a piece wise function for heat capacity (C) and thermal conductivity (k) to accomodate different material properties across a boundary. For example, if x and y is within certain limits, then k=a+bT^3, else k = c + dT^3. Similary for C. I tried simply using an if then statement, but matlab will pass all of the geometrical points of the meshgrid to evaulate C and k and writing a for loop increased the solution time to be unreasonable. I would appreciate any thoughts or guidance on the issue.
Thanks

採用された回答

Torsten
Torsten 2024 年 12 月 4 日 19:32
移動済み: Torsten 2024 年 12 月 4 日 19:32
When creating the geometry for your problem, I'd already take into account these two spatial regions where the different thermal properties apply. This way, you can separately apply different formulas to different RegionIDs for heat capacity and thermal conductivity.
  1 件のコメント
Brant
Brant 2024 年 12 月 5 日 1:05
That makes perfect sense! Thanks for the help

サインインしてコメントする。

その他の回答 (0 件)

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by