{{Short description|Mathematical technique}} {{technical|date=May 2014}}

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 (<math>\Delta t</math>).

The spatial domain can be discretized to produce a semi-discrete form:<ref>{{cite web |url=http://aerojet.engr.ucdavis.edu/fluenthelp/html/ug/node993.htm |title=Spatial and Temporal Discretization |archive-url=https://web.archive.org/web/20160305032706/http://aerojet.engr.ucdavis.edu/fluenthelp/html/ug/node993.htm |archive-date=5 March 2016 |url-status=dead}}</ref> <math display="block">\frac{\partial \varphi}{\partial t}(x,t) = F(\varphi).~</math>

The first-order temporal discretization using backward differences is <ref name=" Selection of Spatial and Temporal discretization for Wetland modeling">[http://gwmftp.jacobs.com/Peer_Review/resolution.pdf Selection of Spatial and Temporal discretization]</ref> <math display="block">\frac{\varphi^{n+1} - \varphi^n}{\Delta t} = F(\varphi),</math>

And the second-order discretization is <math display="block">\frac{3\varphi^{n+1} - 4\varphi^{n}+\varphi^{n-1}}{2\Delta t} = F(\varphi),</math> where * <math>\varphi </math> is a scalar * <math>n + 1 </math> is the value at the next time, <math>t + \Delta t</math> * <math>n </math> is the value at the current time, <math>t</math> * <math>n - 1 </math> is the value at the previous time, <math>t - \Delta t</math>

The function <math>F(\varphi)</math> is evaluated using implicit- and explicit-time integration.<ref>{{cite web| url = http://www.cfd-online.com/Wiki/Discretization_of_the_transient_term | title=Discretisation of transient term}}</ref>

== Description == Temporal discretization is done by integrating the general discretized equation over time. First, values at a given control volume <math>P</math> at time interval <math>t</math> are assumed, and then value at time interval <math>t + \Delta t</math> 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: <math display="block">\frac{\varphi^{n+1} - \varphi^n}{\Delta t} = f\cdot F( \varphi^{n+1}) + (1-f) \cdot F( \varphi^n ),</math> where <math>f</math> is a weight between 0 and 1.

* <math>f = 0.0</math> yields the fully explicit scheme. * <math>f = 1.0</math> yields the fully implicit scheme. * <math>f = 0.5</math> yields the Crank-Nicolson scheme.

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.<ref>{{cite web| url=http://www.xmswiki.com/xms/GMS:Temporal_Discretization |title=Examples of Temporal Discretization}}</ref> <math display="block"> \int_t^{t+\Delta t} F(\varphi) \, dt = [ f\cdot F_\varphi^{t+\Delta t} + (1-f)\cdot F_\varphi^t ] \, \Delta t </math>

== Methods for evaluating function ''F''(''φ'') == After discretizing the time derivative, function <math>F(\varphi)</math> remains to be evaluated. The function is now evaluated using implicit and explicit-time integration.<ref name="Notes on Spatial and Temporal Discretization">[http://www.pc-progress.com/Documents/Notes_on_Spatial_and_Temporal_Discretization.pdf Jirka Simunek]</ref>

===Implicit-time integration=== This methods evaluates the function <math>F(\varphi)</math> at a future time.

====Formulation==== The evaluation using implicit-time integration is given as: <math display="block">\frac{\varphi^{n+1} - \varphi^n}{\Delta t} = F( \varphi^{n+1} ),</math>

This is called implicit integration as <math>\varphi^{n+1}</math> in a given cell is related to <math>\varphi^{n}</math> in neighboring cells through <math>F(\varphi^{n+1})</math>: <math display="block">\varphi^{n+1} = \varphi^n + \Delta t F( \varphi^{n+1} ),</math>

In case of implicit method, the setup is unconditionally stable and can handle large time step (<math>\Delta t</math>). But, stability doesn't mean accuracy. Therefore, large <math>\Delta t</math> 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 <math>F(\varphi)</math> at a current time.

====Formulation==== The evaluation using explicit-time integration is given as: <math display="block">\frac{\varphi^{n+1} - \varphi^n}{\Delta t} = F(\varphi^n),</math>

And is referred as explicit integration since <math>\varphi^{n+1}</math> can be expressed explicitly in the existing solution values, <math>\varphi^{n}</math>: <math display="block">\varphi^{n+1} = \varphi^n + \Delta t \, F( \varphi^n ),</math>

Here, the time step (<math>\Delta t</math>) 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:

* Lax–Wendroff method * Runge–Kutta method

==See also==

* Courant–Friedrichs–Lewy condition. * Von Neumann stability analysis. * Finite element method * Explicit and implicit methods * Chi-Wang Shu

==References==

{{reflist}}

Category:Computer-aided engineering