求助:fluent传热问题
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了求助:fluent传热问题相关的知识,希望对你有一定的参考价值。
局部截图,两个方管,通入蒸汽,设置入口、出口压力,两方管中间壁、两侧、底面绝热。蒸汽强制对流热量传递到上表面,上表面的边界条件及其他方面应该怎样设置,才能相互传递热量,消除温差。请详细讲讲!!!
参考技术A在fluent中设壁面wall的边界条件时,有一个壁面厚度选项,填入壁厚。
如图所示。然后再左下方的材料选项里选择适当的壁面材料即可。
如果想再壁面的两侧都发生传热,需要在thermal condition选项里选择mixed,然后具体的操作按提示的给定参数。祝好运。
matlab编写的流体计算和传热
% Twodimensional heat conduction
% Finite Volume Method
% SOR
clear all;
x=[];y=[];T=[];Told=[];Su=[];Sp=[];ap=[];ae=[];aw=[];as=[];an=[];
great = 1.e20;
lambda = 10; % thermal conductivity
alfa = 10; % heat transfer coefficient
dt = great; % Time step. If great stedy state
density = 6000;% density
cp = 500;% heat capacity
Lx = 0.12; % length x-direction
Ly = 0.12; % length y -direction
Tfluid = 20; % Fluid temperature
Tinit = 50; % Initial guess and top- and bottom tempearature
%cv_x = input('Number of CVs in x-direction = ')
%cv_y = input('Number of CVs in y-direction = ')
cv_x=10;cv_y=10;
ni = cv_x+2; % grid points x-direction
nj = cv_y+2; % grid points y-direction
dx = Lx/cv_x;
dy = Ly/cv_y;
x(1) = 0;
x(2)=dx/2;
for i = 3:ni-1
x(i)=x(i-1)+dx;
end;
x(ni)=Lx;
y(1) = 0;
y(2)=dy/2;
for j = 3:nj-1
y(j)=y(j-1)+dy;
end
y(nj)=Ly;
% Initial values and coefficients
for i = 1:ni
for j = 1:nj
T(i,j) = Tinit; %Initial temperature
Told(i,j) = Tinit;
T(i,1) = 50;
T(i,nj) = 50;
Su(i,j)=0; %Initial indendendent source term
Sp(i,j)=0; %Initial dependent source term
ae(i,j) = lambda*dy/dx;
aw(i,j) = lambda*dy/dx;
an(i,j) = lambda*dx/dy;
as(i,j) = lambda*dx/dy;
dV = dx*dy;
ap0 = density*cp*dV/dt;
if i==2 % convective heat transfer boundary
Su(i,j) = Tfluid/(1/alfa+dx/(2*lambda))*dy/dV;
Sp(i,j) = -1/(1/alfa+dx/(2*lambda))*dy/dV;
aw(i,j) = 0;
end;
if i==ni-1 % insulated boundary
ae(i,j) = 0;
end
if j==2 % bottom boundary, given temperature
as(i,j)=2*lambda*dx/dy;
end
if j==nj-1 % top boundary, given temperature
an(i,j)=2*lambda*dx/dy;
end
ap(i,j) = ae(i,j)+aw(i,j)+an(i,j)+as(i,j)-Sp(i,j)*dV+ap0;
end;
end;
%%%%%%%%%%%
maxres = 1.0e-6;
maxit = 100;
time=0;
maxtime=100;
s=(cos(pi/cv_x)+(dx/dy)^2*cos(pi/cv_y))/(1+(dx/dy)^2);
omega =2/(1+sqrt(1-s^2));omega=1;
while (time < (maxtime+dt/2))
Told=T;
sumres = 1;
counter = 0;
while (sumres>maxres&counter<maxit)
sumres = 0;
for i = 2:ni-1
for j = 2:nj-1
T(i,j)=omega*(ae(i,j)*T(i+1,j)+aw(i,j)*T(i-1,j)+an(i,j)*T(i,j+1)...
+as(i,j)*T(i,j-1)+Su(i,j)*dV+ap0*Told(i,j))/ap(i,j)+(1-omega)*T(i,j);
res = abs(ap(i,j)*T(i,j)-(ae(i,j)*T(i+1,j)+aw(i,j)*T(i-1,j)+...
an(i,j)*T(i,j+1)+as(i,j)*T(i,j-1)+Su(i,j)*dV+ap0*Told(i,j)));
sumres=sumres+res;
end;
end;
for i = 2:ni-1
for j = 2:nj-1
res = abs(ap(i,j)*T(i,j)-(ae(i,j)*T(i+1,j)+aw(i,j)*T(i-1,j)+...
an(i,j)*T(i,j+1)+as(i,j)*T(i,j-1)+Su(i,j)*dV+ap0*Told(i,j)));
sumres=sumres+res;
end;
end
sumerr=sumres
counter = counter + 1
end;
time = time +dt;
end;
% Calculate boundary values
for j = 2:nj-1
T(1,j)=(alfa*Tfluid+lambda/(dx/2)*T(2,j))/(alfa+lambda/(dx/2));
T(ni,j) = T(ni-1,j);
end;
%
pcolor(x,y,T');shading interp;xlabel('x');ylabel('y');title('Temperature distribution');colorbar;
%
D144
以上是关于求助:fluent传热问题的主要内容,如果未能解决你的问题,请参考以下文章
用FLUENT对换热管进行流动与传热模拟之后,怎样得到传热系数、场协同角等一系列的数值