calculate endurance using quadcopter architectural design -凯发k8网页登录
this example shows you how to create the physical architecture [1] of a quadcopter following a target green ball using system composer™ and requirements toolbox™ and following a model-based systems engineering (mbse) workflow. start by defining requirements, then extend architectural data using stereotypes and custom property values for model elements, and finally use analysis to iteratively improve on the design.
define functional requirements for quadcopter design
the first step in the mbse methodology is to define requirements. the concept of operations, or conops, define the overall idea of the system. you then derive functional requirements from conops requirements and further define the logical and physical subsystems by linking requirements.
1. load simulink® customizations.
sl_refresh_customizations
2. load the physical architecture model in memory to view its requirement links.
systemcomposer.loadmodel("quadarchphysical");
3. open the requirement sets.
concept of operations
functional requirements
logical requirements
physical requirements
slreq.open("conops"); slreq.open("functionalreqs_quad"); slreq.open("logicalreqs_quad"); slreq.open("physicalreqs_quad");
4. open the (requirements toolbox).
slreq.editor
inspect the conops requirement target characteristics
. the requirements under the decomposed by list represent the requirements contained in the top-level requirement. the requirement target identification
under the derived from list represents requirements derived from the conops requirement.
to open the quadcopter physical architecture model, run this code.
systemcomposer.openmodel("quadarchphysical");
manage requirements and architecture together in the requirements manager from requirements toolbox. navigate to apps > requirements manager. you are now in the requirements perspective in system composer. in this perspective, you can see which requirements are associated with specific components in the physical architecture.
specify functional design using stereotypes and properties
stereotypes, defined on a profile, include properties to specify metadata on model elements to which stereotypes are applied.
to open the tool, on the system composer toolstrip, navigate to modeling > profile editor. alternatively, run this command.
systemcomposer.profile.editor
the airvehicle
stereotype applies to components and inherits from the base stereotype hw_implementation
. each property under the airvehicle
stereotype is specified by a data type defined by type
, and some properties include an engineering unit defined by unit
. you can apply the airvehicle
stereotype to components in the quadcopter physical architecture to elaborate on these components with specific property values. define these property values for the rpicam_radiocomms
component in the property inspector.
perform roll-up analysis to calculate endurance for quadcopter design
to open the tool, on the system composer toolstrip, navigate to modeling > analysis model. select all the stereotypes under the quadcopterphysicalproperties
profile. click the open button, then open the analysis function file calculateendurance.m
. select bottom-up
for iteration order. click instantiate.
in the tool, you can use an analysis function to calculate roll-up property values such as batterycapacity
, payloadbatterycapacity
, powerdraw
, and totalmass
. the analysis function also calculates the performance characteristics powerdraw
and endurance
. for more information, see . click analyze to view the analysis results highlighted in yellow.
the endurance
property for this particular configuration is calculated as approximately 3.825
using this equation.
you can change the variant configuration and run the analysis function again to calculate endurance
and compare different proposed designs.
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
| (requirements toolbox) |