Skip to main content

Introduction

We extend our best wishes for safety and a rapid recovery to all those affected by Hurricanes Harvey and Irma, but we have a responsibility as system engineers to do more. The impact of these catastrophic weather events can be reduced by intelligent preparation and Model-Based Systems Engineering (MBSE) offers a better way to anticipate the often-unexpected cascades of events that catch us by surprise.

Back in 2009, Intercax started investigating modeling for watershed management with a state agency responsible for a very flat geographic area. Without altitude differences to encourage natural drainage, such agencies often need to take an active role in moving water around the district using pumps, locks and other regulators, especially during emergency situations.  Good simulations support these active interventions. New MBSE tools bridge the gap between architecture modeling and simulation.

In this blog post, we want to show how a SysML model, captured in IBM Rational Rhapsody or MagicDraw, can be transformed into a Simulink model that provides a foundation for modern simulation techniques in a very important domain.  For those interested in looking more closely, the SysML models can be downloaded using the links at the end.

Architecture of a Watershed Management District

For this simple example, we will start with two simple physical elements

  • A Reservoir is a body of water, which might represent a lake or pond, a river or canal, or water flow channel. It is characterized by volume, water level and flow characteristics. It has internal sources and sinks of water (e.g. springs, seepage, evaporation, etc.) and it may be connected to one or more other Reservoirs through Regulators.
  • A Regulator has the ability to move water in either direction between the connected Reservoirs through pumps, locks, spillways and other components.

Both of these elements can be modeled in detail in SysML using value, part and constraint properties, but in this example, we are simply concerned with the interfaces between them, modeled with proxy ports.

PowerPoint-diagram-of-Watershed-Management-Example

Figure 1 Schematic diagram of Watershed_System_01 example

Figure 1 shows a network of nine Reservoirs (labeled A) connected in a specific fashion by eight Regulators (labeled QS). Unlike the arrows in the diagram, the Regulators can move water in either direction, uphill and downhill being relatively unimportant factors in flat geographies. The watershed district operators often need to shift water around to avoid local flooding during storms, depending on current capacity and water level, as well as ultimate drainage into rivers and oceans.

SysML-block-definition-diagram-IBM-Rational-rhapsody-of-Watershed_Management_System_01

Figure 2 SysML Block definition diagram (IBM Rational Rhapsody) of Watershed_System_01 example

Our SysML model begins with a system composition captured in the block definition diagram in Figure 2.

Internal-block-diagram-of-Watershed_Management_System_01-MagicDrawFigure 3  Internal block diagram of Watershed_System_01 (MagicDraw), with color coding blue for Reservoir and tan for Regulator

We use an internal block diagram (from the MagicDraw version) in Figure 3 to show the connections between the parts of the Watershed_System_01 block.  In this diagram, all ports are proxy ports typed by the interface block Pump, which has a single flow property of direction out and type Real. Port type and stereotypes have been hidden to reduce clutter.

Model Transform into Simulink

MATLAB-Simulink-model-generated-from-SysML-model-watershed-management

Figure 4 MATLAB Simulink model generated from SysML model

Using Syndeia, our MBSE platform, we can take the models shown above and transform them into a Simulink model using a simple drag and drop action. The result is shown in Figure 4. The model transformation process carries over blocks, ports and connectors, with the Simulink ports typed by a single real parameter.  The MATLAB code within these blocks for the simulation will be provided by the Simulink expert.  However, Syndeia manages the connections between the SysML and Simulink elements so that changes in the structure of one or the other model can be recognized and reconciled as parallel model development proceeds.

Next Steps

Ultimately, our goal as model-based systems engineers is to build a single model that extends over all the software tools and data repositories needed to adequately describe the combined natural/artificial system in operation.  This includes requirements, electrical and mechanical design, control logic, physical and hydrological models and much more.  Only such an approach can give us both timely and accurate guidance during periods of system stress when the preservation of people and property is at serious risk.

Download SysML Models here:

Related Posts

Syndeia AI Agents – Part 1

Hello and welcome to a preview of Syndeia AI, a swarm of AI agents that are powered by Syndeia Cloud. These AI agents can take natural language inputs, fetch latest data from your ...
Manas Bajaj

Santa’s Mission 2024 with 8.2 billion landings made possible by Digital Threads (Day 5)

Santa has just returned from his whirlwind journey, and the workshop erupts in cheers. Elves spill into the command center, their faces glowing with joy and pride as they take in ...
Manas Bajaj

SDS Hardware, Software, and Verification Digital Threads go live (Day 4)

The air hums with the sound of high-tech enchantments and the cheerful chatter of elves hard at work. Twinkling fairy lights hang from the rafters, casting a warm, festive glow. ...
Manas Bajaj

3D Sleigh Assembly model coordinated with System Architecture (Day 3)

It is Day 3 and Tony Sparkgear (Chief-Hardware-Elf) had his team of elves are working hard to create a 3D model in NX parametric software to represent the Sleigh Assembly as shown ...
Manas Bajaj

Sleigh Delivery System – Architecture & Digital Thread Dashboard (Day 2)

It is 7 AM and North Pole is bathing in the first light of dawn reflecting from the snow. The Great Hall, ground zero of operations and logistics, is hustling and bustling with ...
Manas Bajaj

North Pole Calls Intercax for Digital Mission Possible (Day 1)

Today, Intercax received a call from Mrs. Claus, the heart and soul of operations and logistics at North Pole. Seven days from the finale and at a time when hope and love cannot ...
Manas Bajaj

SysML v2 and Digital Threads with Syndeia

SysML v2 is the next generation Systems Modeling Language for modeling complex systems that significantly enhances precision, expressiveness, usability, interoperability, and ...
Manas Bajaj

Digital Thread Conference 2024: A Milestone for Digital Engineering

AI for DT & DE | Part 1 – Connecting with OpenAI as a service in Syndeia®

Introduction – AI for Digital Threads and Integrated Digital Engineering Welcome to our new blog series – Artificial Intelligence (AI) for Digital Threads and Integrated Digital ...
Manas Bajaj