Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

1    Objective


In this third tutorial, we you will store the waterline data of the previous tutorial in a new object within the object Ships. We You will perform linear and quadratic interpolation to obtain the relative width of unknown frames at the waterline. This will be checked with the exact solution, and the error is to be calculated. Some hydrostatic calculations will be performed: by numerical integration the waterplane area and the moment of inertia of this area are calculated. The stability GM will be calculated and compared to other ships using the least squares method.

Start

For this tutorial, the knowledgebase from tutorial 2 is used. You can either use your own (verified) knowledgebase, or download it here: [Tutorial 3 Start]

2    Creating a new object within a data object


The solution Waterline Waterline containing the shape of the dimensionless waterline, has been created in tutorial 2. In order to store this data and use it for further operations, the contents will be placed in a new object within the object Ships.

  •  

...

  • In the class Geometry, create a new object (i.e. a parameter of type Object) called Hull. As we want to store static data in this object, make sure it is determined by Value from Object/Database (as described in tutorial 2).
  • In the

...

  • Workbase, select the object 

...

...

  • Hull and select Parameter to Dataset (or press Ctrl+O or drag

...

  • Hull tot

...

  • Ships).

...

  • The new object is now placed within Ships.

Let's add the content of the Waterline object in the Waterline solution to the object Hull.

...

  • In the solution 

...

  • Waterline in the tree of the Workbase, select the 

...

  • Waterline object (so the tree node in the solution),  right click Image Modified in the table of the Workbase and select All to clipboard (or F4). Paste the data (both Frame and Rel_B) in the object Hull (answer Yes to all for including the parameters in the Hull object).

When you are done, you will have a Ships object containing data in a Hull object. The Hull object should be part of the Ships object because the Ships object is the database entry point. And because you want to use all Waterline data as one set, it should be in one Hull object (or as a TeLiTab value as an alternative).

...