Misplaced Pages

Temporal discretization

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
Mathematical technique
This article may be too technical for most readers to understand. Please help improve it to make it understandable to non-experts, without removing the technical details. (May 2014) (Learn how and when to remove this message)

In applied physics and engineering, temporal discretization is a mathematical technique for solving transient problems, such as flow problems.

Transient problems are often solved using computer-aided engineering (CAE) simulations, which require discretizing the governing equations in both space and time. Temporal discretization involves the integration of every term in various equations over a time step ( Δ t {\displaystyle \Delta t} ).

The spatial domain can be discretized to produce a semi-discrete form: φ t ( x , t ) = F ( φ ) .   {\displaystyle {\frac {\partial \varphi }{\partial t}}(x,t)=F(\varphi ).~}

The first-order temporal discretization using backward differences is φ n + 1 φ n Δ t = F ( φ ) , {\displaystyle {\frac {\varphi ^{n+1}-\varphi ^{n}}{\Delta t}}=F(\varphi ),}

And the second-order discretization is 3 φ n + 1 4 φ n + φ n 1 2 Δ t = F ( φ ) , {\displaystyle {\frac {3\varphi ^{n+1}-4\varphi ^{n}+\varphi ^{n-1}}{2\Delta t}}=F(\varphi ),} where

  • φ {\displaystyle \varphi } is a scalar
  • n + 1 {\displaystyle n+1} is the value at the next time, t + Δ t {\displaystyle t+\Delta t}
  • n {\displaystyle n} is the value at the current time, t {\displaystyle t}
  • n 1 {\displaystyle n-1} is the value at the previous time, t Δ t {\displaystyle t-\Delta t}

The function F ( φ ) {\displaystyle F(\varphi )} is evaluated using implicit- and explicit-time integration.

Description

Temporal discretization is done by integrating the general discretized equation over time. First, values at a given control volume P {\displaystyle P} at time interval t {\displaystyle t} are assumed, and then value at time interval t + Δ t {\displaystyle t+\Delta t} is found. This method states that the time integral of a given variable is a weighted average between current and future values. The integral form of the equation can be written as: φ n + 1 φ n Δ t = f F ( φ n + 1 ) + ( 1 f ) F ( φ n ) , {\displaystyle {\frac {\varphi ^{n+1}-\varphi ^{n}}{\Delta t}}=f\cdot F(\varphi ^{n+1})+(1-f)\cdot F(\varphi ^{n}),} where f {\displaystyle f} is a weight between 0 and 1.

This integration holds for any control volume and any discretized variable. The following equation is obtained when applied to the governing equation, including full discretized diffusion, convection, and source terms. t t + Δ t F ( φ ) d t = [ f F φ t + Δ t + ( 1 f ) F φ t ] Δ t {\displaystyle \int _{t}^{t+\Delta t}F(\varphi )\,dt=\,\Delta t}

Methods for evaluating function F(φ)

After discretizing the time derivative, function F ( φ ) {\displaystyle F(\varphi )} remains to be evaluated. The function is now evaluated using implicit and explicit-time integration.

Implicit-time integration

This methods evaluates the function F ( φ ) {\displaystyle F(\varphi )} at a future time.

Formulation

The evaluation using implicit-time integration is given as: φ n + 1 φ n Δ t = F ( φ n + 1 ) , {\displaystyle {\frac {\varphi ^{n+1}-\varphi ^{n}}{\Delta t}}=F(\varphi ^{n+1}),}

This is called implicit integration as φ n + 1 {\displaystyle \varphi ^{n+1}} in a given cell is related to φ n {\displaystyle \varphi ^{n}} in neighboring cells through F ( φ n + 1 ) {\displaystyle F(\varphi ^{n+1})} : φ n + 1 = φ n + Δ t F ( φ n + 1 ) , {\displaystyle \varphi ^{n+1}=\varphi ^{n}+\Delta tF(\varphi ^{n+1}),}

In case of implicit method, the setup is unconditionally stable and can handle large time step ( Δ t {\displaystyle \Delta t} ). But, stability doesn't mean accuracy. Therefore, large Δ t {\displaystyle \Delta t} affects accuracy and defines time resolution. But, behavior may involve physical timescale that needs to be resolved.

Explicit-time integration

This methods evaluates the function F ( φ ) {\displaystyle F(\varphi )} at a current time.

Formulation

The evaluation using explicit-time integration is given as: φ n + 1 φ n Δ t = F ( φ n ) , {\displaystyle {\frac {\varphi ^{n+1}-\varphi ^{n}}{\Delta t}}=F(\varphi ^{n}),}

And is referred as explicit integration since φ n + 1 {\displaystyle \varphi ^{n+1}} can be expressed explicitly in the existing solution values, φ n {\displaystyle \varphi ^{n}} : φ n + 1 = φ n + Δ t F ( φ n ) , {\displaystyle \varphi ^{n+1}=\varphi ^{n}+\Delta t\,F(\varphi ^{n}),}

Here, the time step ( Δ t {\displaystyle \Delta t} ) is restricted by the stability limit of the solver (i.e., time step is limited by the Courant–Friedrichs–Lewy condition). To be accurate with respect to time the 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".

Examples

Many schemes use explicit-time integration. Some of these are as follows:

See also

References

  1. "Spatial and Temporal Discretization". Archived from the original on 5 March 2016.
  2. Selection of Spatial and Temporal discretization
  3. "Discretisation of transient term".
  4. "Examples of Temporal Discretization".
  5. Jirka Simunek
Category: