Solving PDEPE without boundary conditions? heat transfer

In summary, the conversation discusses the use of the pdepe function in Matlab to solve a system of partial differential equations in both time and space domains. The system represents a solar thermal panel with three layers: an absorber plate, a fluid layer, and a back insulation layer. The conversation also touches on assumptions made in the model, such as a 1D representation and neglecting temperature variations within each layer. The main focus of the conversation is on defining boundary conditions and initial conditions for the system, as well as addressing potential instability issues at the boundaries. The conversation concludes with a summary of the PDE, boundary conditions, and initial values used in the problem.
  • #1
kattagiulio
2
0
Hi all!

I am trying to solve a system of partial differential equations in Matlab, with both derivatives in time and space domains. I am using the pdepe function for that.

The system is, to be simple, a sort of solar thermal panel, made of three layers: an absorber plate, a fluid layer of running water and a back insulation layer. each of these layers is represented by a differential equation. Of course, many assumptions are implicit in the model, e.g. the model is here considered 1D (no edge effects...), the temperature disuniformity inside each layer is neglected ecc.

I'd like to describe the profile of the water temperature, giving a constant mass flow rate, a constant inlet temperature, variable forcing boundary conditions such as solar radiation, the initial conditions for the three layers etc.

In the first simulation, I just assume that solar radiation is constant and, starting at time t=0, it heats up the absorber while the circulating water removes the heat.

Here my questions:

1 Matlab_pdepe asks me to define boundary conditions also on the "right side" (outlet of the solar panel), which is actually unknown!

2 The results shows that in correspondence of the boundaries, the profile gets unstable. This does not change significantly with the mesh size nor with the integration time span. Please consider that the left boundary condition of the absorber plate is fixed by the heat balance with the water inlet temperature and the ambient temperature, both supposed constant.

Any idea or request for further explanations will be welcome :) :) :)

Thank you in advance

Giulio
 
Physics news on Phys.org
  • #2
kattagiulio said:
1 Matlab_pdepe asks me to define boundary conditions also on the "right side" (outlet of the solar panel), which is actually unknown!

It will help if you write out your PDE, boundary conditions, and initial value that you intend to use. Keep in mind that you have to supply a sufficient number of conditions for your problem to be well-posed. If your problem is ill-posed, then no numeric technique will help you.

Second pdepe assumes that you are suppling two boundary conditions in the spatial dimension. One for each boundary of the problem. If you are doing something different. Then this is not the correct function to use.
 
  • #3
How can you get the flowing water temperatures by only treating the problem in 1D? In other words, how do you take the convective heat transfer into account?

Chet
 
  • #4
Thank you for your first answers.
It is actually a 2D system, but in the "x" direction we have only three nodes (one for every layer), while in the "y" direction direction we describe the evolution of the temperature of each layer. So, convection is taken into account as the absorber plate and the insulation layer exchange with the circulating fluid.Sorry I am not familiar with Latex, I hope you can grap the ides from the equations below.

The differential equations that describe the system are (at the present level of complexity):

C_met∙(dT_met)/dt (x,t) = h_ia,met (T_ia-T_met )+h_met,fl(T_fl-T_met )+P_solar

C_fl∙[(dT_fl)/dt (x,t)+v_fl∙(dT_fl)/dx (x,t)] = h_met,fl (T_met-T_fl )+h_fl,isol (T_isol-T_fl )

C_isol∙(dT_isol)/dt (x,t)=h_fl,isol (T_fl-T_isol )+h_isol,ai (T_ia-T_isol )

where CXX are the thermal capacitances and hXX are the heat transfer coefficients between the different layers of the thermal model. Vfl is the fluid velocity, Tia is a known ambient temperature and Psolar is a heating power due to solar irradiance.

As initial conditions:
- the temperature of the recirculating water varies linearly from an inlet temperature to a first-attempt outlet temperature of 12°C
- the temperature of the solar absorber varies linearly from 16.5 to 19 (respectively, averages between the inlet temperature of the fluid and the ambient temperature and between the outlet temperature of the fluid and the ambient temperature)
- analogously, the temperature of the back insulation layer varies linearly from 16.5 to 19.

The spatial boundary conditions are:
T_fl (x=0)=T_fl,inlet
T_met (x=0)=(T_fl,inlet+T_ia)/2
T_isol (x=0)=(T_fl,inlet+T_ia)/2
T_fl (x=L)=T_fl,outlet)
T_met (x=L)=(T_fl,outlet+T_ia)/2
T_isol (x=L)=(T_fl,outlet+T_ia)/2
where Tfl,inlet and Tfl,outlet are the inlet and outlet temperatures of the circulating water.

function SolarAbsorber_TimeSpace
m = 0;
x = linspace(0,2.5,30);
t = linspace(0,7200,100);
sol = pdepe(m,@pd_SolAbs_pde,@pde_SolAbs_ic,@pde_SolAbs_bc,x,t);
T_met = sol(:,:,1);
T_w = sol(:,:,2);
T_is = sol(:,:,3);

function [c,f,s] = pd_SolAbs_pde(x,t,u,DuDx)

% I do not report here the initialization of the coefficients

c = [C_met;C_w;C_is];
f = [ 0; 0; 0];
s1 = (h_ai_met)*(T_ai - u(1))+ h_met_w*(u(2) - u(1))+ Gv*tau*abs);
s2 = (h_met_w*(u(1) - u(2))+ h_is_w*(u(3) - u(2)))- DuDx(2)*vx;
s3 = (h_is_w*(u(2) - u(3)) + h_is_ai*(T_ai - u(3)));
s = [s1; s2; s3];

% --------------------------------------------------------------------------
function u0 = pde_SolAbs_ic(x)
alfa =((12-7)/2.5);
beta = ((26+12)/2 -(26+7)/2)/2.5;
T_met_0 = beta*x+(26+7)/2; %°C
T_w_0 = alfa*x+7; %°C
T_is_0 = beta*x+(26+7)/2; %°C
u0 = [T_met_0; T_w_0; T_is_0];

% --------------------------------------------------------------------------
function [pl,ql,pr,qr] = pde_SolAbs_bc(xl,ul,xr,ur,t,u0,u)
pl = [ul(1)- (26+7)/2; ul(2)-7; ul(3)-(26+7)/2];
ql = [0;0;0];
pr = [ur(1)-(26+12)/2; ur(2)-12; ur(3)-(26+12)/2];
qr = [0;0;0];
 

Related to Solving PDEPE without boundary conditions? heat transfer

1. What is PDEPE and how does it relate to heat transfer?

PDEPE stands for Partial Differential Equations with Piecewise Constant Coefficients. It is a Matlab software package used to solve systems of partial differential equations (PDEs) with initial and boundary conditions. It is commonly used in problems related to heat transfer, such as modeling temperature distribution in materials or fluids.

2. Can PDEPE be used to solve problems without boundary conditions?

Yes, PDEPE can be used to solve problems without boundary conditions. In such cases, the PDEs are solved over the entire domain, with initial conditions specified at a single point or over a finite region.

3. What are some challenges in solving PDEPE for heat transfer problems?

Solving PDEPE for heat transfer problems can be challenging due to the complexity of the equations involved, the need for accurate boundary and initial conditions, and the sensitivity of the solutions to small changes in the parameters. Additionally, some problems may require numerical methods to solve, which can be computationally intensive.

4. How can one verify the accuracy of the solutions obtained from PDEPE?

There are several ways to verify the accuracy of solutions obtained from PDEPE. One method is to compare the results with analytical solutions, if available. Another approach is to run the simulation with different mesh sizes and time steps, and observe the convergence of the solutions. Additionally, physical experiments can be conducted to validate the results.

5. Are there any limitations to using PDEPE for heat transfer problems?

While PDEPE is a powerful tool for solving heat transfer problems, it does have some limitations. For instance, it may not be suitable for problems with highly nonlinear PDEs or complex geometries. Additionally, the accuracy of the solutions may be affected by the chosen discretization method and the stability of the numerical scheme.

Similar threads

Replies
4
Views
1K
  • Differential Equations
Replies
3
Views
2K
  • Differential Equations
Replies
1
Views
2K
Replies
5
Views
2K
Replies
1
Views
991
Replies
10
Views
2K
Replies
5
Views
3K
Replies
1
Views
3K
Replies
14
Views
1K
  • Thermodynamics
Replies
2
Views
738
Back
Top