How i can write transient condition in a pde thermal model?
3 次查看(过去 30 天)
显示 更早的评论
hi, i wolud like to know , about pde thermal model, how i can write internal heat source or bounday conditions that depends of space or time when they are with exponent.
for example , how i can write 2*t^2 using state.time ? and y^2 using region.y ?
is this correct?
handlename=@(region,state) region.y.^2 * 2 * region.state.^2
or is region.state.^region.state to express the dipendens of t^2
and how i can write when i have a function that depends just of space , usign always handle ?
best regards,
GS
0 个评论
回答(2 个)
Ravi Kumar
2020-1-30
Example: If you want to write y^2 - 2*t^2, you write:
handlename=@(region,state) region.y.^2 - 2 * state.time^2
Yes, if it depends on just space you still write a function handle that uses only region data:
Example: If you want to write 2*x^2+3*y^3, then you can write it as:
handlename=@(region,state) 2*region.x.^2 +3*region.y.^3
Regards,
Ravi
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!