首页 > 解决方案 > 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 求解器的关系。

任何帮助表示赞赏。

标签: functionmatlabpdefinite-element-analysis

解决方案


推荐阅读