MBSE and SysML Best Practices

Modeling The Domain and System Context

Always start with the operational context of the system under development

Start your system model with a context diagram


Domain and context modeling

Every system operates within a context, say, manufacturing, chemical process automation, or mission planning.

Every context exists within a domain. For example, mission planning could exist within the domain or spaceflight in the astronautics industry, or within the domain of battlefield in warfare.

Domain models and system context diagrams help establish the relevant conceptual space around the system under consideration. They serve a communication function that goes beyond technical details so that you can lead meaningful conversations with management and business decision makers when needed.

The context diagram

Building context for the system under consideration is a an important project-level step at the early stage of requirements formulation and gathering, a step that engineers and system modelers might be tempted to skip (and usually do.) Do not skip this step because it is your entry point into any present and future conversation with the non-technical community throughout the lifetime of the project.

It is a best practice in SysML to start a project with a context diagram in order to explain, in non-technical terms, the operational context for the system under development. By doing that, you are establishing a basis for conversation with various project stakeholders who are not involved in the technical aspects of building the system.

A domain model is defined separately and prior to a context diagram. For instance, the domain of battlefield is modeled in terms of a location of ground warfare, terrain, the point of contact between opposing forces, and the strategic importance of the geographical location. That domain model could be further extended to include "multi-domain battlefield" (*), which is the interconnection of multiple battlefield domains.

* “domain” in "multi-domain" is a battlefield concept, not the general notion of a domain used in this text, which is a sphere of activity, governance, or knowledge.

The diagram in Figure A is referred to as a "context diagram." It is modeled with an ibd. Note that the standard SysML notation for ibd properties is overridden with visually descriptive icons for the benefit of non-SysML consumers of this diagram.

The diagram itself is an ibd stereotyped with «ContextDiagram», which classifies what kind of ibd it is. The classification scheme is not normative SysML but one that is specific to your organization. This is considered to be a best practice in general. Look for industry standards that your organization conforms to.

Because the context diagram is an ibd, we must first create the bdd that it corresponds to.

Figure A — Context diagram for the Chemical Reactor Example of SysML context diagram in Automation and Control Engineering

Relationship between domain model and system context

When you model the context of the system with a context diagram, you include a reference to the domain model under which this context operates. There is no standard way in SysML to do that. In this example, this is accomplished by including the context diagram within a SysML Block (see diagram label) bearing the name of the domain under which this context exists: Process Automation Domain in this case.

I will dedicate a separate best practice post on domain modeling.

How to build a context diagram

You start by answering the question, “Who is doing what?”

You then elaborate by painting a simple picture of the system under consideration.

This context diagram in figure A offers a simple vignette of two domain performers (the 'who' of ‘who is doing what’) and their involvement with the system under consideration (the ‘doing what’ part.)

Notice that the context diagram abstracts away all details not relevant to the simple picture of the system under consideration.

Context of the organization

You can go further at this early stage of the project and define the context of the organization. This is also an important step that will set the stage for defining the SysML Views and Viewpoints, which define all stakeholders and their concerns.

In this example, the organization is a manufacturer of industrial chemical-based products.

The context of the organization combines an R&D department, automation department, safety department and operations as its structure of production. Each of these departments will have a View and corresponding Viewpoint defined for it.

The Chief Operations Officer (COO) is an identified stakeholder for this system. Their primary concern is to realize the manufacturer's competitive advantage, which is its ability to meet its service level agreements (SLA) at a high degree of consistency. That consistency is their grounding for guaranteeing delivery of manufactured products on time and to the level of quality promised to its customers..

Next steps

This best practice helps the modeler establish a foundational understanding of the project, the context of the system under consideration, as well as the context of the organization, by modeling the domain, system context, and Views and Viewpoints, in that order.

The Master SysML with the Automation and Control Engineering Practicum goes into the step-by-step details for creating a system context diagram and how to relate it to other system model content.

Our Courses & Tutorials

All courses and materials are prepared and delivered by expert practitioners in the field.

The Systems Modeling Language (SysML) 1.7, 3-Day Comprehensive, Expert-led Training Course

An instructor-led, hands-on accelerator course for corporate and government systems engineers and related roles. Learn how to apply the SysML language in large-scale projects, hands-on lab work, and MBSE best practices used in business, automotive, aerospace, and defense.

Get extensive training materials in PDF format + solution model for the lab project.

Learn more ...

The Systems Modeling Language (SysML) 1.7, Comprehensive Accelerator On-Demand Video Course

An on-demand, self-study, hands-on accelerator course for corporate and government systems engineers and related roles. Learn how to apply the SysML language in large-scale projects, hands-on lab work, and MBSE best practices used in business, automotive, aerospace, and defense.

Get 6 months access to the on-demand training videos + solution model for the lab project.

Learn more ...

The Unified Modeling Language (UML) 2.5, 3-Day Comprehensive, Expert-led Training Course

An instructor-led, hands-on accelerator course for corporate and government software engineers and solution architects. Learn how to apply the UML language in large-scale projects, hands-on lab work, and enterprise modeling best practices used across industries.

Get extensive training materials in PDF format + solution model for the lab project.

Learn more ...

Consulting and Mentoring for Model-based Systems Engineering (MBSE) and Enterprise Modeling

This consulting and mentoring service provides expert guidance in Model-based Systems Engineering (MBSE) and Enterprise Modeling, offering innovative strategies and practical solutions to meet organizational needs. Ideal for professionals seeking to enhance system design and DevOps efficiency.

Learn more ...

Sparx Enterprise Architect (EA) v17 Comprehensive Tutorial for SysML

This tutorial is the fastest way to learn Sparx Enterprise Architect (EA) for the corporate and government systems engineer and enterprise modeler. This step-by-step tutorial comes as a PDF file with thorough instructions, spread across 58 modules and 78 pages on how to use EA in enterprise and engineering environments.

Learn more ...

The Sparx EA v17 Advanced Tutorial for the Lead Enterprise Architect

PDF tutorial for the lead enterprise and solutions architect leading enterprise architecture programs in corporate and government organizations. It combines applied theory and hands-on instructions for learning metamodeling, and how to build domain specific languages (DSL) in the context of an architectural framework.

Learn more ...

Master SysML with the Automation and Control Engineering Practicum

Ready to elevate your SysML and model-based systems engineering (MBSE) expertise? Dive into our SysML Practicum - Automation and Control Engineering, a comprehensive 58-page PDF workbook packed with a complete solution model. This hands-on project is designed to significantly enhance your MBSE skills.
58-page Workbook + Solution Model

Learn more ...

VISIT OUR ONLINE STORE

Phone: (657) 999-0086

E-BOOK

Surviving Digital Transformation


Business technology is in the process of consolidation. Surviving Digital Transformation is a book of strategy written for the pragmatic technology executive looking to simplify and reduce the risks and daunting challenge of coping with digital transformation and the new wave of information technologies. It addresses the concern for business continuity in a climate of high disruption. It offers every decision-maker in medium and large companies a fresh outlook and approach for dealing with their existing computing capabilities, the “legacy enterprise applications” that their business have come to rely on, as they confront the inevitable threats and opportunities of digital transformation.

AVAILABLE ON AMAZON