Manual1.6

15
V a P for Windows TM μ R r, s R μ S S μ M m σ M p f M σ R σ S M β · σ 0 0 β·σ M Institute of Structural Engineering 1.6

Transcript of Manual1.6

Page 1: Manual1.6

VaP

for WindowsTM

AA

µ Rr, s

R

µ S

S

µ M

m

σM

pf M

σ RσS

Mβ · σ0

0

β·σM

Institute of Structural Engineering

1.6

Page 2: Manual1.6
Page 3: Manual1.6

VaP 1.6 for Windows 1

Function and Purpose of VaP

The Variables Processor (VaP) enables the user of the pro-gram to deal with stochastic quantities, so-called variables, insome given mathematical expression. In view of one of theapplications of the program, this expression is called a limitstate function (LSF). The program lends itself to reliabilityanalysis, but may be used in a much wider context when eva-luating the influence of variables for problems encountered inother fields of engineering practice.

At first, the limit state function G(X) representing the problemat hand is defined using the usual mathematical notation andconcrete terms for the basic variables X . The variables thenhave to be described by choosing among a set of severaldistribution types. The results can be produced as a probabilityof failure, as the first four moments, or as a histogram of theresulting stochastic quantity G.

Requirements, Installation and Starting VaP

The program VaP, optimised for 16 bit processors, uses thegraphical interface Windows™. The PC must be at least of the386-family. VaP needs less than 2.5 MB of hard disk space.When using the Monte Carlo method, faster processors areobviously of advantage.

To install VaP on your computer simply insert the VaP instal-lation disk, choose the Run command from the menu File andtype a:\install.

A double click on the VaP icon starts the program and the mainVaP window appears as a standard Windows™ applicationwith its typical user interface and menu structure.

Page 4: Manual1.6

2 VaP 1.6 for Windows

Menus

The menu bar provides the essential commands and functionsfor processing stochastic quantities.

New Create a new VaP documentOpen... Open an existing VaP documentClose Close the active VaP documentSave Save the active VaP documentSave As... Save under a new name

Page Setup Setup the pagePrinter Setup Setup the printerPrint... Print the active VaP document

Exit Quit the program

File

All definitions of limit state functions and basic variables areintroduced and may be changed at any time during runtime ofthe program. The limit state function G(X) is written as analgebraic expression and is checked automatically for correctsyntax and consistency. Also, all variables are checked to en-sure proper definition.

DefineFunction Define a LSF, open the Inspector panelVariables Define Variables belonging to a LSFDeleteLSF Delete the active LSFReportLSF Report the active LSF and its variablesUndo Undo the previous delete action

Different methods of analysis are implemented in VaP. VaPcalculates the moments E[G(X)n] following procedures pro-posed by Evans, the probability of failure pf = P[G(X)≤0]using the well known FORM procedures and is able to pro-duce a histogram of G(X) based on Crude Monte Carlo tech-niques.

Page 5: Manual1.6

VaP 1.6 for Windows 3

Method

FORM First Order Reliability MethodMC... Crude Monte Carlo MethodMoments Numerical Integration MethodExpectation Expectation

G(E(X)) Evaluation with the expected values

VaP offers the possibility to define a number of LSFs andbasic variables. All defined limit states are stored in theWorkspace and are accessible from the menu Activate. Themaximum number of LSFs is limited to a number of 30.

Activate

G1 LSF G1G2 ...

G LSF G

Definition of a Limit State Function

After starting the program at first a new document must becreated (Choose New from the menu File or use the toolbar).An empty Report window with simple text editing featuresappears. Choose Function from the menu Define to see theInspector panel. The algebraic expression of the limit statefunction can be typed in the upper sub-window and ischecked, parsed, and compiled by pressing the Enter button. Ifthere are no syntactical errors in the expression the Inspectorshows, in the lower sub-window, all variables contained in thelimit state function.

The program syntax requires a function name, spelled by oneor more characters, followed by an equals sign (=) and thealgebraic expression. In this expression, a variable is intro-duced with a series of characters beginning with a letter anddistinguishing between capital and small letters. Notice thatused function names cannot be selected as variable names, andvice versa.

Page 6: Manual1.6

4 VaP 1.6 for Windows

VaP includes the possibility to define several different LSFs inthe same Workspace by renaming the original function in theupper sub-window, (e.g. G to G1) and changing its expres-sion. Switching back and forth between these is done usingthe menu Activate.

Figure 1: Inspector panel

To define a limit state function, the following operators andfunctions may be used:

• +,-,*,/

• Exponents with a preceding circumflex ^, for example x^2,x^(a+b) or x^-2, resp. SQRT(...) and SQR(...) as alter-natives for writing x^(1/2) and x^2

• Transcendental functions: COS(...), SIN(...), TAN(...),ARCCOS(...), ARCSIN(...), ARCTAN(...), COSH(...),SINH(...), TANH(...), ARCOSH(...), ARSINH(...),ARTANH(...), EXP(...), LN(...)

Page 7: Manual1.6

VaP 1.6 for Windows 5

• Standard normal distribution with probability densityfunction PDFN(...), cumulative distribution functionCDFN(...), and inverse of cumulative function INVN(...).For example G = CDFN(0.5)

• ABS(...), as well as the functions MIN(... , ...) andMAX(... , ...), which must be separated by commas asthey require two or more arguments

The arguments of trigonometrical functions and the results oftheir inverse functions have degrees as the unit. All above-mentioned abbreviations, the constants PI, the factor DEG(describing the ratio between degrees and radians) and theabbreviations of the LSFs, e.g. G1, are reserved names andmay not be used for defining variables.

The expectation E[pf] of the probability of failure, the so-called total probability, may be calculated by integration ofconditional probabilities pf(x) over the probability densities ofthe variables X. To solve this problem, a bar sign (|) has to beset at the end of the expression, e.g. G = A-B*C|B. Then, allbasic variables to be integrated follow, each separated by ablank space. An example for the use of this expectationoperator is shown in [Petschacher, 1993].

Definition of Variables

Now a distribution type must be assigned to each of the vari-ables. Each variable is defined globally inside a Workspace.By choosing Variables from the Define menu, the Variablespanel appears. Each variable, in turn, is assigned a distributiontype with corresponding parameters. Alternatively, the modusMoments, with expectation, standard deviation, and, ifnecessary, lower and upper bounds, or the modus Parameterswith parameters specific to the distribution type may bechosen. The modus Moments is set by default.

Page 8: Manual1.6

6 VaP 1.6 for Windows

Figure 2: Variables panel

The definition of the variable is read into the program bypressing the Enter button. If all corresponding parametersfulfil the conditions given by the distribution type, theprobability density function (pdf) of the basic variable appearsas a graphical screen output. The pdf may be saved as a bitmapfile (*.bmp ) by pressing the SaveBMP button.

By using the N button the next variable in alphabetical orderappears, with the P button the previous one.

Variables may also be defined as histograms. By selectingUserDef in the Variables window and by clicking the Enterbutton a UserDef panel appears. The lower and the upperbounds must be defined, followed by a sequence of frequen-cies separated by pressing the space bar on the keyboard. Byclicking Enter, the program will automatically calculate theclass width. It is also possible to open previously savedhistograms with the Open button (*.his). Histograms may besaved by clicking Save. Upon clicking Done, the histogramappears in the Variables panel.

Page 9: Manual1.6

VaP 1.6 for Windows 7

Figure 3: Entering a histogram

The Done button ends the definition procedure for the variab-les. It is good practice to save all the entries under a suitablename using the Save button under File.

There is no possibility of defining and handling correlationsbetween basic variables.

For more information about the definition of variables, seeDefinition of Distribution Parameters.

Analyses of a Limit State Function

Choosing G(E[X]) from the menu Methods calculates thevalue of G using the expectations of the variables.

An analysis based on the First Order Reliability Method(FORM) [Rackwitz, 1977] is performed by choosing FORMfrom the menu Method. The results, the so-calledHasofer/Lind index (also known as the geometrical β-value),the sensitivity factors α and the design values of the variablesare printed to the Report window. FORM sometimes has diffi-culties with user defined variables, due to the particular shapeof the corresponding histograms.

Page 10: Manual1.6

8 VaP 1.6 for Windows

By choosing MC... from the menu Method a panel for settingall elements for a Crude Monte Carlo [Rubinstein, 1981] ana-lysis appears on the screen. The Option Automatic is set bydefault enabling the user, by pressing Go!, to start the simu-lation. Go! then changes its name to STOP!, so that pressing ita second time interrupts the simulation. The results displayedin the window are the first four moments, the probability offailure and a graphical representation of the results as ahistogram. The graphic can be saved as a bitmap file (*.bmp)by pressing the SaveBMP button. The user may choose underOptions Define Values to change the number of classes, runsand simulations (limited to 10’000’000) and the bounds for thedisplay of the histogram on the screen. Pressing the Donebutton adds the numerical results, including the third and forthmoments, to the Report window.

Figure 4: Monte Carlo panel

The calculation of the first four moments using numericalintegration procedures [Evans, 1972] can be carried out bychoosing Moments from the menu Method. AdditionallyVaPcalculates the parameters of the respective Johnson curve, andan approximation for the probability of failure pf. For more

Page 11: Manual1.6

VaP 1.6 for Windows 9

information about this curve see [Petschacher, 1993; Hill,1976; Draper, 1952]. The parameters g, d, xl, and xi shown,correspond to γ, δ, λ and ξ in [Petschacher, 1993].

The expectation E(G(X)) of the function is calculated choosingExpectation from menu Methods.

Editing the Report

In order to relate results to the respective input data, it is re-commended to write a report of all the input data to the Reportwindow whenever definitions of variables or LSFs are chan-ged. For this purpose, choose ReportLSF from the menuDefine. Results can, optionally, be commented by the user,taking advantage of the editing capabilities of the Report win-dow.

Figure 5: Report window

Page 12: Manual1.6

10 VaP 1.6 for Windows

Saving and Printing

All definitions inside a Workspace and the Report windowmay be saved under *.vap. Automatically, two different filesare created. One is the *.vap file containing the LSFs and thevariables. The second file *.vpt is a text file, containing theReport window. This file can be read by any text processingprogram.

By choosing Print from the menu File the Print panel appears,enabling printing the Report window on any selected printer.

The results from the Report window can be integrated into textprocessing programs using simply Copy and Paste. Graphicalresults previously saved as bitmap files may be introduced intothe text as well.

References

Evans, D. H.: “An Application of Numerical Integration Tech-niques to Statistical Tolerancing: III - General Distribu-tions”; Technometrics 14: 23 - 35, 1972.

Draper, J.: “Properties of distributions resulting from certainsimple transformations of the normal distribution“; Bio-metrika 39, 290 - 301, 1952.

Hill, I. D., Hill R. and Holder R. L.: “Fitting Johnson Curvesby Moments - Algorithm AS99“; Applied Statistics 25,180 - 189, 1976.

Hill, I. D.: “Normal-Johnson and Johnson-Normal Transfor-mation - Algorithm AS100“; Applied Statistics 25, 190 -192, 1976.

Li, K.S.: “Point-Estimate Method for Calculating StatisticalMoments”; Journal of Engineering Mechanics 118:1506- 1511, 1992.

Page 13: Manual1.6

VaP 1.6 for Windows 11

Petschacher, M.: “Zuverlässigkeit technischer Systeme - Com-puterunterstützte Verarbeitung von stochastischenGrössen mit dem Programm VaP”; Institut für Baustatikund Konstruktion, Bericht Nr. 199, ETH-Zürich, 1993.

Petschacher, M.: “VaP a tool for practicing engineers”; Pro-ceedings ICOSSAR ‘93: 1817-1823, 1994.

Rackwitz, R.: “First Order Reliability Theories and StochasticModels”; Proceedings ICOSSAR ‘77: 199-220, 1977.

Rubinstein, R. Y.: “Simulation and the Monte Carlo Method”;John Wiley & Sons: New York, 1981.

Zhou, J. and Nowak, A. S.: “Integration Formulas to EvaluateFunctions of Random Variables”; Structural Safety 5:267-284, 1988.

Help

Assistants of Prof. Schneider, Institute of Structural Enginee-ring, Swiss Federal Institute of Technology, Zurich.

Address: Assistants of Prof. SchneiderIBKETH-HoenggerbergCH-8093 ZurichSwitzerland.Phone: +41 1 633 36 97Fax: +41 1 633 10 64e-mail: [email protected]

Page 14: Manual1.6

12 VaP 1.6 for Windows

Definition of Distribution Parameters

Distribution type Para-meters

Moments

Deterministic 1 : m

Rectangular

fX xb a

( ) =−1

a x b≤ ≤ , a b≠

1 : a

2 : b

ma b= +

2

sb a

=−12

Normal

fX xs

x m

s( ) exp= ⋅ − −

1

2

1

2

2

π

s > 0 , −∞ < < +∞x

1 : m

2 : s

Lognormal

fX xx

x( ) exp

ln= ⋅ − −

1

2

1

2

2

ζ πλ

ζ

ζ > 0 , 0 < < ∞x

1 : λ2 : ζ

m

s

= +

= +

⋅ ( ) −

exp

exp exp

λ ζ

λ ζ ζ

2

22

2

21

sLognormal

fX xx

x( ) exp

ln=

−( )⋅ −

−( ) −

1

2

1

2

2

ζ ε πε λ

ζ

ζ > 0 , ε < < ∞x

1 : λ2 : ζ3 : ε

m

s

= + +

= +

⋅ ( ) −

ε λ ζ

λ ζ ζ

exp

exp exp

2

22

2

21

sExponentialfX x x( ) exp= − −( )( )λ λ ε

λ > 0 , ε ≤ < ∞x

1 : ε2 : λ

m

s

= +

=

ελ

λ

1

1

Gamma

fX

ppx

b

pbx x( ) exp= ( ) −( ) −

Γ1

b > 0 , p > 0 , 0 ≤ < ∞x

1 : p

2 : bm

p

b

sp

b

=

=

Page 15: Manual1.6

VaP 1.6 for Windows 13

Beta

fX

r t

r txx a b x

b a B r t( )

,=

−( ) ⋅ −( )−( ) ⋅ ( )

− −

+ −

1 1

1

a x b≤ ≤ , a b≠ , r t, ≥ 1

1 : a

2 : b

3 : r

4 : t

m a b ar

r t

sb a

r t

rt

r t

= + −( ) ⋅+

= −+

⋅+ + 1

Gumbel (Largest)fX x x u x u( ) exp exp= − −( ) − − −( )( )( )α α α

−∞ < < +∞x , α > 0

1 : u

2 : α

m u

s

= +

=

0 577216

6

.

απ

α

Frechet (Largest)

fX

k k

xk

u

x

u

x

u( ) exp=

−⋅ −

⋅ − −

− − −

εεε

εε

1

ε ≤ < +∞x , u k, > 0

1 : u

2 : k

3 : ε

m uk

s uk k

= + −( ) −

= −( ) −

− −

ε ε

ε

Γ

Γ Γ

11

12 2 1

1

Weibull (Smallest)

fX

k k

xk

u

x

u

x

u( ) exp=

−⋅ −

⋅ − −

εεε

εε

1

ε ≤ < +∞x , u k, > 0

1 : u

2 : k

3 : ε

m uk

s uk k

= + −( ) +

= −( ) +

− +

ε ε

ε

Γ

Γ Γ

11

12 2 1

1

VaP includes additional Parameter Restrictions:m, s > 0,1/3 ≤ m/s ≤ 104, (Rectangular, Normal, sExp., Gumbel, Frechet)1/3 ≤ m/s ≤ 102, (Lognormal, sLognormal)

Special Distributions:A Rayleigh distribution may be defined, using a Weibull distribution(parameter k = 2 and ε = 0). An exponential distribution is obtainedby setting parameter k = 1 again using Weibull. Further, if theparameter k is set to 3.25889 or 3.31125 or 3.43938 or 3.60232, fourpseudo-symmetrical cases are obtained.The first four moments of the Frechet distribution exist only if theparameter k is larger than 4.A Beta distribution can change to a rectangular (uniform) distributionby setting r = 1 and t = 1, or to a triangular distribution by setting r =1 and t = 2.