Source: CFDIinside blog

** INTRODUCTION**

The course of Partial differential equations (PDEs) usually is a tough one. There is a number of factors contributing to this toughness:

- PDE course combines the knowledge from calculus, algebra, ordinary differential equations (ODEs), complex analysis and functional analysis. Simply put, there is a lot that you need to know about!
- PDE methods often (or should I say, mostly?) come from physics, but this aspect is not always emphasized and, as a result, the intuition is lost.
- There is lots of abstraction in the PDE course material: characteristics, generalized functions (distributions), eigenfunctions, convolutions and etc. Many of these concepts actually have simple interpretations, but again, this is not emphasized.
- PDEs themselves are tough. In contrast to ODEs, there are no general methods for all kinds of PDEs. The field is young and a bit messy.

This series of posts aims to demystify PDEs and show some general way of handling PDE problems by combining physical intuition and mathematical methods. I am a strong believer in computational approach to mathematics. If you wish,Â it also can be called an engineering mathematics. They core idea of it: we must get an answer. With the examples presented here we will go all the way from formulating the problem to getting the solution. This also means that on the top of PDEs we would need to deal with another tough mathematical topic: numerical methods. But lets not to get ahead of ourselves and first find out “why PDE?” or using Shakespearian pun

**TO PDE OR NOT TO PDE: THE ORIGIN OF PDES**

The reader may recall that development of the ODEs field was prompted by the need to solve mechanical problems.Â Newton’s second law lands itself quite naturally to the initial value problem for an ODE:

where the dot means the derivative with respect to time.

Newton’s second law has slightly more generalized form known as *conservation of momentum*: the momentum of the closed system is conserved. So, in the Newton’s law on the left hand side (LHS) we see the rate of change of the momentum, which in the closed system is supposed to be zero, and on the right hand side (RHS) is an external force. There are a few physical quantities that are known to be conserved: mass, energy and momentum. A peculiar one is entropy: it actually grows in the closed system, but this is another story. For our further discussion, momentum is not an intuitive quantity to work with. Energy offers an easier alternative since most of the time by “energy” we would mean “internal energy” which is almost always is interchangeable with “temperature”, and “temperature” is something that is quite easy to feel.

Conservation of energy of a point can be expressed as

unless there are some external sources. The above equation is written for one point only. Its extension for multiple points is trivial:

Yet another extension is to allow for the *continuum* of points. In this case the conservation holds for some aggregation of particles. Let be energy density of a continuous medium with continuous parameter somehow identifying individual particles. For example, can denote the initial position of an individual particle.

Conservation of energy for the same aggregation of particles of mass is expressed as

where is mass density. Since this equation must hold for any particle aggregation, it follows that

The derivative is understood as taken with respect to time with constant . This derivative is known as full or individual and it is customary to use full derivative symbol for it. Here and later the star is used to denote the function that tracks an individual physical particle, this is so called *Lagrangian view*.

Lagrangian view, however, is not convenient in practice. Consider, for example, a river or a canal. We are far more likely to be interested in, say, temperature of water *in a particular place*. But there are multiple particles passing through the place, bringing different energies and, thus, temperatures with them. What we want is called *Eulerian view*. There is a way to write down the conservation equation directly in Eulerian form, but it is instructive to see how we can transform Lagrangian form into Eulerian.

Let be the trajectories of particles (remember, there is the whole continuum of them) with the parameter being the initial position of a particle, . Let’s assume for a moment that particles do not collide. Mathematically it means that the trajectories can be inverted to find initial particle position that happen to be found at time in the position ,

We will leave the case of colliding trajectories for a moment, but we shall see later that there are physical processes that have this kind of behavior. Let’s substitute the above expression to the energy density function, . The question becomes *how to express the energy conservation law in terms of function *.

If function describes the energy density at space point and time , substitution of the trajectory in place of would result in the energy density of the particle , i.e.

and for this function the conservation law is given by equation (1)

The expression denotes the velocity of the particle , . Using the inverse of trajectories (2), it can be transformed into Eulerian velocity field

This produces, finally, *conservation law in Eulerian coordinates*:

While you catching your breath, let’s note a few things about this equation:

- In place of can be any
*intensive*thermodynamic quantity: momentum density, angular momentum density or even the density of entropy, except the source term must be added to RHS. However, the above procedure will not work for mass density! The problem is that conservation of mass in Lagrangian view has a non-trivial form and it is easier to derive it in Eulerian coordinates straight away. - The equation for the conservation of mass has a slightly different form: . A more universal equation is which is valid for and being an energy or momentum density.
- If there are energy sources or sinks, a function expressing them is added to RHS of equation (3). For example, there can be chemical reactions taking place in the medium, heating it up.
- In more general case, the transfer of energy may occur by other means, not only convection. For example, via heat conduction. This case is taken care by introducing a special case source/sink term to RHS.
- Continuity equation is trivially generalized to multidimensional form: .
- Finally, for simplicity we will equate energy density and temperature. This is always can be done if the mechanical energy is negligible and heat capacity is constant.
- If the medium density is constant: uniform and incompressible, the conservation equation equivalently is written as . It just happens that this form is more convenient when further dealing with the equation.

So, we have come up with the PDE in our attempt to describe a physical law. The kind of equation that we have so far is * first order linear equation*. By including additional effects, such as heat conduction (or diffusion for mass) or chemical reactions, we can transform this equation to second order and make it quasi-linear or even non-linear. However, let’s pause on the first-order equations as they are quite interesting. One of their most interesting and bizarre property is the propagation of discontinuities. And this will be the focus of the next post.

## Leave a Reply