Contenido principal

evaluate

R2026b

Evaluate failure parameters and cutsets of fault trees

Since R2026b

Description

evaluate(faultTreeDocument) evaluates the failure parameters and cutsets in the specified fault tree document.

example

Examples

collapse all

Create a fault tree document in the Safety Analysis Manager and retrieve the FaultTree object.

myTreeDoc = safetyAnalysisMgr.newDocument("fault-tree");
myFaultTree = myTreeDoc.FaultTrees(1);

Add two basic events to the tree.

myTopGate = myFaultTree.Gates(1);
event1 = createEvent(myTopGate);
event2 = createEvent(myTopGate);

Get the failure model for each event.

myFailureModel1 = event1.FailureModel;
myFailureModel2 = event2.FailureModel;

Retrieve the failure model parameters for each event, then specify the Q and W parameter values.

myParameters1 = myFailureModel1.Parameters;
myParameters1.Q.Value = 0.02;
myParameters1.W.Value = 0.02;
myParameters2 = myFailureModel2.Parameters;
myParameters2.Q.Value = 0.01;
myParameters2.W.Value = 0.01;

Get the EvalConfig object of the fault tree document, then set the mission time to 2.

myEvalConfig = myTreeDoc.EvalConfig;
myEvalConfig.MissionTime = 2;

Evaluate the fault tree.

evaluate(myTreeDoc)

Input Arguments

collapse all

Fault tree document in the Safety Analysis Manager, specified as a FaultTreeDocument object.

Version History

Introduced in R2026b