Maritime Tutorial 4 : Subsea Operations

This page contains information about our legacy OpenGL renderer. If you follow this tutorial while using our new Vulkan renderer, the graphics options and visualization won't be equivalent.

However, the configuration and behavior of the dynamics extensions remain the same.

In this training pack, we will go over key concepts and guidelines to get you started with nautical simulations in Vortex® Studio.

This module focuses on using Vortex Studio to create an ocean floor environment, as well as adding tooling to an ROV.

Prerequisites

You need to have Vortex® Studio and the Vortex Studio Demo Scenes installed to be able to follow all steps in this tutorial.

Adding an Ocean Floor and ROV Manifold

  1. Open the Marine scene created in Module 1.
  2. Use the middle mouse in conjunction with the CTRL key to position the camera underwater.
  3. Run the simulation.

    You will see that a few silt particles are going to be automatically generated and moving around in the water. You will also see that if you keep moving deeper and deeper, you will never reach an ocean floor. By default, the ocean is bottomless in Vortex Studio. To have an ocean floor, we must load a 3D model or graphic gallery to represent the bottom of the ocean.

  4. In the Explorer, expand the Ocean Dynamics section to find Ocean Graphics, expand that branch as well to find Silt Particle.
  5. Increase the particle size to 0.2m to make them more visible.
  6. Run again to see the results of this modification.
  7. Go to the Environment section of the Toolbox and double-click on Terrain from File...
  8. In the dialog that appears, browse to the ...\Vortex Studio Content <version>\Demo Scenes\Environment\Offshore_Environment\Graphic directory and select the file Offshore.vxgraphicgallery.
  9. Set the Default Material to "Ground" (case-sensitive).
  10. Complete the terrain import by clicking on the OK button.

    The seabed graphic gallery will be very hard to see at first since its configuration as part of our sample set is to only display itself if you are very close to its center. In the next few steps, we will modify this viewing distance.

  11. Double-click on the seabed graphic gallery to edit it.

  12. Select the SeaBed node and chante the Maximum Distance in section 0 of Levels of Details to a value of 1000m

  13. Save the seabed graphic gallery and go back to the scene. You should now see the terrain loaded if you're close enough to it. The Levels of Detail parameter determines how close you need to be to the center of the graphic node to see it.


    Since the terrain loads at the origin of the scene, most of 

  14. Select the Offshore terrain node in the Explorer and change the Z translation parameter to -600.
  15. Move the camera further underwater until you find the sea bed.
  16. Using the Toolbox, import the ManifoldStack.vxmechanism file found in the ...\Vortex Studio Content <VERSION>\Demo Scenes\Equipment\SubseaModules\Manifold directory.
  17. Change the mechanism's Z translation to -586.0m. This will place the mechanism a few meters above the ocean floor.
  18. Right-click on the manifold and select the Center in Active View option to center the camera on this object.
  19. Right-click on the eye icon next to the ManifoldStack mechanism and select Geometry to see the mechanism's simplified collision geometries.
  20. Hide the mechanism's collision geometries.
  21. Save the scene.

Adding an ROV Mechanism

  1. Using the Toolbox, import the WorkClassROV.vxmechanism file found in the ...\Vortex Studio Content <VERSION>\Demo Scenes\Equipment\ROV\WorkClassROV directory.
  2. Change the ROV's Z translation parameter to lower it to the sea bed.
  3. Move the ROV to be positioned near the manifold.
  4. Run the simulation to see that the ROV's buoyancy is not stable, leaning in a certain direction. Its buoyancy has currently been defined to be stable when it has tooling attached on the front of the unit.
  5. Modify the ROV's buoyancy to make it stable underwater (Center of Buoyancy under Generic_HD_ROV part).
  6. Select the Ocean Graphics component in the Explorer and reduce the Underwater Fog Distance to 5m.
  7. Run the simulation and press the C key to change the viewpoint to the ROV's camera. See how little visibility you have.
  8. Use the controller to move closer or further away from the manifold. See how the ROV collides with the manifold based on each mechanism's collision geometries.
  9. Save the scene.

We will now create a simple torque tool, primarily to be used for accessibility studies, and attach it to the ROV.

Creating a Torque Tool Mechanism

  1. Go to the top Vortex Studio menu and create a new mechanism.
  2. Use the Toolbox to import a graphic gallery, then select the FLOT_With_TT_2.vxgraphicgallery in the ...\Vortex Studio Content <VERSION>\Demo Scenes\Equipment\ROV_Tools\FLOT_accessibility\Graphics directory.
  3. Rotate the graphic gallery 90 degrees before starting to create the mechanism.
  4. Create an empty assembly in your mechanism and rename it to "TorqueTool".
  5. Create parts from the FLOT_And_TorqueTool2 top-level node in the gallery and the TorqueTool__Plate_DOF node.
  6. Edit the FLOT_And_TorqueTool2 part and:
    • Set mass to 500 kg.
    • Auto compute the inertia tensor and COM.
    • Create collision geometries to properly be able to simulate accessibility of the torque tool. Useful shapes in this case are the capsule and boxes.
    • Set the material on all collision geometries to Chassis
  7. In the assembly, set the FLOT_And_TorqueTool2 part to be Static temporarily for testing.
  8. Create a Hinge constraint between the FLOT_And_TorqueTool2 parts, and:
    • Select TorqueTool__Plate_DOF first.
    • Set the Primary Axis of Part 1 to X+
    • Set the Secondary Axis of Part 1 to Z+
    • Go to the Offset (relative) section of Part 2 and Apply.
    • Set Control to Locked under Controlled Axes
    • Set the Lock Velocity to 90 degrees/s
    • Set Limits to 0 degrees as the Lower Limit and 3600 degrees as the Upper Limit.
  9. Save the torque tool assembly and mechanism.

    We can see that the Torque Tool has many more mechanical components to be able to tilt the tool and adjust other positional elements of the tool. We will not be modeling all of these complexities in this tutorial, but they could all be represented in Vortex Studio.

  10. Go back to the mechanism level and run the simulation. The front plate of the torque tool will move in a circular motion.

Attaching the Torque Tool

  1. Back at the assembly level, set the Control of the FLOT_And_TorqueTool2 part back to Dynamic.
  2. Right-click on the FLOT_And_TorqueTool2 part and create an Attachment Point.
  3. Rename the attachment point to "ROV AP" and leave it at the origin of the assembly (0, 0, 0).
  4. Go back to your marine scene and center the view on the ROV.
  5. Use the Toolbox to insert the new torque tool mechanism in your scene.
  6. Expand the ROV mechanism, its assembly, its Attachment Points folder, and its Tooling folder to find the "FLOT Connection" attachment point.
  7. Expand your Torque Tool's assembly to find the "ROV AP" attachment point.
  8. Select both and right-click to create an Attachment Point between the two attachment points.
  9. Save the scene, and all other open files.

Adding Torque Tool Control Logic

  1. Go back to editing the torque tool mechanism.
  2. Add a new Dynamincs Script to the mechanism for user control and to calculate how many turns the torque tool has travelled.
  3. Rename the script to "ControlAndHUDDisplay".
  4. Configure the inputs and outputs to match the image below:

    Data types being used in this script: Boolean: Data type which may only have one or two values (ie. True or False, 1 or 0). Double: A double-precision floating point data type. Mathematical operations can be used on this data type. (ex. 1227.39, 5.19e^-10). String: Sequences of character data. Mathematical operations cannot be used on this data type. (ex. "Hello world!", "4").

  5. Set the code of the Script file as follows:

    def pre_step(extension):
        if extension.inputs.LeftSignal.value and extension.inputs.CurrentPosition.value >= 0 :
            extension.outputs.DesiredVelocity.value = -0.5
        elif extension.inputs.RightSignal.value:
            extension.outputs.DesiredVelocity.value = 0.5
    
        extension.NbTurns = int( ( extension.inputs.CurrentPosition.value * 57.2958 ) / 360 )
        extension.outputs.NumberOfTurnsOnly.value = str( extension.NbTurns ).zfill(4)
    
        extension.outputs.NumberOfTurnsString.value = "Number of turns = " + str( extension.NbTurns )
    
  6. Go to the HUD category of the Toolbox and add a Text object to the mechanism.
  7. Change the Anchor Position to be 0.7, -0.95 and 0.0.
  8. Create a Connection Container using the Toolbox.
  9. Select the ControlAndHUDDisplay script and drag-and-drop the object's CurrentPosition input, NumberOfTurnsString and NumberOfTurnsOnly output properties to the Connections Editor.
  10. Select the Hinge constraint and drag-and-drop the Position output from the constraint's Current State, as well as the Lock Velocity input property to the Connections Editor.
  11. Add a Joystick object to the mechanism from the Toolbox.
  12. Drag-and-drop the joystick's Left and Right output properties to the Connections Editor.
  13. Draw connections as shown in the diagram below.
  14. Go to the Graphics category of the Toolbox and double-click on Label.
  15. Set the Text Size to 48.
  16. Set the Font Height property to 0.05.
  17. Set the Text property of the Label to 0000 to have representative content for placement.
  18. Use the movement and rotation controls to position the text on the front part of torque tool.
  19. Drag-and-drop the World Transform output property of the FLOT_And_TorqueTool2 part to the Connections Editor.
  20. Drag-and-drop the Parent Transform property of the Label object to the Connections Editor.
  21. Drag-and-drop the Text property of the Label object to the Connections Editor.
  22. Draw additional connections to complete the bottom part of this diagram. Once these new connections are made, the label will only display when the simulation is running.
  23. Save all open files.
  24. Run the mechanism to see the newly created element display in the bottom-right corner. Use your gamepad's left and right directional arrow to turn the torque tool and see the number change after each full turn.

Up Next: Maritime Tutorial 5 : Adding Heave Compensation