It is possible to define variables for use in parametric modelling. The offshore vessel below is defined by specifying variable for the length, the width, the bilge radius and the height of the fore part of the vessel.

 
 
 
 

You can recreate the above model by importing the script file OffshoreVessel2_in.js into a new workspace. The mesh size is set to 2.5 m and first order finite elements are used. The finite element mesh is generated by use of the Sesam Quad Mesher.

Variants of the model can now be made by modifying the parameters:
Overall length: LOA=100m
Width of the half vessel: Maxwidth=12m
Bilge radius: BilgeRadius=2m
Height of the forward deck: HeightDeckFwd=25m

Example where
LOA = 150m
MaxWidth = 20m
BilgeRadius = 3m
HeightDeckFwd = 30 m
Example where
LOA = 75m
MaxWidth = 15m
BilgeRadius = 2m
HeightDeckFwd = 20 m

There may be instances where you exceed the limitations of the script file. Typically if you use to large values for the bilge radius, the script will not be capable of creating shells.

In stead of editing the variables in the script file you can refer to data in a spreadsheet. The enclosed file OffshoreVessel2.js refers to the same variables in the spreadsheet Main dim.xls. Make sure you edit the script file to reflect the path to where you have copied the file Main dim.xls.

You can now easily modify the variables in the spreadsheet to create new examples of the parametric offshore vessel.