Heat equation given constant surface heat flux

Click For Summary

Discussion Overview

The discussion revolves around finding the temperature distribution in a thin square plate subjected to a constant surface heat flux on one side, with all other sides having zero heat flux. Participants explore various methods for modeling this scenario, including numerical approaches and analytical solutions, particularly during the initial milliseconds after the application of heat.

Discussion Character

  • Exploratory
  • Technical explanation
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • One participant suggests dividing the plate into small cubes for numerical calculations of heat flux and temperature changes, drawing an analogy to meteorological modeling.
  • Another participant expresses uncertainty about applying Kirchhoff's laws and seeks clarification on modeling Neumann boundary conditions, noting the prevalence of Dirichlet examples in existing literature.
  • Several participants propose treating the plate as a semi-infinite slab to simplify the analysis, emphasizing that heat penetration will be minimal during the short time frame of interest.
  • There are discussions about the backward Euler method and its convergence properties, with some participants debating the implications of time-step sizes on numerical stability.
  • One participant raises a concern about the accuracy of temperature predictions at the surface, given experimental observations of melting during friction, suggesting that the heat flux formula for the boundary needs further investigation.
  • Questions arise regarding the formulation of the matrix in finite difference equations when dealing with boundaries at infinity, with participants seeking clarification on notation and methodology.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the best approach to model the problem. Multiple competing views exist regarding the application of numerical methods, boundary conditions, and the appropriate analytical techniques to use.

Contextual Notes

Participants express limitations in their current understanding of boundary conditions and numerical methods, particularly in relation to the specific heat flux scenario presented. There are unresolved questions regarding the formulation of equations and the implications of different boundary conditions on temperature predictions.

Who May Find This Useful

This discussion may be of interest to those studying heat transfer, numerical methods in engineering, and anyone involved in modeling thermal processes in materials, particularly under transient conditions.

  • #31
Chestermiller said:
It should be (1+2λ, -2λ, 0, ...,0)

Chet
Is it not \begin{pmatrix}<br /> 1+2λ &amp; -λ &amp; 0 &amp; 0 &amp; ... &amp; 0\\<br /> \end{pmatrix}<br />? Also, could you please check this part of my code, please?
Code:
        int t_steps=600;
        double dt = 0.1;
        double dx = 0.01;
        int m=10;
        double L=dx*m;
      
        int q1=16500;
        int q2=0;
        double k=0.25;
        int alpha=8800000;
        double lambda=alpha*dt/Math.pow(dx,2);

        values_A[0][0]=1+2*lambda;
        values_A[0][1]=-lambda;       
        values_A[m+1][m+1]=1+2*lambda;
        values_A[m+1][m]=-lambda;
              
        for (int m_diag_index=1; m_diag_index<=m; m_diag_index++)
            {
                values_A[m_diag_index][m_diag_index]=1+2*lambda;
                values_A[m_diag_index][m_diag_index-1]=-lambda;               
                values_A[m_diag_index][m_diag_index+1]=-lambda;
            }

        for (double t=0; t<t_steps*dt; t=t+dt)
        {     
            x = A.solve(b);
            values_x = x.getArray();
          
            values_b = values_x;

            values_b[0][0]=values_b[1][0]+dx*q1/k;
            values_b[m+1][0]=values_b[m][0]+dx*q2/k

I'm asking because I get
Code:
x
T

0.0
660.0000000634616

0.01
6.346153846108459E-8

0.02
5.769230769195468E-8

0.03
5.1923076922824766E-8

0.04
4.615384615369485E-8

0.05
4.038461538456494E-8

0.06
3.461538461543504E-8

0.07
2.8846153846305132E-8

0.08
2.3076923077175224E-8

0.09
1.7307692308045316E-8

0.1
1.1538461538915409E-8
 
Physics news on Phys.org
  • #32
user4417 said:
Is it not \begin{pmatrix}<br /> 1+2λ &amp; -λ &amp; 0 &amp; 0 &amp; ... &amp; 0\\<br /> \end{pmatrix}<br />?
If you can't get the algebra right, I can't help you.
Also, could you please check this part of my code, please?
I don't check code.

Chet
 
  • #33
The elements in each row of the matrix must add up to 1. Try running the code with Q = 0 and see what you get if you use -λ instead of -2λ for the second element in the first row. With Q = 0, your calculation should yield no change in the temperature distribution if the initial temperature distribution is uniform.

Chet
 
  • #34
Chestermiller said:
The elements in each row of the matrix must add up to 1. Try running the code with Q = 0 and see what you get if you use -λ instead of -2λ for the second element in the first row. With Q = 0, your calculation should yield no change in the temperature distribution if the initial temperature distribution is uniform.

Chet
I don't understand why 2 lambdas needed instead of one. I mean it's all based on the same formulae as other rows, which use single lambda for n and n+1 (after n-1). In any case, results finally stabilized with this solution I don't understand. It seems incredible though, e.g. this is what I get for:
Code:
        int t_steps=2*6*10; // number of time steps
        double dt = 0.1; seconds
        double dx = 0.0001; // meters
        int m=30; // number of dx steps

(the thing seems to heat up much more than that, enough for melt-caused flaking of ptfe to occur)

x [m]
T [K]

0.0
316.3741934284825

1.0E-4
309.7741934284825

2.0E-4
309.7741934284825

3.0000000000000003E-4
309.7741934284825

4.0E-4
309.7741934284825

5.0E-4
309.7741934284825

6.000000000000001E-4
309.7741934284825

7.0E-4
309.7741934284825

8.0E-4
309.7741934284825

9.000000000000001E-4
309.7741934284825

0.001
309.7741934284825

0.0011
309.7741934284825

0.0012000000000000001
309.7741934284825

0.0013000000000000002
309.7741934284824

0.0014
309.7741934284824

0.0015
309.7741934284824

0.0016
309.7741934284824

0.0017000000000000001
309.7741934284824

0.0018000000000000002
309.7741934284824

0.0019
309.7741934284824

0.002
309.7741934284824

0.0021000000000000003
309.7741934284824

0.0022
309.7741934284824

0.0023
309.7741934284824

0.0024000000000000002
309.7741934284824

0.0025
309.7741934284824

0.0026000000000000003
309.7741934284824

0.0027
309.7741934284824

0.0028
309.7741934284824

0.0029000000000000002
309.7741934284824

0.003
309.7741934284824
 
Last edited:
  • #35
user4417 said:
I don't understand why 2 lambdas needed instead of one. I mean it's all based on the same formulae as other rows, which use single lambda for n and n+1 (after n-1). In any case, results finally stabilized with this solution I don't understand. It seems incredible though, e.g. this is what I get for:
Code:
        int t_steps=2*6*10; // number of time steps
        double dt = 0.1; seconds
        double dx = 0.0001; // meters
        int m=30; // number of dx steps

(the thing seems to heat up much more than that, enough for melt-caused flaking of ptfe to occur)
The finite difference equation for the flux that you wrote in post #29 is a one-sided difference approximation, and is only first order accurate in Δx. The central difference equation that I had written in an earlier post is a central difference approximation, and is second order accurate in Δx (i.e., much more accurate). For the central difference approximation, the elements are (1+2λ) and -2λ.

For the record, the correct difference equation at x = 0 for the central difference approximation to the heat flux should be:

$$(1+2λ)T_0^n-2λT_1^n=T_0^{n-1}+2λΔx\frac{Q}{k}$$

The numerical solution you presented in your previous post at the end of the first time step looks to me like the results of applying forward euler in time, not backward euler. I know this because all the temperatures should have changed significantly with backward euler, not just the temperature at the boundary.

Chet
 
  • #36
Chestermiller said:
The finite difference equation for the flux that you wrote in post #29 is a one-sided difference approximation, and is only first order accurate in Δx. The central difference equation that I had written in an earlier post is a central difference approximation, and is second order accurate in Δx (i.e., much more accurate). For the central difference approximation, the elements are (1+2λ) and -2λ.

For the record, the correct difference equation at x = 0 for the central difference approximation to the heat flux should be:

$$(1+2λ)T_0^n-2λT_1^n=T_0^{n-1}+2λΔx\frac{Q}{k}$$

The numerical solution you presented in your previous post at the end of the first time step looks to me like the results of applying forward euler in time, not backward euler. I know this because all the temperatures should have changed significantly with backward euler, not just the temperature at the boundary.

Chet
Thanks a lot for walking through this whole thing with me, I applaud your patience and keenness in helping people out with physics problems. I figured out what my problem was. I was using alpha as Cp * ro / k, when it is k / Cp / ro. I used backward Euler for both Neuman boundaries (and backward Euler for the equation itself) and results were very close, though not in line with experiemntal data, namely temp only rises to 175C degrees at the surface after 10-20s of constant rubbing, while it should be over 326.8C. The experiement conditions were weird though. Second boundary actually had a heat sink (metal case of valve), and the rubbing was periodic and not constant (by-hand closing).
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 23 ·
Replies
23
Views
6K
  • · Replies 34 ·
2
Replies
34
Views
6K
Replies
7
Views
2K
  • · Replies 3 ·
Replies
3
Views
5K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
4
Views
3K