Temporal discretization is a mathematical technique applied to transient problems that occur in the fields of applied physics and engineering.
Transient problems are often solved by conducting simulations using computer-aided engineering (CAE) packages, which require discretizing the governing equations in both space and time. Such problems are unsteady (e.g. flow problems), and therefore require solutions in which position varies as a function of time. Temporal discretization involves the integration of every term in different equations over a time step (Δt).
If the discretization is done using backward differences, the first-order temporal discretization is given as:
And the second-order discretization is given as:
- φ = a scalar quantity.
- n + 1 = value at the next time level, t + Δt.
- n = value at the current time level, t.
- n − 1 = value at the previous time level, t − Δt.
The temporal discretization is done through integration over time on the general discretized equation. First, values at a given control volume P at time interval t are assumed and then value at time interval t+Δt is found. This method states that the time integral of a given variable is equal to a weighted average between current and future values. The integral form of the equation can be written as:
where ƒ is a weight between 0 and 1.
- ƒ = 0.0 results in the fully explicit scheme.
- ƒ = 1.0 results in the fully implicit scheme.
- ƒ = 0.5 results in the Crank-Nicolson scheme.
For any control volume this integration holds true for any discretized variable. The following equation is obtained when applied to the governing equation including full discretized diffusion, convection, and source terms.
Methods for evaluating function F()
This methods evaluates the function F() at a future time.
The evaluation using implicit-time integration is given as:
This is called implicit integration as in a given cell is related to in neighboring cells through :
In case of implicit method, the setup is unconditionally stable and can handle large time step (Δt). But, stability doesn't mean accuracy. Therefore, large Δt affects accuracy and defines time resolution. But, behavior may involve physical timescale that needs to be resolved.
This methods evaluates the function F() at a current time.
The evaluation using explicit-time integration is given as:
And is referred as explicit integration since can be expressed explicitly in the existing solution values, :
Here, the time step (Δt) is restricted by stability limit of the solver (i.e., time step is limited by the Courant–Friedrichs–Lewy condition. To be accurate w.r.t time, same time step should be used in all the domain and to be stable, the time step must be the minimum of all the local time steps in the domain. This method is also referred to as "global time stepping".