piece wise function for thermal properties in PDE solver
显示 更早的评论
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
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Heat Transfer 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!