simple roll-凯发k8网页登录
this example shows a simple roll-up analysis of a robotic system to calculate the total weight and cost of the system from its individual parts. you can perform roll-up calculations on any other system metric, for example, total power. in system composer™, you can use the the analysis tools to iterate over elements in an architecture instance, perform calculations, and display the results in a table.
open model and modify properties using property inspector
to open the model, run this command.
model = systemcomposer.openmodel("robotphysicalarchitecture");
in the physical architecture [1] model, select the computer
component. in the , expand the physicalcomponent
stereotype, and view or modify the property values for the individual weight, unitweight
, and the individual cost, unitcost
.
based on the property definition on the systemprofile
profile, you can change property values of model elements in the property inspector. use the to change property names and units for the systemprofile
profile.
perform simple roll-up analysis to calculate total cost and total weight
to perform a roll-up analysis, instantiate the architecture model by navigating to modeling > analysis model and opening the tool. an instance model is a collection of instances of architectural elements. use this instance to calculate a total weight and total cost for the system by adding up the individual values for each model element.
in the tool, select all stereotypes by selecting the systemprofile
profile check box. specify the analysis function by clicking the folder icon then selecting costandweightrollupanalysis.m
. then, for iteration order, select bottom-up
. confirm that strict mode is selected, so that elements in the instantiated model get properties only if the corresponding element in the composition model has the stereotype applied.
to view the instance, click instantiate to create the instantiated architecture model and launch the tool. click analyze to execute the bottom-up analysis iterator. the iterator calls the analysis function for each element in the instantiated architecture as an input argument as the iterator works its way from the deepest level of the architecture to the top.
the total cost for the robotphysicalarchitecture
architecture model is 5,100 dollars
, and the total weight of the components is 55 kg
. using these metrics, systems designers can change the overall design to meet system requirements then analyze the system again. adjust the property values in the analysis viewer and rerun the analysis to optimize the design to reach a solution that is acceptable both from the cost and weight perspectives.
references
[1] faisandier, alan, and rick adcock. “physical architecture.” guide to the systems engineering body of knowledge (sebok) v. 2.7, released october 31, 2022. .
see also
tools
- | |
objects
functions
- | | | | | | | | | |