Modeling System Architecture of Small UAV

Overview

This example shows how to set up the architecture for a small unmanned aerial vehicle, composed of six top-level components. You also learn how to refine your architecture design by authorizing interfaces, linking to requirements, defining profiles and stereotypes, and running analysis on such an architecture model.

Open the project.

>> scExampleSmallUAV

Each top-level component is decomposed into its subcomponents. Navigate through the hierarchy to view the composition for each component. The root component, SmallUAV, has input and output ports that represent data exchange between the system and its environment.

Specify Interfaces

Define interfaces in a data dictionary. From the menu, click on Interface Editor.

Click the GS Commands port on the architecture model to highlight the architecture_gsCommands interface and indicate the assignment of the interface.

Inspect Requirements

Components in the architecture model link to system requirements defined in smallUAVReqs.slreqx. Open the Requirements Perspective. In the bottom right corner of the model pane, click the Show Perspectives button. Then, click the Requirements button.

Select components on the model to see the requirement they link to, or, conversely, select items in the Requirements view to see which components implement them.

Define Profiles and Stereotypes

To complete specifications and enable analysis later in the design process, stereotypes add custom metadata to architecture model elements. This model has stereotypes for these elements:

  • On-board element, applicable to components

  • RF connector, applicable to ports

  • RF wiring, applicable to connectors

Stereotypes are defined in XML files by using Profiles. The profile UAVComponent.xml is attached to this model. Edit a profile by using the Profile Editor. On the Modeling tab, click Import > Edit.

The display appears below.

Analyze the Model

To run static analyses on your system, create an Analysis Model from your architecture model. An Analysis Model is a tree of instances generated from the elements of the architecture model in which all referenced models are flattened out, and all variants are resolved.

Click Analysis Model on the Views menu.

Run a mass rollup on this model. In the dialog, select the stereotypes that you want to include in your analysis. Select the analysis function by browsing to utilities/massRollUp.m. Set the model iteration mode to Bottom-up.

Click Instantiate to generate an analysis.

The analysis function iterates through model elements bottom up, assigning the Mass property of each component as a sum of the Mass properties of its subcomponents. The overall weight of the system is assigned to the Mass property of the top level component, SmallUAV.