Model 10 Helicopters in a Single Model

Markus Dahl, Wolfram MathCore AB

Join the Conversation #WolframTechConf

Content

Conditional components

Replaceable components

Demo with sport models

Parameter sweep in WSMLink

Helicopter example

Summary

Questions

Conditional Components

Why they are important (together with replaceable components)

Only “exist” if some condition is true

Easy to test scenarios using the same model

Demo: Conditional Resistors

Replaceable Components

Why use replaceable components?

Use one model and replace components instead of using different models

Selecting from a list of preconfigured options is more user friendly and less error prone

Replaceable Components

How does it work?

Possible to declare different choices for the replaceable component (not necessary)

Right-click component ⟶  Redeclare ⟶ Choose your configuration.

If no choices have been defined, redeclare component in text view

Demo: Sports Models

Parameter sweep and WSMLink

Why use parameter sweep?

Simulations will be run in parallel

Easy way to automate many simulations

Done in Mathematica which means that all data manipulation and plot functions can be used

Trajectories of 300 corner kicks at once

Parameter sweep over different initial velocities in x, y, and z directions, keeping a fixed initial rotation vector of (0, 50, -10) rad/s:

x: 33 to 38 m/s (along the goal line)

y: 6 to 10 m/s (upwards)

z: 5 to 14 m/s (along the touch line)

Helicopter example

Combining replaceable/conditional components and parameter sweeps

Replaceable main rotor, helicopter body - change number of blades or helicopter body configuration.

Conditional blade components in main rotor - change blade complexity.

Parameter sweep of different chord lengths and blade lengths

Helicopter Example

Parameter sweep over rotor blade lengths

What is the optimal blade length for a certain engine?

What happens when the engine slows down?

Summary

Replaceable and conditional components produce models that

Reduce risk of end user error

Reduce code duplication

Reduce the number of models and components needed in a library to simulate many different scenarios

Parameter sweeps parallelize simulations and make the comparison between different configurations very easy

Thanks for listening!

Questions?

markusd@wolfram.com