Documentos de Académico
Documentos de Profesional
Documentos de Cultura
ODT to LES
Shubham Srivastava
000959606
1) Problem Statement
For coupling Large Eddy Simulation (LES) equations with 1-D stochastic governing equations of One
Dimensional Turbulence (ODT) data has to be passed from one scale to the other. The data passed
contributes directly to the accuracy of the solution. The ODT solutions also constitute statistical data
whose behavior over all scales depends on its density i.e. the number of ODT points embedded in one
LES cell. Therefore these values being passed should be spectrally smooth. For this purpose Kalman
Filter is used to refine the density values to obtain more accurate solutions. Here a more generic problem
has been formulated using Continuity equation and Burger’s equation and Kalman filter has been
implemented on that to prove its efficacy. Similar to the LES – ODT case, here too the density predicted
by the continuity equation has to be refined.
3) Kalman Filter
The Kalman filter is an optimal solution for data prediction and smoothing tasks. It is a recursive filter
that estimates the internal state of a linear system for a series of noisy measurements. Here a short
explanation is provided on the derivation and the use of Kalman Filter.
The goal of Kalman filter is to estimate the unknown true state um+1 and σ is a Gaussian noise.
The error distribution of conditional probability of observation state given the estimated state is a
Gaussian distribution. Therefore the mean of the observation state from (2) is gum+1. Hence
where
and
rm|m = <(um – ūm|m)(um – ūm|m)T> which is the state error covarience (8)
To get the estimate of the true value after the knowledge of observation at that time
Using (3) and (5) and writing the probabilities as Gaussian distributions-
ି(࢞ିࣆ)
exp
ඥ࣊࣌ ࣌
J(u) = ((u – ūm+1|m)T (u – ūm+1|m)) / rm+1|m + ((vm+1 – gu)T (vm+1 – gu)) / rο (10)
Now everything is again repeated from equation (6) to (13) until the last time step.
For solving the problem a discrete Kalman Filter has been used. An initial density field was initialized
along with a velocity field. Random errors were added to the density field and after applying Kalman
filter the cleaner density was obtained. The velocity field was then advanced using this clean density.
• The first part illustrates how the actual density field would advance theoretically if there were no
errors.
• The second part shows how the density field would advance if the errors were not cleaned after
being introduced.
• The third part explains the entire Kalman filter algorithm and how it is used on the erroneous
density field to get out a refined density which is then used to further the velocity field.
5) Scheme
Equations used-
=
ࣔ࣋ ࣔ(࢛࣋)
+ (14)
࢚ࣔ ࣔ࢞
Equation 14 is the Continuity Equation. A density grid of n x 3 was generated. The equation 14 was
discretized using the central difference scheme as given below.
ࣆ ࣔ ࢛
+ ࢛
࢛ࣔ ࢛ࣔ
= (16)
࢚ࣔ ࣔ࢞ ࣋ ࣔ࢞
Equation 16 is the Burger’s equation. A velocity grid of n x 3 was generated and initialized. The equation
16 was discretized as given below.
ࣆ∆࢚ ࢛
࢛ା ࢛ ቀ
శ ି࢛ ା࢛ష
ቁ − ࢛ ቀ ቁ ൫࢛ା − ࢛_ ൯
∆࢚
= + (17)
࣋
∆࢞ ∆࢞
Equation 17 is used to advance the velocity field. This velocity is then used in equation 15 for the next
time step.
5.1) The first case handles the scenario where there is no random error involved. The velocity and the
density fields are just advanced like normal CFD equations using equations 15 and 17. This is a
very simple case with no randomness and smooth solutions.
5.2) The second case takes into consideration the scenario where there is a random error associated
with every time step but this error is not resolved and is allowed to stay in the system. Again
equations 15 and 17 are used to advance the density and velocity fields like normal CFD
equations but they just have an additional error term ϵ.
࣋ା
ഥା
= ࣋ +∈ (18)
Here ρ is the density that is given by the equation and ̅ is the actual density at that time step that
has to be estimated by the Kalman filter. ϵ is the error associated with the observations. For
incorporating ϵ random Gaussian errors had to be generated to be added to the equations. This
was done as follows.
Generate K M-dimensional random vectors ηkm+1 from a Gaussian distribution with zero mean
and covariance ro. For this generate random vectors by first randomly drawing a M x K size
matrix A and taking the singular value decomposition of AAT = FΣFT. Thus there are unbiased
random vectors which are nothing but the column vectors of the matrix T = (ro)1/2FΣ-1/2FTA.
In the next section i.e. Section 6 the results have been shown, compared and then discussed.
Fig. 1- This shows a comparison between the actual density, unclean density and the clean density. The
density field has been advanced for 80 time steps and the Kalman filter has 2 iterations.
Fig. 2- This shows a comparison between the actual density, unclean density and the clean density. The
density field has been advanced for 80 time steps and the Kalman filter has 50 iterations.
Fig. 4- This shows a comparison between the actual density, unclean density and the clean density. The
density field has been advanced for 180 time steps and the Kalman filter has 350 iterations.
Fig. 6- This shows the Kalman gain of the algorithm after 5 iterations
Fig. 8- This shows the Kalman gain of the algorithm after 200 iterations
As can be seen from figures 1 to 5 the unclean density (red line) is just a random field and deviates to a
great extent from the actual density (blue line). The errors in the unclean density seem to having a
compounding effects and steadily take it away from the actual solution. They keep on accumulating in the
subsequent time steps if they are not cleaned.
On the other hand application of Kalman filter produces a marked effect on the unclean density field. It
produces a clean density (green line) which approximates the actual density field much more closely as
compared to the unclean density.
Figures 6,7 and 8 show the Kalman gain for different iterations. In figure 6 the graph has still not
stabilized and has a slope. This shows that the Kalman filter has still not reached its optimum
performance after 5 iterations and there is scope for more improvement. In figure 7after 50 iterations the
graph has almost reached a stable value and there is only marginal difference between 50 and 200
iterations which also supports the observations made for graphs 2 and 3.
7) Conclusion
In this study a complete algorithm of Kalman filter for Burger and Continuity equation has been
developed. The results clearly depict the effect of Kalman filter technique on this problem. It has been
shown that Kalman filter has been efficiently implemented to obtain a clean density field which is in
agreement with the actual density field. Also the effect of iterations of Kalman filter has been shown
which proves that the Kalman filter gets more accurate with more number of iterations but attains
saturation after a certain number of cycles.