Simulation Workbench

The Simulation Workbench can be available and accessed based on the acquired license. If you have already purchased the corresponding license, you can find this workbench on the Workbenches Bar within SimLab Composer GUI.

Simulation Toolbar

image.png

SimLab Composer can be used to model the behavior of objects in 3-D space. Using its powerful physics engine allows simulation of the way bodies of many types are affected by a variety of physical stimuli, provided to simulate physical systems such as Rigid Body Dynamics in real-time and considering collision detection. The Simulation Workbench is dedicated to executing physical and mechanical simulations within the SimLab Composer application.  

The image below shows the workspace of the Simulation Workbench, where the Solid Editing panel is active by default. The workspace presents the Simulation toolbar, the Geometries Tree, Solids Tree grouped with the Links Tree. 

The Geometries Tree only appears in Solid Editing mode (When the Solid Editing dialog is open).

simlationWB.jpg

image.png

  1. Solids menu: Geometries are defined and classified, where each solid contains either one geometry or a group of geometries.
  2. Links menu: Properties of solids and relationships between each other are set.
  3. Simulation menu: Where simulation is controlled and executed.
  4. Interactive menu: to allow the user to control machines using a Keyboard, or a Joystick.

Check this mechanical simulation video


Solids Menu

To create a simulation the first step is to convert the 3D design to solid parts that can be physically simulated. This can be done either manually by selecting the parts and converting them to solids, or by clicking on Auto Detect Solids which will automatically detect the objects in the scene and convert them to solids.

The solids Editing panel includes the following functionalities, as shown in the image below:

image.png

The Geometries Tree and the Models Library are associated with the Solids Tab. Once the Solids Tab is activated, they will be displayed on the left side and bottom of the application window, respectively.

Auto Detect Solids

Automatically identify and classify a model's geometries and assembles into solids, by running an algorithm,  where each solid contains either one geometry/assembly or a group of geometries/assemblies.

In the image below the simulation workspace with an imported model is shown.  Solids in the model has been detected and shown in the Solids Tree.

image.png

If the imported model is from an analytical file format like STEP, this algorithm makes use of the solids hints already embedded in an object to identify it as a solid.

In some cases, the automatic detection method may not yield the required results,  the manual method for creating solids gives the user more control over solid creation.

Solid Creation

Sometimes more control over solids creation may be needed. So rather than using the automatic detect function, Solid Creation section functions in the Solid Editing dialog are needed.

Appearance

Sometimes, you may want a certain object to inherit the movement of a specified solid without including it in the equations of motion used by the corresponding solver, here the Manipulation Toolbar comes in handy. You find only one button in the Manipulation Toolbar, as shown in the following image:

image.png

Add Visuals

Attaches selected geometry to an existing solid as a visualization object for visualization purposes that are not included in the simulation calculations. To add visuals, select the desired object(s) from the Geometry Tree, then click the Add Visuals button. Once it isYLXimage.png clicked, the Select Solid dialog box appears for the user to select the desired solid to attach visuals. 



A solver is a component of SimLab Composer. SimLab Composer provides a library of solvers, each of which determines the time of the next simulation step and applies a numerical method to solve the set of equations that represent the model.

The Visual Icon appears next to the visual object's name in the Solids Tree. You can toggle this icon to turn it back as a normal object combined with the solid.

Visual elements can be disabled or enabled in the Solids Tree only if the Solids Tab is activated.

Hide / Show

This tool makes work easier while creating solids in complex models. It is considered a handy and cool tool while working in simulation, where the user can hide/show objects in the 3D area. 

Simulation Trees

There are three kinds of tree views in the Simulation Workspace: 

GeometriesTree.jpg Solids Tree.jpg Links Tree.jpg

Geometries and Solids Trees

Both Trees show a hierarchical outline view of geometries and solids existing in the scene. Each geometry/solid branch or node can have a number of subitems, this is often visualized by an indentation in a list. A geometry/solid can be expanded to reveal subitems, if any exist, and collapsed to hide subitems. Geometries/Solids Trees allow the user to easily manage and navigate objects in them.

In the image below, the Geometries Tree is shown located at the left side of the application window, and the Solids Tree is at the right. Both trees will appear when the Solid Editing dialog is open. Solids are included in the simulation calculations, while geometries are not. Using the functions in the Solid Editing dialog, a user can transfer objects from one tree to the other.

image.png

When the Solid Editing dialog is closed, the geometries tree will be hidden, and the Links Tree will appear grouped with the Solids Tree. It is a  graphical control element that presents a list of created links connecting solids in the scene. Selecting a link in the tree will display its properties in the Attributes dialog on the left for the user to edit.

image.png

Models Library

The Models Library acts as a container for pre-installed simulation models that come with the Simulation Edition of SimLab Composer, distributed into three groups: Basic Physics Experiments, General, and Collision (as shown in the following image). It is located at the bottom of the Solids workspace. You can choose any model of the provided sample just to run it as it is or edit it as you wish.

image.png

The toolbar of the Models Library is located horizontally on its right side;

The Models Library is only associated with the Solids tab; it appears once the Solids tab is activated. By default, it also appears when you switch to the Simulation workbench.

Links Menu

In simulation, the behavior of a solid is governed by two things, the first is the total external forces affecting it, and the second is the link that defines the relationship between it and another different solid that acts as a constraint that is enforced by.


Joints Group
Geometric Group
Spring Group
Force/Torque Group
Gears Group
Pulley Group


image.png
The ground always exists in simulation although it isn't visible to the user. 

The Lock Icon is different in the simulation. Locking an object makes it invulnerable to any external force.
In SimLab Composer, every simulation case requires creating solids but creating Links is optional (it depends on the nature of the simulation). A Link defines the relationship of two solids to each other. Consider these prerequisites when you start every simulation project.
The simulation process is very conservative!
Before building a simulation, make sure that it is satisfactory and complete and does not require modifications outside the Simulation Workbench.







Joints Group

A joint is something like a hinge, which is used to connect two solids. It is a relationship that is enforced 

image.png

between two bodies so that they can only have certain positions and orientations relative to each other. To create a joint between two solids, choose the joint type from the Links Menu, the joint will be added to the Links Tree, and its properties will appear in the Properties Panel on the left.

A selected Joint requires its properties to be set in order to work appropriately.

Geometric Group

The Geometric groups are concerned with shape, size, the relative position of solids, and the properties of 3D space. Considers questions of relative position or spatial relationship of geometric figures and shapes. 

  • Distance: creates a link between two solids based on maintaining a certain distance between them at all times during the simulation.image.png
  • Path: specify a path in the scene for the solid to follow during the simulation

Spring Group

Creates a spring link between two points the user selects. A spring is an elastic object used to store mechanical energy. The user needs to input the properties of the spring in the Properties dialog, Spring Constant, Damping, and Resting Length in order to work properly. 

GZ7image.pngCheck this tutorial for more about spring creation and simulation.

Force/Torque Group

A user can affect the behavior of a certain solid by applying an external force or torque on it. 



The Properties Panel of the Force/Torque appears on the left side of the screen. Properties that are intersected by Force and Torque, as shown in the following image:










The Force/Torque Function Editor dialog box appears when you click over the edit button of the Magnitude Function. This dialog box is shared by both of Force and Torque, it contains the following parameters:

Function Plot: Start, End, Step, Plot Area, and Update buttons.
The Function Editor dialog box of the Magnitude Function for Force and Torque is the same Function Editor dialog box of the Motor Function for Prismatic and Revolute Joints.


image.png

Gears Group

A Gear or Cogwheel is a rotating machine part having cut teeth, or cogs, which mesh with another toothed part to transmit torque, in most cases with teeth on the one gear being of identical shape, and often also with that shape on the other gear. To create a gear between two solids, you must choose the type of gear from the Gears group then the Gear Properties panel will appear on the left side. 


Gears group is located on the Links menu. You find two buttons in this group, as shown in the following image. A brief description of  each button, supported by the SimLab Composer's simulation engine, is given as follows: 

  • Gear (Gear Train or Transmission): Two or more gears working in a sequence. such gear arrangements can produce a mechanical advantage through a gear ratio and thus may be considered a simple machine. Geared devices can change the speed, torque, and direction of a power source. The most common situation is for a gear to mesh with another gear.
  • Rack and Pinion: a gear can also mesh with a non-rotating toothed part, called a rack, thereby producing translation instead of rotation. A rack is a toothed bar or rod that can be thought of as a sector gear with an infinitely large radius of curvature. Torque can be converted to linear force by meshing a rack with a pinion: the pinion turns; the rack moves in a straight line. Such a mechanism is used in automobiles to convert the rotation of the steering wheel into the left-to-right motion of the tie rod(s). Racks also feature in the theory of gear geometry, where, for instance, the tooth shape of an interchangeable set of gears may be specified for the rack (infinite radius), and the tooth shapes for gears of particular actual radii are then derived from that. The rack and pinion gear type is employed in a rack railway. 

Pulley Group

A pulley is a wheel on an axle or shaft that is designed to support movement and change of direction of a cable or belt along its circumference. Pulleys are used in a variety of ways to lift loads, apply forces, and transmit power. To create a Pulley between two solids, you must choose the link type from the Pulley toolbar then the Pulley Properties Panel will appear on the left side. 

image.png


Pulley group is the rightmost group on the Links menu. You find only one button in this group, as shown in the following image. A brief description of the button, supported by the SimLab Composer's simulation engine, is given as follows: 


Simulation Menu

After defining the required solids and their relationships using joints, forces, and torques, the model is ready to perform the simulation and see the results. This can be done in the Simulation menu where the simulation is controlled and executed.








Start/Stop

Start/Stop: allows the user to choose one of two predefined options (Start and Stop). The icon of which changes with each click and cycles between two states; the currently displayed value presents the next state.
Before running the simulation, you may need to alter the default simulation setting to what fits the application of your project exercise (Simulation Parameters are discussed in the next section "Parameters Group").

Viewer

Allows users to interact with simulation inside VR.

Parameters

Often you need to change the simulation parameters before attempting to run a simulation or after stopping a simulation in order to configure the settings to what suits your requirements. The Parameters Group is located next to the Start/Stop Group. You find only one button in this group, as shown in the following image:

Parameters: The Parameters button allows you to set up options related to the utilized solver and other various general and advanced options.
The Simulation Parameter dialog box appears when the Parameters button is clicked. This dialog box is a preference pane contains multiple panels, using tabs as a navigational widget for switching among three


sets of settings. The three tabs are General, Solver, and Advanced.

The General Tab includes the following setting fields, as shown in the following image:

image.png

  1. Time Step:  This numerical field is used by the chosen solver to determine the time step (in seconds) between iterations; reducing this value often produces more accurate results, but this requires executing additional calculations that affect the simulation speed and the size of the generated data. The default value is 0.001.
  2. End time: This numerical field tells the selected solver at any time (in seconds) the simulation will be stopped. Its default value is 10.
  3. Recording Simulation Results: This numerical field is used to ignore storing parts of the simulation data, and only saves data at a point after each interval specified (in time steps) by the user. It is usually used when the time step is very small, and the resulting data is very large. Its default value is 1.
  4. Gravity: X, Y, and Z: Specify (in m/s2: meter per second squared) the gravitational acceleration in X, Y, and Z directions. The default values are 0, 0, and -9.80, respectively.

image.png








  1. Solver: Projected SOR, Multithreaded SOR, Projected SSOR, Projected Jacobi, Projected MINRES, Projected BB, Projected PCG, APGD, and DEM. (the default solver is Projected MINRES)
  2. Integrator: Anitescu Stepper and Tasora Stepper (the default integrator is Tasora Stepper)
  3. Maximum Number of Velocity Iteration: (the default value is 30)
  4. Maximum Number of Stabilization Iteration: Only associated with the Tasora Stepper Integrator. (the default value is 10)
  5. Penetration Recovery Speed Limit: Only associated with the Anitescu Stepper Integrator (in m/s: meter per second) (the default value is 0.6)
  6. Young Modulus: Only associated with the DEM Solver, only enabled if the DEM Solver is chosen. (the default value is 200000)

image.png








  1. Overrelaxation Factor: This option is associated with the following solvers: Projected SOR, Multithreaded SOR, Projected SSOR, and Projected Jacobi. (the default value is 1)
  2. Sharpness Factor: This option is associated with the following solvers: Projected SOR, Multithreaded SOR, Projected SSOR, and Projected Jacobi. (the default value is 1)
  3. Minimum Bounce Speed: This option is associated with all of the Solvers (in m/s: meter per second). (the default value is 0.15)
  4. Use SimLab Advanced Collision System: (this checkbox is enabled by default)
  5. Enable Sleeping: (this checkbox is disabled by default)

ziXimage.png








Collision

Enable All: This toggle button allows you to choose one of two predefined options (Enable All and Disable All). The icon of which changes with each click and cycles between two states; the currently displayed value presents the state which will be applied if the user clicked it. By default, collision is disabled.

SimLab Composer allows you to enable and disable each Solid individually by using its independent Solid Properties Panel.

Post Processing 

The user can always benefit from the saved result of the most recent successful simulation, either in exporting it to animation or plotting its generated data 
on charts. The Post Processing group is located at the rightmost on the Simulation menu. You find only one button in this group, as shown in the following image:

To Animation: The To Animation button automatically exports the simulation results of the latest simulation session as an animation in the Animation Workbench.
Solid tracepoint: attaches a visual guide on a solid's surface, the trace point's movement can be analyzed using plots to study the behavior of the solid at that point.
In order to review or edit the frames of your recorded animation, go to the Animation Timeline which you can find at the bottom of the Animation Workbench.
In order to plot your simulation data, go to the Charting Area, which you can find at the bottom of the Simulation Workbench.

Interactive Menu

Simulation mode is developed for real-time Interactive Simulation. The new version of SimLab Composer takes Simulation to the next level, interactive simulation was added to allow the user to control machines using a Keyboard, or a Joystick.

Designed to work with Xbox One Controller, and the possibility to work with other game controllers such as the PS3 game controller. 

image.png

Interactive Simulation supports pointer devices, sliders, keyboards, and joysticks.

Tutorial for VR Interactive Simulation:

Start/Stop Group

You can start or stop the run of an interactive simulation by clicking over the Start/Stop button (as shown in the following image):

image.png

Interactive Simulation supports pointer devices, sliders, keyboards, and joysticks.

Design Group

The Design Tab includes the following setting fields, as shown in the following image:

image.pngPlus: It is a button with a green plus icon.
Minus: It is a button with a green minus icon.
OK: To confirm and accept settings.
Cancel: To abort the operation.





The interactive Simulation Parameter dialog box appears when the Parameters button is clicked. This dialog box is a preference pane containing multiple panels, using tabs as a navigational widget for switching among three sets of settings. The three tabs are General, Solver, and Advanced.

The Simulation Parameters dialog box is the same as the Simulation Parameters dialog box found in the Simulation Tab except for the General tab.

Interactive Simulation supports pointer devices, sliders, keyboard

G0aimage.png

ds, and joysticks.







Forward (Support Sliders, Keyboard, and Console Controller)

The Interactive mode for simulation supports game controllers in addition to the standard input peripherals. 

The Xbox One Controller is the primary controller for Microsoft Xbox One console. The Xbox One Controller is powered by 2 AA batteries, however, the Micro USB port can be used to power the controller, instead of its wireless connectivity.  

image.png(the Microsoft Xbox One controller)

Also, the Sony PS3 Controller is the primary controller for Sony Playstation 3 console. The Sony Playstation Controller features an internal built-in battery, however, the USB mini-B to USB-A cable can be used to connect the controller to the PC by wire instead of its independent Bluetooth connection.

image.png(Sony Playstation controller)

SimLab Composer offers direct support for the controller of Microsoft Xbox one. On the other hand, the controller of Sony PS3 requires third-party software to work properly with SimLab Composer on a PC. For more information, contact us at (support@simlab-soft.com)

Through GUI (Slider Bars)

The horizontal slider lets you set or adjust a value by moving an indicator. This control is a horizontal slider with a handle that can be moved right and left on a bar to select a value. The bar allows you to make adjustments to rotation or speed values throughout a range of pre-defined values. It allows you to alter the movement speed while being in the scene by decreasing it by dragging to the left (Slower) or increasing it by dragging it to the opposite direction (Faster).

Controller sticks are sensitive. So take advantage of this property when designing a panel of increase and decrease keys for the interactive entities for controlling control functions 

Plotting Library

For the purpose of simulation data analysis and post-processing, the user can use this graphical technique for representing a simulation data set as a graph, showing the relationship between two or more variables. The visual presentation of different functions is very useful for users who can quickly derive an understanding as a short path to gaining insight in terms of testing assumptions, model selection, relationship identification, factor effect determination, etc. as shown in the following image a Plotting Area of two graphs.

The panel of the Plotting Library is located vertically on its left side, presenting the following four buttons:

image.png

The Plotting Area is only associated with the Simulation Tab; it appears at the bottom of the Simulation Workbench once the Simulation Tab is activated.