Did you complete our Beginner Tutorial Part 1 and our Beginner Tutorial Part 2?

Congratulations, now, you will learn how to create different modes and time sequences of the Fan with only a few steps.

This tutorial will take approx. 15 minutes to complete.

(1) Add Modes

Some values are not static but depend on the state of the product you are building. This is what modes are for: they track different configurations and their relationships with your product.

Define the modes of your system: different speeds, power modes, and ON/OFF-states

  • Our motor can run at 3 discrete speeds which can be modeled by "modes". Therefore, to create these 3 modes, open the Motor (1) component. Then:

    • Click on the Modes tab (2) in the top bar as shown. 

  • A modes page would open up. Click on the + button in the top left next to Name column or click on the button at the bottom right to add a new Mode-list.

    • Insert name = speed_settings (1)and ´#´ number of modes = 3 (2)

    • click Create(3).

  • Expand the properties and field names of the modes (by clicking on the arrow next to Vali Name on the left)

  • Rename the speed_settings  field names by clicking on the default names a,b and c and change them to:

    • a = ZERO

    • b = LOW

    • c = HIGH

  • Go back to Valis page by clicking on the Properties tab in the top bar alongside Modes.

  • Click on + button to open the 'Create new' dialog and choose Matrix (1). Add the following properties :

    • Name = rotational_speeds(2)

    • Mode reference = Motor.speed_settings(3)

    • Unit = rpm (4)

    • Click Create (5)

  • Expand the properties of the Vali rotational_speeds

  • Change the values  (which currently are 0) by clicking on them. Modify them to the following:

    • ZERO = 0

    • LOW = 2000

    • HIGH = 5000

  • The matrix properties now shall look like this: 

  • Now create another mode for the Speed_controller: Click on the component Speed_controller (1). Go to the Modes Tab. Add a new Mode with:

    • mode name = power_modes(2)

    • number of modes = 2

  • Rename the field names: a = ON and b = OFF (3)

  • Repeat these steps in order to add a mode for the component Fan (1) with:

    • mode name = state (2)

    • number of modes = 3

    • field names OFFMIN and MAX(3)

(2) Make Valis Mode-Dependent

Now that you have defined the modes of your system, you can make Valis dependent on them. So a Vali might not always have the same value, but actually a value dependent on a certain mode

Make your PowerConsumption Mode-Dependent

  • Open the component Fan and go to the Properties in the top bar.

  • Expand the Vali PowerConsumption to show the Vali description.

  • Click on the button Make mode dependent

  • In the pop-up, select mode = Fan.state and confirm with Update.

  • Repeat the same procedure for Motor and Speed_controller:

    • Go to the PowerConsumption of the Motor, click on "make mode dependent" and choose Motor.speed_settings in the pop-up

    • Go to the PowerConsumption of the Speed_controller, click on "make mode dependent" and choose Speed_controller.power_modes in the pop-up

  • Then, change the values of the power consumption of Motor and Speed_controller in the different modes, by clicking on the respective Values under the Values heading according to the following:

    • Motor:

      • OFF = 0

      • MIN = 1.0

      • MAX = 4.0

  • Speed_controller:

    • ON = 0.1

    • OFF = 0

(3) Link the Modes

States of a system can depend on each other. This is why in Valispace you can link modes that belong together

Create a connection between Fan-states and the modes of Motor and the Speed_controller

  • Go to the Fan component

  • Go to the Modes tab from the top bar and expand the mode state

  • Click on the linking symbol 

  • Click on Select Mode..., select Speed_controller.power_modes and click Add link

  • Click on Select Mode..., select Motor.speed_settings and click Add link

  • Now select the links between the Modes as follows:

Click on the Fan component. Go to the Properties tab. After Valispace has finished its calculations, you can observe that the Fan PowerConsumption has changed to the following values:


Next Steps?

Congratulations, you now know your way around Valispace!



Or you could improve your Desktop Fan project. Here are some ideas:

  • Write some marketing material in Word, using the Valispace Word Plugin to include technical values that are automatically kept up to date with your design.

  • Or how about creating a simulation to calculate the resulting air displacement depending on the fan modes? You can directly access all Valis from Matlab, using the Valispace Matlab Toolbox.

  • Add a solar panel component to make the fan portable. You can make the maximum rotational speed dependent on the sun angle of the solar panel.