Skip to content

Latest commit

 

History

History
56 lines (43 loc) · 5.52 KB

README.md

File metadata and controls

56 lines (43 loc) · 5.52 KB

ATP: Advanced Transport Phenomena

Collection of numerical codes presented in the Advanced Transport Phenomena (ATP) class at Politecnico di Milano.

Description

The numerical codes are organized in the following folders:

  1. lectures: codes presented and discussed in the ATP lectures

  2. practicals: codes and problems presented and discussed in the ATP practical sessions (see practicals/README.md)

1. Advection-diffusion-reaction equation in 1D with the Finite Difference (FD) method

The advection-diffusion-reaction equation is solved on a 1D domain using the finite-difference method. Constant, uniform velocity and diffusion coefficients are assumed. Spatial derivatives are discretized using 2nd-order, centered schemes. Time integration is carried out with different methods. Application to a metallic bar with fixed temperatures at the boundaries and possible heat exchange with the external environment.

2. Advection-diffusion equation in 1D with the Finite Difference (FD) method

The advection-diffusion equation is solved on a 1D domain using the finite-difference method. Constant, uniform velocity and diffusion coefficients are assumed. The forward (or explicit) Euler method is adopted for the time discretization, while spatial derivatives are discretized using 2nd-order, centered schemes.

3. Advection-diffusion-reaction equation in 1D with the Finite Volume (FV) method

The advection-diffusion-reaction equation is solved on a 1D domain using the finite-volume method. Constant, uniform velocity and diffusion coefficients are assumed. Spatial derivatives are discretized using 2nd-order, centered schemes. Time integration is carried out with ode15s solver. Application to a metallic bar with fixed temperatures at the boundaries and possible heat exchange with the external environment.

4. Advection-diffusion-reaction equation in 2D with the Finite Difference (FD) method

The advection-diffusion-reaction equation is solved on a 2D rectangular domain using the finite-difference method. Analyically prescribed velocity fields are assumed. Constant and uniform diffusion coefficients are assumed. Spatial derivatives are discretized using 2nd-order, centered schemes.

5. Advection-diffusion equation in 2D with the Finite Difference (FD) method

The advection-diffusion equation is solved on a 2D rectangular domain using the finite-difference method. Constant, uniform velocity components and diffusion coefficients are assumed. The forward (or explicit) Euler method is adopted for the time discretization, while spatial derivatives are discretized using 2nd-order, centered schemes.

6. Poisson equation in 2D

The Poisson equation is solved on a 2D rectangular domain using the finite-difference method. A constant source term is initially adopted. Spatial derivatives are discretized using 2nd-order, centered schemes. Different methods are adopted for solving the equation: the Jacobi method, the Gauss-Siedler method, and the Successive Over-Relaxation (SOR) method

The same Poisson equation is solved by explicitly assembling the sparse matrix corresponding to the linear system arising after the spatial discretization

7. Lorenz equations

The Lorenz system is a system of ordinary differential equations first studied by mathematician and meteorologist Edward Lorenz. It is notable for having chaotic solutions for certain parameter values and initial conditions. See also: Lorenz system

8. Population Balance Equations (PBE)

Numerical solution of a diffusion controlled growth 1D population balance equation using the Discrete Sectional Method (DSM) or the Quadrature Method of Moments (QMOM).