Presentation is loading. Please wait.

Presentation is loading. Please wait.

Application of the MCMC Method for the Calibration of DSMC Parameters James S. Strand and David B. Goldstein The University of Texas at Austin Sponsored.

Similar presentations


Presentation on theme: "Application of the MCMC Method for the Calibration of DSMC Parameters James S. Strand and David B. Goldstein The University of Texas at Austin Sponsored."— Presentation transcript:

1 Application of the MCMC Method for the Calibration of DSMC Parameters James S. Strand and David B. Goldstein The University of Texas at Austin Sponsored by the Department of Energy through the PSAAP Program Predictive Engineering and Computational Sciences

2 Introduction – DSMC Parameters Direct Simulation Monte Carlo (DSMC) is a valuable method for the simulation of rarefied gas flows. The DSMC model includes many parameters related to gas dynamics at the molecular level, such as:  Elastic collision cross-sections  Vibrational and rotational excitation cross-sections  Reaction cross-sections  Sticking coefficients and catalytic efficiencies for gas-surface interactions.  …etc.

3 Introduction – DSMC Parameters In many cases the precise values of some of these parameters are not known. Parameter values often cannot be directly measured, instead they must be inferred from experimental results. By necessity, parameters must often be used in regimes far from where their values were determined. More precise values for important parameters would lead to better simulation of the physics, and thus to better predictive capability for the DSMC method.

4 MCMC Method - Overview Markov Chain Monte Carlo (MCMC) is a method which solves the statistical inverse problem in order to calibrate parameters with respect to a set or sets of experimental data.

5 MCMC Method Establish boundaries for parameter space Select initial position Run simulation at current position Calculate probability for current position Select new candidate position Run simulation for candidate position parameters, and calculate probability Accept or reject candidate position based on a random number draw Candidate position is accepted, and becomes the current chain position Candidate position becomes current position Current position remains unchanged. Candidate automatically accepted Candidate Accepted Candidate Rejected Prob candidate < Prob current Prob candidate > Prob current

6 MCMC Method - Steps Simple example illustrates the MCMC method.

7 MCMC Method - Steps

8

9

10

11

12

13

14

15

16

17

18

19

20 1D Shock Simulation Base flow is a 1D, unsteady shock, moving through the computational domain. A set of sample cells moves with the shock. These sample cells continuously collect data on the shock profile. This method allows for a smooth solution in an unsteady flow without the computational cost of ensemble averaging or using excessively large numbers of particles. No prior knowledge of the post-shock conditions is required.

21 1D Shock Simulation

22 1D Shock Simulation – Measure of Error Alsmeyer’s Data Sample DSMC Results

23 Parallelization DSMC:  DSMC code is MPI parallel, with dynamic load rebalancing periodically during each run.  Allows very fast simulation of small problems.  Super-linear speed-up due to better cache use.  Simulations which took 20 minutes on 1 processor take less than 20 seconds on 64 processors.  Faster DSMC simulations allow for much longer chains to be run in a practical amount of time. MCMC:  Any given chain must be run in sequence.  MCMC method can be parallelized by running multiple chains simultaneously.

24 MCMC Parallelism All Processors

25 MCMC Parallelism All Processors Group 1 Group 2 Group 5 Group 4 Group 6 Group 3

26 MCMC Parallelism All Processors Group 1 MCMC Chain 3 Group 2 Group 5 Group 4 Group 6 Group 3 MCMC Chain 1 MCMC Chain 2

27 MCMC Parallelism All Processors Group 1 MCMC Chain 3 Group 2 Group 5 Group 4 Group 6 Group 3 MCMC Chain 1 MCMC Chain 2 MCMC Chain 4 MCMC Chain 6 MCMC Chain 5

28 MCMC Parallelism All Processors Group 1 MCMC Chain 3 Group 2 Group 5 Group 4 Group 6 Group 3 MCMC Chain 1 MCMC Chain 2 MCMC Chain 4 MCMC Chain 6 MCMC Chain 5 MCMC Chain 7 MCMC Chain 8

29 MCMC Parallelism All Processors Group 1 MCMC Chain 3 Group 2 Group 5 Group 4 Group 6 Group 3 MCMC Chain 1 MCMC Chain 2 MCMC Chain 4 MCMC Chain 6 MCMC Chain 5 MCMC Chain 7 Group 1 Group 2 MCMC Chain 8

30 MCMC Parallelism All Processors Group 1 MCMC Chain 3 Group 2 Group 5 Group 4 Group 6 Group 3 MCMC Chain 1 MCMC Chain 2 MCMC Chain 4 MCMC Chain 6 MCMC Chain 5 MCMC Chain 7 MCMC Chain 8 MCMC Chain 6

31 MCMC Parallelism All Processors Group 1 MCMC Chain 3 Group 2 Group 5 Group 4 Group 6 Group 3 MCMC Chain 1 MCMC Chain 2 MCMC Chain 4 MCMC Chain 6 MCMC Chain 5 MCMC Chain 7 Group 4 MCMC Chain 8 MCMC Chain 6 Group 3 Group 1

32 MCMC Parallelism All Processors Group 1 MCMC Chain 3 Group 2 Group 5 Group 4 Group 6 Group 3 MCMC Chain 1 MCMC Chain 2 MCMC Chain 4 MCMC Chain 6 MCMC Chain 5 MCMC Chain 7 MCMC Chain 8 MCMC Chain 6

33 First Calibration - Hard-Sphere Model Parameter to be calibrated is d HS, the hard-sphere diameter for argon. Normalized density profile for a Mach 3.38 shock in argon from Alsmeyer (1976) used for calibration. Uniform sampling method used to explore the parameter space. Metropolis-Hastings MCMC algorithm used to solve inverse problem.

34 Second Calibration - VHS Model Parameters to be calibrated are d ref and ω, the reference diameter and the temperature-viscosity exponent for argon. Normalized density profile for a Mach 3.38 shock in argon from Alsmeyer (1976) once again used for calibration.

35 Second Calibration - VHS Model For two parameter case, uniform sampling could still be used to explore parameter space. Simulation was run for each set of parameters on a 100×100 grid in parameter space, and a probability was calculated for each based on the error and the likelihood equation. A total of 10,000 shocks were simulated for the uniform sample.

36 Second Calibration - VHS Model Band structure seen here indicates that this single dataset does not provide enough information to allow unique values to be determined for both d ref and ω.

37 Second Calibration - VHS Model MCMC calibration was also performed for this case. 64 chains were run, each with 4000 positions, for a total of 256,000 shocks. Full MCMC run took 20 hours on 4096 processors. MCMC is overkill for this two-parameter system.

38 Second Calibration - VHS Model Individual MCMC chains also show the band structure.

39 Second Calibration - VHS Model The same band structure is seen in a scatterplot of MCMC chain positions and in a contour plot showing the number of MCMC chain positions in any given region.

40 Second Calibration - VHS Model We can also see the band structure by directly viewing the probabilities at each MCMC chain position.

41 Alsmeyer’s Data – Multiple Mach Numbers

42

43 MD Data - Valentini and Schwartzentruber (2009)

44

45 Conclusions/Future Work MCMC successfully reproduces the results from a brute-force uniform sampling technique for the calibration of the parameters for the hard-sphere and VHS methods. The normalized density profile from a single shock is insufficient to uniquely calibrate both parameters of the VHS method. Temperature and velocity distribution function data provide better calibration for the VHS parameters. The addition of internal energy modes and chemistry will increase both the number of parameters and the volume of available calibration data.


Download ppt "Application of the MCMC Method for the Calibration of DSMC Parameters James S. Strand and David B. Goldstein The University of Texas at Austin Sponsored."

Similar presentations


Ads by Google