www.kxcad.net Home > CAE Index > ANSYS Index > Release 11.0 Documentation for ANSYS
Understanding the algorithm used by a computer program is always helpful; this is particularly true in the case of probabilistic design. This section presents details on the method types and the sampling options associated with each. See the Theory Reference for ANSYS and ANSYS Workbench for more information.
The Monte Carlo Simulation method is the most common and traditional method for a probabilistic analysis. This method lets you simulate how virtual components behave the way they are built. One simulation loop represents one manufactured component that is subjected to a particular set of loads and boundary conditions.
For Monte Carlo simulations, you can employ either the Direct Sampling method or the Latin Hypercube Sampling method.
When you manufacture a component, you can measure its geometry and all of its material properties (although typically, the latter is not done because this can destroy the component). In the same sense, if you started operating the component then you could measure the loads it is subjected to. Again, to actually measure the loads is very often impractical. But the bottom line is that once you have a component in your hand and start using it then all the input parameters have very specific values that you could actually measure. With the next component you manufacture you can do the same; if you compared the parameters of that part with the previous part, you would find that they vary slightly. This comparison of one component to the next illustrates the scatter of the input parameters. The Monte Carlo Simulation techniques mimic this process. With this method you “virtually” manufacture and operate components or parts one after the other.
The advantages of the Monte Carlo Simulation method are:
The method is always applicable regardless of the physical effect modeled in a finite element analysis. It not based on assumptions related to the random output parameters that if satisfied would speed things up and if violated would invalidate the results of the probabilistic analysis. Assuming the deterministic model is correct and a very large number of simulation loops are performed, then Monte Carlo techniques always provide correct probabilistic results. Of course, it is not feasible to run an infinite number of simulation loops; therefore, the only assumption here is that the limited number of simulation loops is statistically representative and sufficient for the probabilistic results that are evaluated. This assumption can be verified using the confidence limits, which the PDS also provides.
Because of the reason mentioned above, Monte Carlo Simulations are the only probabilistic methods suitable for benchmarking and validation purposes.
The individual simulation loops are inherently independent; the individual simulation loops do not depend on the results of any other simulation loops. This makes Monte Carlo Simulation techniques ideal candidates for parallel processing.
The Direct Sampling Monte Carlo technique has one drawback: it is not very efficient in terms of required number of simulation loops.
Direct Monte Carlo Sampling is the most common and traditional form of a Monte Carlo analysis. It is popular because it mimics natural processes that everybody can observe or imagine and is therefore easy to understand. For this method, you simulate how your components behave based on the way they are built. One simulation loop represents one component that is subjected to a particular set of loads and boundary conditions.
The Direct Monte Carlo Sampling technique is not the most efficient technique, but it is still widely used and accepted, especially for benchmarking and validating probabilistic results. However, benchmarking and validating requires many simulation loops, which is not always feasible. This sampling method is also inefficient due to the fact that the sampling process has no "memory."
For example, if we have two random input variables X1 and X2 both having a uniform distribution ranging from 0.0 to 1.0, and we generate 15 samples, we could get a cluster of two (or even more) sampling points that occur close to each other if we graphed the two variables (see figure below). While in the space of all random input variables, it can happen that one sample has input values close to another sample, this does not provide new information and insight into the behavior of a component in a computer simulation if the same (or almost the same) samples are repeated.
To use Direct Monte Carlo Sampling, do the following
| Command(s): | PDMETH,MCS,DIR PDDMCS |
| GUI: | Main Menu> Prob Design> Prob Method> Monte Carlo Sims |
In this sampling method, you set the number of simulations, whether to stop simulations loops when certain criteria are met (accuracy for mean values and standard deviations), and the seed value for randomizing input variable sample data.
The Latin Hypercube Sampling (LHS) technique is a more advanced and efficient form for Monte Carlo Simulation methods. The only difference between LHS and the Direct Monte Carlo Sampling technique is that LHS has a sample "memory," meaning it avoids repeating samples that have been evaluated before (it avoids clustering samples). It also forces the tails of a distribution to participate in the sampling process. Generally, the Latin Hypercube Sampling technique requires 20% to 40% fewer simulations loops than the Direct Monte Carlo Simulation technique to deliver the same results with the same accuracy. However, that number is largely problem dependent.
To use the Latin Hypercube Sampling technique:
| Command(s): | PDMETH,MCS,LHS PDLHS |
| GUI: | Main Menu> Prob Design> Prob Method> Monte Carlo Sims |
In this sampling method, you set the number of simulations and repetitions, the location in the interval for the sample, whether the simulations stop when certain criteria are met (accuracy of mean values and standard deviations), and random number seed for variability in the sample input variable data.
For this method, you provide the file containing the samples.
| Command(s): | PDMETH,MCS,USER PDUSER |
| GUI: | Main Menu> Prob Design> Prob Method> Monte Carlo Sims |
By using this option you have complete control over the sampling data. You are required to give the file name and path.
If user-specified sampling methods are requested with the PDMETH,MCS,USER command or the PDMETH,RSM,USER command, then you need to specify which file contains the sample data. The sample data is a matrix, where the number of columns is equal to the number of defined random variables and the number of lines is equal to the number of simulation loops requested. This data must be contained in an ASCII file and the content must obey the following notations and format requirements:
Column separators allowed: blank spaces, commas, semicolons, and tabs.
Multiple blank spaces and multiple tabs placed directly one after the other are allowed and are considered as one single column separator.
Multiple commas or semicolons placed directly one after the other are not allowed; for example, two commas with no data between them (just blanks) are read as an empty column, which leads to an error message.
The first line of the file must contain a solution label. No additional data is allowed on the first line, and if found, will lead to an error message. An error message is also issued if the solution label is missing.
The solution label is just a placeholder. For consistency, you should use the same solution label you specify in the PDEXE command, but if they are different, you will always use the solution label specified in the PDEXE command for postprocessing. The PDS system does not check if the solution label in the user-specified file and the one given in the PDEXE command match.
The second line of the file must contain the headers of the data columns. The first three column headers must be “ITER”, “CYCL”, and “LOOP”, respectively; then subsequent columns should contain the names of the random variables. You must use one of the allowed separators as described above between the column headers. No additional data is allowed on this line, and if found, will prompt an error message. An error message is also issued if any of the required column headers are missing.
The random variable names in your file must match the names of the defined random variables. The variable names that you specify must consist of all uppercase characters (regardless of the case used in the defined variable names).
Columns four to n can be in arbitrary order. The ANSYS PDS tool determines the order for the random variable data based on the order of the random variable names in the second line.
The third and subsequent lines must contain the order number for the iteration, cycle, and simulation loop, then the random variable values for that loop. The iteration, cycle, and simulation loop numbers must be in the first, second, and third columns respectively, followed by the random variable values. The iteration and cycle numbers are used by the ANSYS PDS (internally) and for a user-defined sampling method you will typically use a value of "1" for all simulation loops. The loop number is an ascending number from 1 to the total number of loops requested. Additional data is not allowed, and if found, will lead to an error message. An error message is also issued if any of the data columns are missing.
You must be sure that the order of the random variable values in each line is identical to the order of the random variable names in the second line.
The user-specified sampling file must contain a minimum of one data line for the random variable values.
It is your responsibility to ensure that parameters defined as random input variables are actually input parameters for the analysis defined with the PDANL command. Likewise, you must ensure that parameters defined as random output parameter are in fact results generated in the analysis file.
An excerpt of the content of a user-specified sampling file is given below. This example is based on three random variables named X1, X2, and X3. A total of 100 simulation loops are requested.
USERSAMP ITER CYCL LOOP X1 X2 X3 1 1 1 1.619379209e+000 2.364528435e-001 1.470789050e+000 1 1 2 2.237676559e-001 5.788049712e-001 1.821263115e+000 1 1 3 7.931615474e+000 8.278689033e-001 2.170793522e+000 .. .. .. ... ... ... .. .. .. ... ... ... 1 1 98 1.797221666e+000 3.029471373e-001 1.877701081e+000 1 1 99 1.290815540e+001 9.271606216e-001 2.091047328e+000 1 1 100 4.699281922e+000 6.526505821e-001 1.901013985e+000
For Response Surface Analysis, you can choose from three sampling methods: Central Composite Design, Box-Behnken Matrix, and user-defined.
Response Surface Methods are based on the fundamental assumption that
the influence of the random input variables on the random output parameters
can be approximated by mathematical function. Hence, Response Surface Methods
locate the sample points in the space of random input variables such that
an appropriate approximation function can be found most efficiently; typically,
this is a quadratic polynomial. In this case the approximation function
is described by

where c0 is the coefficient of the constant term, ci, i = 1,...NRV are the coefficients of the linear terms and cij, i = 1,...NRV and j = i, ...,NRV are the coefficients of the quadratic terms. To evaluate these coefficients a regression analysis is used and the coefficients are usually evaluated such that the sum of squared differences between the true simulation results and the values of the approximation function is minimized.
Hence, a response surface analysis consists of two steps:
Performing the simulation loops to calculate the values of the random output parameters that correspond to the sample points in the space of random input variables.
Performing a regression analysis to derive the terms and the coefficients of the approximation function.
The fundamental idea of Response Surface Methods is that once the coefficients of a suitable approximation function are found, then we can directly use the approximation function instead of looping through the finite element model. To perform a finite element analysis might require minutes to hours of computation time; in contrast, evaluating a quadratic function requires only a fraction of a second. Hence, if using the approximation function, we can afford to evaluate the approximated response parameter thousands of times.
A quadratic polynomial is sufficient in many cases of engineering analysis (for example, the evaluation of the thermal stress mentioned above). For that evaluation, the Young's modulus and the thermal expansion coefficient both have a linear effect on the thermal stresses, which is taken into account in a quadratic approximation by the mixed quadratic terms. However, there are cases where a quadratic approximation is not sufficient; for example, if the finite element results are used to calculate the lifetime of a component. For this evaluation, the lifetime typically shows an exponential behavior with respect to the input parameters; thus the lifetime results cannot be directly or sufficiently described by a quadratic polynomial. But often, if you apply a logarithmic transformation to the lifetime results, then these transformed values can be approximated by a quadratic polynomial. The ANSYS PDS offers a variety of transformation functions that you can apply to the response parameters, and the logarithmic transformation function is one of them.
Assuming the approximation function is suitable for your problem, the advantages of the Response Surface Method are:
It often requires fewer simulation loops than the Monte Carlo Simulation method.
It can evaluate very low probability levels. This is something the Monte Carlo Simulation method cannot do unless you perform a great number of simulation loops.
The goodness-of-fit parameters tell you how good the approximation function is (in other words, how accurate the approximation function is that describes your "true" response parameter values). The goodness-of-fit parameters can warn you if the approximation function is insufficient.
The individual simulation loops are inherently independent (the individual simulation loops do not depend on the results of any other simulation loops). This makes Response Surface Method an ideal candidate for parallel processing.
The disadvantages of the Response Surface Method are:
The number of required simulation loops depends on the number of random input variables. If you have a very large number of random input variables (hundreds or even thousands), then a probabilistic analysis using Response Surface Methods would be impractical.
This method is not usually suitable for cases where a random output parameter is a non-smooth function of the random input variables. For example, a non-smooth behavior is given if you observe a sudden jump of the output parameter value even if the values for the random input variables vary only slightly. This typically occurs if you have instability in your model (such as bulking). The same might happen if the model includes a sharp nonlinearity such as a linear-elastic-ideal-plastic material behavior. Or, if you are analyzing a contact problem, where only a slight variation in your random input variables can change the contact situation from contact to non-contact or vice versa, then you also might have problems using the Response Surface Method.
To use Response Surface Methods, the random output parameters must be smooth and continuous functions of the involved random input variables. Do not use Response Surface Methods if this condition is not satisfied.
A central composite design consists of a central point, the N axis point plus 2N-f factorial points located at the corners of an N-dimensional hypercube. Here, N is the number of random input variables and f is the fraction of the factorial part of the central composite design. A fraction f = 0 is a called a full factorial design, f = 1 gives a half-factorial design, and so on. The PDS gradually increases the fraction f as you increase the number of random input variables. This keeps the number of simulation loops reasonable. The fraction f is automatically evaluated such that a resolution V design is always maintained. A resolution V design is a design where none of the second order terms of the approximation function are confined with each other. This ensures a reasonable accuracy for the evaluation of the coefficients of the second order terms.
The locations of the sampling points for a problem with three random input variables is illustrated below.
The number of sample points (simulation loops) required for a central composite design as a function of the number of random input variables is given in the table below:
| Number of random input variables | Number of coefficients in a quadratic function (with cross-terms) | Factorial number f | Number sample points (simulation loops) |
|---|---|---|---|
| 1 | 3 | N/A | N/A |
| 2 | 6 | 0 | 9 |
| 3 | 10 | 0 | 15 |
| 4 | 15 | 0 | 25 |
| 5 | 21 | 1 | 27 |
| 6 | 28 | 1 | 45 |
| 7 | 36 | 1 | 79 |
| 8 | 45 | 2 | 81 |
| 9 | 55 | 2 | 147 |
| 10 | 66 | 3 | 149 |
| 11 | 78 | 4 | 151 |
| 12 | 91 | 4 | 281 |
| 13 | 105 | 5 | 283 |
| 14 | 120 | 6 | 285 |
| 15 | 136 | 7 | 287 |
| 16 | 153 | 8 | 289 |
| 17 | 171 | 9 | 291 |
| 18 | 190 | 9 | 549 |
| 19 | 210 | 10 | 551 |
| 20 | 231 | 11 | 553 |
To use the Response Surface Method with a Central Composite Design, do the following:
| Command(s): | PDMETH,RSM,CCD PDDOEL,Name,CCD,... |
| GUI: | Main Menu> Prob Design> Prob Method> Response Surface |
PDDOEL allows you to specify design of experiment options.
See the Theory Reference for ANSYS and ANSYS Workbench for more details.
A Box-Behnken Design consists of a central point plus the midpoints of each edge of an N-dimensional hypercube.
The location of the sampling points for a problem with three random input variables is illustrated below.
The number of sample points (simulation loops) required for a Box-Behnken design as a function of the number of random input variables is given in the table below:
| Number of random input variables | Number of coefficients in a quadratic function (with cross-terms) | Number sample points (simulation loops) |
|---|---|---|
| 1 | N/A | |
| 2 | 6 | N/A |
| 3 | 10 | 12 |
| 4 | 15 | 25 |
| 5 | 21 | 41 |
| 6 | 28 | 49 |
| 7 | 36 | 57 |
| 8 | 45 | 65 |
| 9 | 55 | 121 |
| 10 | 66 | 161 |
| 11 | 78 | 177 |
| 12 | 91 | 193 |
To use Response Surface Analysis with the Box-Behnken design option, do the following:
| Command(s): | PDMETH,RSM,BBM PDDOEL,Name,BBM,... |
| GUI: | Main Menu> Prob Design> Prob Method> Response Surface |
PDDOEL allows you to specify design of experiment options.
See the Theory Reference for ANSYS and ANSYS Workbench for more details.