Creating Your First Moxie Simulation

In this tutorial, you will quickly learn how to set up and run a Moxie simulation project. In doing so, you will create a simple SysML model of an Unmanned Aerial Vehicle (UAV), its power system, and onboard computer, which you will expand upon in the next tutorials. In this first tutorial, you will not bother with any actual physics modeling, just a basic model of the system's internal behavior. In the next tutorial, you will continue to build out the SysML model, and in the final tutorial, you will add the physics using STK.

Section Description
Configuring a Moxie Simulation Project

Before you can run a simulation with Moxie, you need to ensure your No Magic project (.mdzip) is configured correctly. There are two ways to do this:

  1. Create a new project using the Moxie simulation project template. Use this option if you would like to start from scratch with a new project.
  2. Update an existing project to use Moxie. Use this option if you already have a model or state machines in a project and you would like to configure that project to use Moxie.

This section covers the following concepts:

Modeling a System with a Block Definition Diagram

When modeling a system or system of systems in SysML, you should start by creating a block definition diagram (BDD). A BDD is simply a view of the structural elements of your system (the blocks) and their relationships with one another. In this section, you will create a high-level BDD that models an Unmanned Aerial Vehicle (UAV), its power system, and its onboard computer.

This section covers the following concepts:

Adding Properties and Operations to Blocks

After outlining a system by creating a BDD, you need to fill in the details of the blocks so that they accurately model your system. Properties, operations, and relationships all help describe blocks and their interactions. In this section, you will add properties and operations to your blocks and create composite and associative relationships between them.

This section covers the following concepts:

  • Value properties
  • Part properties and Composition
  • Reference properties, Aggregation, and Association
  • Operations
Creating Instances with an Instance Specification Diagram

After defining your blocks, you need to create instance specifications for them so that you can use them in your simulation. Instance specifications allow you to set the initial property values for the blocks in your simulation. In this section, you will create an instance specification diagram containing instance specifications for each of the blocks in your BDD.

This section covers the following concept:

Modeling Behavior in a Simple State Machine

Before you can run a simulation using Moxie, you need to create a state machine to describe the behavior of your system. If you are not familiar with the concept of a state machine, you may want to read the introductory paragraphs of the state machines section in the SysML Modeling Reference. In this section, you will create a simple SysML state machine to model the behavior of powering on the UAV.

This section covers the following concept:

Running a Simulation with Moxie

Once you have described both the structure and behavior of your system, you are ready to run a simulation! If you completed the previous sections, then you already modeled a simple system of a UAV, its power system, and its onboard computer. In this section, you will execute the state machine for your system and observe its operation.

This section covers the following concepts:

Start Tutorial!