Heat Eq 2D stationary, cond+conv

  • Thread starter Thread starter phiz
  • Start date Start date
  • Tags Tags
    2d Heat
Click For Summary
SUMMARY

The discussion focuses on solving the stationary 2D heat equation with convection using Matlab, specifically within the domain defined by x:0:1 and y:0:1. The boundary condition is defined as u(x,1) = x(1-x) with all other boundaries set to zero. The user attempts to apply Fourier series for the solution but encounters instability, leading to an infinite solution as y approaches 1. The issue is identified as potentially stemming from incorrect Fourier coefficients.

PREREQUISITES
  • Understanding of the 2D heat equation and its boundary conditions
  • Familiarity with Fourier series and Fourier coefficients
  • Proficiency in Matlab for numerical simulations
  • Knowledge of convection terms in heat transfer equations
NEXT STEPS
  • Review the derivation of Fourier coefficients for boundary value problems
  • Learn about stability analysis in numerical solutions of PDEs
  • Explore Matlab's built-in functions for solving PDEs
  • Investigate the effects of convection on heat distribution in 2D systems
USEFUL FOR

Students and professionals in applied mathematics, engineering, and physics who are working on heat transfer problems, particularly those involving stationary conditions and convection in two-dimensional domains.

phiz
Messages
1
Reaction score
0

Homework Statement


Hi everybody, I'm trying to solve the heat eq. for a 2D problem which is stationary, and also includes convection. There is no heat source. I am using Matlab.


Homework Equations


domain: x:0:1, y:0:1

u(x,1) = x(1-x)
all other boundaries are 0


The Attempt at a Solution


X(x) = sin(k*pi*x/L)

%-- Fourier coefficients: might be wrong!
u0 = x*(1-x);
a = 2/L*int(u0*sin(kk*pi*x/L),x,0,L)
%--

Y(y) = (exp((y*(vy - (lambda*D^2 + vy^2)^(1/2))))-exp((y*(vy + (4*lambda*D^2 + vy^2)^(1/2)))))

lambda is ofcourse (k*pi/L)^2
(bc's give the exp(..vy+..) term a minus, which is already included in the equation above.

the problem is, that my solution is not stable. At y=0 I find u=0, which is correct, however when y increases towards its limit y=1, i find that the solution increases to infinity.



 
Physics news on Phys.org
I'm quite sure that I'm wrong with the Fourier coefficients, but I don't know how to solve it. Does anyone know how to solve this? Thanks in advance!
 

Similar threads

Replies
3
Views
2K
Replies
18
Views
2K
Replies
5
Views
1K
  • · Replies 4 ·
Replies
4
Views
1K
Replies
64
Views
6K
  • · Replies 9 ·
Replies
9
Views
3K
Replies
8
Views
1K
  • · Replies 29 ·
Replies
29
Views
10K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 11 ·
Replies
11
Views
2K