Download Statistical Analysis of Temperature Data for Engine and Radiator Coolant - Prof. Christiaa and more Assignments Mechanical Engineering in PDF only on Docsity!
ME6105 MODELING AND SIMULATION
C. Paredis
S. Thompson
HW4: Uncertainty Analysis
T.J. Louw
If everything isn't black and white, I say, "Why the hell not?"
- John Wayne
ME6105 HW4 Objectives
To develop a deeper understanding of uncertainty in engineering design
To learn how to compute with uncertain information using ModelCenter
To learn how to elicit beliefs in terms of subjective probabilities
To gain experience in judging the importance uncertainty plays in assessing system
performance
To gain an understanding of how the uncertain variables affect the measures of
effectiveness in your design decision
Modelcenter installed – OK
Getting Started Guide – OK
LHS Driver in C:\Program Files\Phoenix Integration\Analysis Server 5.1\
analyses\drivers - OK
Modelica model wrapping :
ECO_TJ_Louw.fileWrapper
Use test variables :
Input1 – HeatFlow [W]
Input2 – Air3 [m^3 /s]
Output1 – Eng_Coolant_Out K]
Output2 – Rad_Coolant_Out [K]
OK
Results equal between ModelCenter & Dymola
Task 2.1 Uncertain Variables and initial triangular distributions
ME6105-HW4 2 OF 28
Task 1: Become Familiar with ModelCenter First, install ModelCenter and become familiar with it by going through the installation page that you can find in the Reading Materials section of the course web-site. Once installed, the best way to learn how to use ModelCenter is to go through the "Getting Started Guide" that is offered as the top-most option when opening the software. This will not take long -- you will see that this software is very easy to use. Also make sure to install the LHS driver and to experiment with wrapping your Modelica model. Both will be needed in the subsequent tasks of this assignment. Task 2: Identify and Model the Uncertainty in your Design Analysis Model Identify the uncertain variables that you think contribute significantly to the uncertainty of the measure(s) of effectiveness your model is predicting. If you are not sure whether a specific variable plays an important role, then include it in your analysis -- err on the safe side. In a first pass, elicit a triangular distribution for each of the uncertain variables. Pick what you believe are reasonable values for the lower, upper and max of the triangular distribution (don't be overly conservative at this point -- it is ok to cut off some of the tails of distributions when selecting a lower and upper bound). Next, perform a Central Composite experiment to determine the Main Effects. You will use this as a tool to help you focus on the most important sources of uncertainty. Although you will include all the uncertainties you have identified in your model, for the most important contributors, you will go through a more detailed elicitation and define a model that is more accurate than just a triangular distribution. For the most important sources of uncertainty, elicit your beliefs through a series of elicitation questions as discussed in class. Each group member should elicit his/her beliefs for at least one variable. Once you have identified a set of points on the CDF of your subjective probability distribution, enter the points into the CDF spreadsheet to obtain the full CDF spline and compute the inverse CDF. Note: You will need to save a separate version of the spreadsheet for each uncertain variable. IN YOUR REPORT:
- List your uncertain variables and your initial triangular distributions.
- Discuss the results and your conclusions from the Central Composite Design.
- Document the elicitation process in your report: include the elicitation questions and the resulting CDF.
Create a new sub-folder in C: \
Program Files\ Phoenix
I ntegration\ Analysis Server 5. 1 \
analyses\ wrappers
Copy the files "dymosim.exe"
and "dsin.txt" to folder
Modify * .fileWrapper as needed
with new I / O parameters
Rename the file "dsin.txt" to
"dsin.txt.template"
Run Dymola Model to update
files
Validate ModelCenter results
against Dymola results
Create a new sub-folder in C: \
Program Files\ Phoenix
I ntegration\ Analysis Server 5. 1 \
analyses\ wrappers
Copy the files "dymosim.exe"
and "dsin.txt" to folder
Modify * .fileWrapper as needed
with new I / O parameters
Rename the file "dsin.txt" to
"dsin.txt.template"
Run Dymola Model to update
files
Validate ModelCenter results
against Dymola results
Moments:
Mean: 358.
Std Dev: 13.
Std Err Mean: 0.
Upper 95% Mean: 359.
Lower 95% Mean: 357.
N: 1000
Variance: 186.
Skewness: 3.74568728568693E-
Kurtosis: -0.
CV: 3.80772558055199E-
Quantiles:
Value (K)
Occurrences
Trans_Cooler_Oil_Out
Task 2.2 Discussion of results of Central Composite Design
Engine Coolant Out
Temperature
Radiator Coolant Out
Temperature
Trans Oil Cooler Out
Temperature
HeatFlow _Engine Ambient_Air_Temp_In AirFlow Coolant_Volume_Flow
Ambient_Air_Temp_In HeatFlow _Engine AirFlow Coolant_Volume_Flow
Ambient_Air_Temp_In HeatFlow _Engine AirFlow Coolant_Volume_Flow
The conclusion is that all three variables play significant roles and are very
sensitive to the uncertain interval width selected. All three variables will remain
candidates for further analysis.
Task2.3 Elicitation Process of Beliefs
Heat Flow [kW]
Elicit a continuous subjective probability distribution function of the engine heat flow
variation as in Table 2.2.
Specific Question: For peak power conditions on the Cummins ISM425, what will
the heat rejection rate in kilowatt be to the engine coolant?
P(X=170)
P(X=170) = 0.9 choose B P(X=170) = 0.1 choose A P(X=170) = 0.7 choose A P(X=170) = 0.85 choose B P(X=170) = 0.80 indifferent P(X=150) P(X=150) = 0.9 choose B P(X=150) = 0.6 choose B P(X=150) = 0.1 choose A P(X=150) = 0.2 indifferent P(X=190) P(X=190) = 0.95 choose B P(X=190) = 0.8 choose A P(X=190) = 0.85 choose A P(X=190) = 0.9 choose A P(X=190) = 0.95 indifferent P(X=180)
Using the reference lottery method:
A:
Win a BMW R1200C Cruiser if the heat load <= x
Win a used Harley Davidson T-Shirt if the heat load is > x
B: (dark chocolate M&M’s)
Win a BMW R1200C Cruiser with probability P
Win a used Harley Davidson T-Shirt with probability (1-P)
P(X=180) = 0.5 choose A P(X=180) = 0.8 choose A P(X=180) = 0.9 indifferent P(X=160) P(X=160) = 0.9 choose B P(X=160) = 0.6 choose B P(X=160) = 0.5 indifferent
CDF - HeatFlow
X values
Probability
Figure 2.4 CDF for Heat Flow Uncertainty
Air Flow [m 3 /s]
Elicit a continuous subjective probability distribution function of the air flow through the
radiator core as in Table 2.2.
Specific Question: For peak power conditions on the Cummins ISM425 and the
existing system design flow conditions, what will the air flow rate through the
radiator core be?
(Use same reference lottery method as before).
P(X=5) P(X=5) = 0.9 choose B P(X=5) = 0.3 choose A P(X=5) = 0.8 choose B P(X=5) = 0.7 choose A P(X=5) = 0.75 indifferent P(X=2)
(Use same reference lottery method as before).
P(X=300) P(X=300) = 0.9 choose B P(X=300) = 0.3 choose A P(X=300) = 0.7 choose A P(X=300) = 0.8 indifferent P(X=310) P(X=310) = 0.9 choose A P(X=310) = 0.95 indifferent P(X=295) P(X=295) = 0.1 choose A P(X=295) = 0.4 choose B P(X=295) = 0.2 choose A P(X=295) = 0.3 indifferent
CDF - Ambient Air Temperature In
X values
Probability
Figure 2.6 CDF for Ambient Air Temperature In Uncertainty
Figure 3.1 Monte Carlo with three main uncertain variables
Focus will remain on the Radiator Coolant Out Temperature since it captures the
variability observed on Engine Coolant Out Temperature.
Task 3: Determine the Expectation and Standard Deviation of the Model Output Just for the sake of exploring the nature of the uncertainty in your problem, perform a Monte-Carlo analysis and investigate the histogram of the model output. Next, use Latin Hypercube Sampling to determine the expectation of the output of your Modelica model. Use the LHS driver rather than the DOE tool so that you can add the LHS analysis to your ModelCenter model. IN YOUR REPORT:
- Discuss the Monte Carlo histogram. Does it match your expectations? Can you justify its shape?
- Compare the expectation from the LHS to the expectation from the Monte Carlo analysis.
3.1 Monte-Carlo Histogram Discussion N=
First, I’ll have to admit that this is powerful medicine. Being able to run typical design
variations with this degree of simplicity, will surely benefit the decision process
significantly.
The mean is 10°K higher than anticipated, with the large standard deviation being
indicative of the dispersion’s magnitude.
The magnitude of skewness towards the low end for both outputs come is more than
expected. I was counting on some tendency due to the CDF elicitations trending
towards the lower limits. The excessive amplification of the skewness must be the
contribution from the Ambient Air In that has a decided high probability towards the
lower end of the distribution
A fair amount (±8%) of samples ended up outside the allowable 390°K Radiator
Coolant Out Temperature limit (Figure 3.3 red occurrences) with 6 outliers above
480°K that is particularly worrying. Finding these sinners was fairly easy by exporting
the 1000 sample table to Excel and sorting the data.
Turns out the culprit is a very low probability value for airflow, in other words sample
values close to 1 m^3 /s. This being significantly below the intended design nominal of
5.3m^3 /s, proves that my uncertain interval selection was way too brave. Also the fact
that the CDF definition allows for values below the interval lower limit. In reality this
would translate to a clogged up radiator core that limits airflow sufficiently to cause an
excessive fan-on duty cycle and eventually engine de-ration (overheating fail safe).
This happens.
I will have to modify the Air Flow uncertainty range [3 – 7] m^3 /s and update the CDF
and MC run.
Here goes:
The mean has now dropped to the expected value and sigma has almost halved. The
3% samples above the 390°K is still not acceptable but will have to do for now. I
believe a further tweak to raise the lower air flow limit will get this to an acceptable
level.
CDF - AirFlow
X values
Probability
Figure 3.4 – Updated AirFlow CDF with higher lower limit
Figure 3.5 – Updated MC Histogram for Radiator Coolant Out Temperature
Figure 3.6 – MC 30K Histogram for Radiator Coolant Out Temperature
MorrisResults.csv = [ 1.HeatFlow, 2.AirFlow, 3.Amb_Air_In , 4.Engine, 5.Radiator] Task 4: Perform a Sensitivity Analysis Finally, perform a sensitivity analysis using the Method of Morris. The goal is to get a sense for the sensitivity of your responses to variations in your uncertain variables and decision variables. Generate the experiment design using the Matlab script generate_experiment.m. The m-file that is provided to you is a generic script. You will need to customize it for your own project. For the lower and upper bounds of the uncertain variables for which you have elicited your subjective probability use the 5th and 95th percentiles, respectively. Choose appropriate upper and lower bounds for your decision variables and any additional uncertain variables for which you have not yet elicited your subjective probability. Enter these bounds into the appropriate lines in the generate_experiment.m file. Also specify the number of random observations you want to make. Use your own judgment to determine how many observations to make based on the time it takes to simulate your model and the number of uncertain factors you have. You should make at least twenty observations to get a good estimate, but 100 observations is too many. After making these customizations, run the Matlab script to create the .csv file "MorrisExperiment.csv". In Model Center, use the MorrisExperiment.csv file to define a custom experiment using the DOE tool. Run the experiment and export the results as MorrisResults.csv. Select the option to have the variables as columns rather than rows. Open MorrisResults.csv in MS Excel. Make a note of the order of the responses (if you have more than one) and delete the header row so that there are only numbers in the file. Save the file, still in .csv format. Copy this file to your Matlab working directory. Generate the Morris plots using the Matlab Script generate_plots.m. This m-file is also a generic script. Customize this script with the number of responses specific to your project. Be certain that you list them in the script in the same order as they are listed in the Model Center results. Note: The labels of the various red dots on the Morris plots are often overlapping or located far from the corresponding dot. Use the arrow tool on the Matlab plot to move these labels around so that they are legible. Sometimes the labels are missing altogether because they are displayed outside of the axes in the figure window. See the stats matrix (an output of the generate_plots.m script) for guidance on which dot corresponds to which factor if the labels are overlapping, unclear, or missing. IN YOUR REPORT:
- Show the Morris plots. Discuss the meaning of the plots and any conclusions you can draw from the analysis.
- Compare the results from the Morris experiment with your results from the Central Composite design in Task 2. Are the results similar? Why or why not?
The two Morris plots for the respective coolant exit temperatures are almost identical.
The effect of the Heatflow (1) input parameter is slighly closer to the Mean for the
Radiator Coolant Out Temperature than the Engine Coolant Out Temperature. This is
due to the temparature differential observed from engine out to radiator out.
The fact that all three effects lie far from the mean and outside of the absolute
statistically significant boundaries, indicates it’s importance as main effects.
Parameter 2 (Airflow) is furthest from the mean and has the highest sigma bolstering
the fact that it plays the primary role in the analysis with probable higher order and
interaction effects. From the Main Effect plots, this is expected. A surprise is the zero
standard deviation of Parameter 3 (Ambient Air In). I was expecting it to interact
significantly with (at least) Parameter 2. This raises the question: Is a high sigma
indicative of variables susceptible to interaction (amplified by others) or does it mean
that this variable is the amplifier? My graph tends to the former case which I suspect is
wrong…
The ranging of the effects in the horizontal axis furthest from the mean (2>3>1)
correlates with the expectation as determined in the Central Composite Experiment
from Task 2. I have ran this experiment again with the updated uncertainty intervals as
determined in Task 3.1.
Figures 4.3 & 4.4 indicates the main effects derived from the Method of Morris
experiment and Figures 4.5 & 4.6 are for the updated Central Composite analysis.
Table 4.1 depicts the comparative values.
Parameter
Output Engine Coolant Out Radiator Coolant Out
Analysis
Method
Method of
Morris
Central
Composit
e
Method of
Morris
Central
Composit
e
Air Flow 46% 48% 48% 49%
Ambient Air In Temperature 33% 35% 33% 36%
Heat Flow 21% 17% 19% 16%
Table 4.1 Method Comparisson
The general allocation of main effects prevails for both methods with results very
similar between the two analysis. The Heat Flow parameter is slightly more
accentuated with the Method of Morris.
Just for the sake of proving the insignificance the Coolant_Volume_Flow parameter as
indicated by the Central Composite Design from Task 2.2, I performed an additional
Method of Morris experiment to see its mean and sigma. The results are exactly as
expected. As can be seen on the final figures in the appendix, point 1 lies close to the
zero point for the Engine_Coolant_Out ouput and exactly on zero for the
Radiator_Coolant_Out result.