function - MATLAB PDE Modeler 区域和状态
问题描述
我试图理解这个接受地区和州的功能。这个问题是制动器传热的一个例子。这是来自 pde 建模器,所以我试图具体了解什么是占位符“区域和状态”以及它们如何与 pde 求解器交互。
功能码是获取制动转子(圆)上不同点的热通量:
function F = movingHeatSource(region,state)
% Parameters ---------
R = 0.115; % Distance from center of disc to center of braking pad
r = 0.025; % Radius of braking pad
xc = 0.15; % x-coordinate of center of disc
yc = 0.15; % y-coordinate of center of disc
T = 0.05; % Period of 1 revolution of disc
power = 35000; % Braking power in watts
Tambient = 30; % Ambient temperature (for convection)
h = 10; % Convection heat transfer coefficient in W/m^2*K
%--------------------
theta = 2*pi/T*state.time;
xs = xc + R*cos(theta);
ys = yc + R*sin(theta);
x = region.x;
y = region.y;
F = h*(Tambient - state.u); % Convection
if isnan(state.time)
F = nan(1,numel(x));
end
idx = (x - xs).^2 + (y - ys).^2 <= r^2;
F(1,idx) = 0.5*power/(pi*r.^2); % 0.5 because there are 2 faces
end
我想弄清楚 state.time、state.u 和 region.x/y 到底是什么以及它与 pde 求解器的关系。
任何帮助表示赞赏。
解决方案
推荐阅读
- grid - 从数据网格视图中选择行并选择
- amd - SystemJS:命名的 AMD 模块有时有空的默认值
- r - 使用 group_by 时不支持的类型
- java - Mongodb Query, search array elements inside document grouping by and counting each element
- maven - JaCoCo 报道缺失
- mysql - 以 1 分钟间隔更新日期和时间序列 MYSQL
- python - 如何将来自大学记分卡 API 的 JSON 数据解析为 HTML 文件?
- linux - 解释这个 bash 重定向行为
- php - 如何更改 App Engine 中的最大和最小延迟?
- javascript - 过滤数据然后显示路径的搜索框?