Solving PDE Heat Equation with Non-Homogeneous Boundary Conditions

  • Thread starter member 428835
  • Start date
  • Tags
    Heat Pde
But I'm curious about your method--I've never seen/heard of/used it before...In summary, the conversation discusses different methods to solve a PDE with given boundary conditions and initial conditions. One method involves finding the eigenfunctions of the Laplace operator and writing the solution as a series in these functions. Another method involves expressing the solution as the sum of two other solutions, one satisfying the PDE and initial condition with no generation term, and the other satisfying the PDE with the generation term but with no initial condition. The conversation also discusses a trick to solve for the heat flux rather than the solution itself.
  • #1
member 428835

Homework Statement


$$u_t = ku_{xx} + \sin(2 \pi x / L)$$
$$u_x(0,t) = u_x(L,t) = 0$$
$$u(x,0) = f(x)$$

Homework Equations


none (other than the obvious)

The Attempt at a Solution


So i started by taking letting ##ku_E''(x) =- \sin(2 \pi x / L)## (notice from the boundary conditions above I cannot uniquely determine ##u_E(x)##). Anyways, let ##v(x,t) = u(x,t) - u_e(x)##. This way we make the heat eq without sources. When I do this my boundary conditions become ##v_x(0,t) = -u_E'(0) = v_x(L,t)##. Oddly enough, ##u_E'(0) = -L/(2 \pi k)## (after solving for ##u_E(x)## from above). Now I don't have homogenous boundary conditions. So I continued by defining a new function ##w(x,t) = v(x,t) - v_E(x) : v_E(x) = L/(2 \pi k) x## (again, I can't solve uniquely for ##v_E(x)##). Am i doing this right so far?

Please help!
 
Physics news on Phys.org
  • #2
You are not going to be able to remove the inhomogeneities from both PDE and BC in that manner (simply because the inhomogeneity does not fulfill the BC). I suggest expanding any function as a series in a suitable basis.
 
  • #3
Orodruin said:
I suggest expanding any function as a series in a suitable basis.
could you give me an example of what you're talking about here?
 
  • #4
Based on the problem you are trying to solve, I would say you are familiar with Fourier series, yes?
 
  • #5
Yep, I'm pretty comfortable with them. Why?
 
  • #6
Make an expansion with the sine term?
 
  • #7
Make an expansion with functions that satisfy the boundary conditions. The sine term does not and so will have to be expanded in these functions as well.

Edit: A good start is to solve the eigenvalue problem ##-f_{xx}(x) = \lambda f(x)## with boundary conditions ##f_x(0) = f_x(L) = 0##.
 
  • #8
Ok, so are you suggesting first make the PDE heat equation with no sources (which makes the BC non-homogenous) and then take the solution to the non-homogenous BC's and make that a series?

So in essence, take ##v_{xx} = 0## which implies ##v=ax + b## and turn this into a Fourier series (after they satisfy the BC)?
 
  • #9
I suggest you look at the edit of my previous post. This will give you the eigenfunctions of the ##-\partial_x^2## operator with the given boundary conditions. You can then make an expansion in these functions, i.e., write any function of ##x## in terms of them (if the functions depends on other parameters, the expansion coefficients will depend on these).
 
  • #10
Sorry, I didn't see your edit. But how do we arrive at your edit? It seems you're using both the heat eq with no sources AND homogenous BC...
 
  • #11
It is only a matter of finding the eigenfunctions of the (in this case 1-dimensional) Laplace operator. Since it is a Sturm-Liouville operator, its eigenfunctions will form an orthogonal basis for the functional space in which your solution must be. So far it has nothing to do with the heat equation other than the heat equation containing this differential operator. The magic is going to happen when you write down the solution as a series in the eigenfunctions.
 
  • #12
hmmmm, I'll get to work on it and tell you what I get! thanks!
 
  • #13
Just a word of forewarning: You should end up with an infinite set of ODEs. However, these can be solved on a general basis and the solutions introduced into the solution to the full problem.
 
  • Like
Likes member 428835
  • #14
Cool, I think I have a solution. I'd post it but its so long...but thanks for the help!
 
  • #15
So without going further into detail, you should be able to check that it is a solution by simply inserting it into the original PDE.

If you would not mind posting the solution (or at least the main steps and ideas), it would make it possible to check that what you got makes sense.
 
  • #16
I would approach this problem by an entirely different method.

Let u be expressed as the linear sum of two other solutions:

u = u1+u2

where u1 satisfies the PDE and initial condition, but with the generation term equal to zero, and u2 satisfies the PDE with the generation term present, but with the initial condition equal to zero. The solution for u1 is easy to obtain. First get the solution for u1 at long times. Then you will see how to get the rest of the solution.

At long times the solution for u2 will approach a function of x. Find that solution, and then get back with me.

Another trick to aid in solving this problem is to take the partial derivative of the PDE and initial condition with respect to x, and then solve for the partial derivative of u with respect to x (or equivalently the heat flux q) rather than u itself. Then the heat flux can be integrated to get u.

Chet
 
Last edited:
  • Like
Likes member 428835
  • #17
Chestermiller said:
I would approach this problem by an entirely different method.

Let u be expressed as the linear sum of two other solutions:

u = u1+u2

where u1 satisfies the PDE and initial condition, but with the generation term equal to zero, and u2 satisfies the PDE with the generation term present, but with the initial condition equal to zero. The solution for u1 is easy to obtain. First get the solution for u1 at long times. Then you will see how to get the rest of the solution.

At long times the solution for u2 will approach a function of x. Find that solution, and then get back with me.

Another trick to aid in solving this problem is to take the partial derivative of the PDE and initial condition with respect to x, and then solve for the partial derivative of u with respect to x (or equivalently the heat flux q) rather than u itself. Then the heat flux can be integrated to get u.

Chet

With your first suggestion, how do you get rid of the nagging constant that results from finding the equilibrium solution to the pde with generation term? Also, with your second suggestion, don't you have to assume that the solution is [itex]C^2[/itex] and that [itex]f(x)[/itex] is differentiable?

I think the series solution method is much less convoluted.
 
  • #18
It is essentially equivalent to the series solution, the difference is when you chose to split the inhomogeneities. The ODEs resulting from expansion will have the same inhomogeneities as the original PDE and will be solved by a superposition of a particular and a homogeneous solution. Even if splitting the PDE into two, those two will have to be solved, which can be done by series expansion.

Taking the derivative is perfectly fine. You should simply consider the equation to be a PDE for distributions rather than functions. There will be many physical situations which can be idealized to situations described better by distributions, e.g., point sources, dipoles, etc.
 
  • #19
exclamationmarkX10 said:
With your first suggestion, how do you get rid of the nagging constant that results from finding the equilibrium solution to the pde with generation term?
No problem. What do you get if you integrate the differential equation from x = 0 to x = L, subject to the two boundary conditions?

Also, with your second suggestion, don't you have to assume that the solution is [itex]C^2[/itex] and that [itex]f(x)[/itex] is differentiable?
No. Plus, how do you know it's not.
I think the series solution method is much less convoluted.
As a guy with a lot of heat transfer experience, I guarantee the method I'm suggesting is much easier.

Chet
 
  • #20
Chestermiller said:
No problem. What do you get if you integrate the differential equation from x = 0 to x = L, subject to the two boundary conditions?No. Plus, how do you know it's not.

As a guy with a lot of heat transfer experience, I guarantee the method I'm suggesting is much easier.

Chet

Orodruin said:
It is essentially equivalent to the series solution, the difference is when you chose to split the inhomogeneities. The ODEs resulting from expansion will have the same inhomogeneities as the original PDE and will be solved by a superposition of a particular and a homogeneous solution. Even if splitting the PDE into two, those two will have to be solved, which can be done by series expansion.

Taking the derivative is perfectly fine. You should simply consider the equation to be a PDE for distributions rather than functions. There will be many physical situations which can be idealized to situations described better by distributions, e.g., point sources, dipoles, etc.

Thanks for clearing that up.
 
  • #21
Sorry guys, I've been super busy! I'll post when I get time to type it all in! Thanks for being patient.
 

FAQ: Solving PDE Heat Equation with Non-Homogeneous Boundary Conditions

What is the PDE Heat Equation?

The PDE Heat Equation is a mathematical model that describes the flow of heat in a given system. It is commonly used in physics and engineering to study the distribution of heat in various materials.

What are Non-Homogeneous Boundary Conditions?

Non-Homogeneous Boundary Conditions are boundary conditions that are not constant or equal to zero. They can vary depending on the specific problem being solved and can greatly affect the solution of the PDE Heat Equation.

How do you solve the PDE Heat Equation with Non-Homogeneous Boundary Conditions?

To solve the PDE Heat Equation with Non-Homogeneous Boundary Conditions, you can use various techniques such as separation of variables, Laplace transforms, or numerical methods like finite difference or finite element methods. The specific method used will depend on the complexity of the problem and the available resources.

What are some real-world applications of solving the PDE Heat Equation with Non-Homogeneous Boundary Conditions?

The PDE Heat Equation with Non-Homogeneous Boundary Conditions has many real-world applications, including modeling heat transfer in buildings, predicting the spread of diseases, and understanding the behavior of materials in extreme environments. It is also used in various industries such as aerospace, automotive, and electronics for design and analysis purposes.

What are some challenges when solving the PDE Heat Equation with Non-Homogeneous Boundary Conditions?

Solving the PDE Heat Equation with Non-Homogeneous Boundary Conditions can be challenging due to the complexity of the equation and the need for accurate boundary conditions. The solution may also be sensitive to changes in initial and boundary conditions, making it difficult to predict. Additionally, the use of numerical methods can introduce errors and require significant computational resources.

Similar threads

Back
Top