Skip to content

InsertMooring general function snippet #101

@ferrari212

Description

@ferrari212

The mooring does not have a general function for inserting it. Therefore, it is being repeated over again in several codes:

this.InsertMooring = function(ship, states, motion, anchorPoint) {

mooringForce = this.InsertMooring(this.ship, this.states, motion, seaDepth, mooring.anchorPoint);

this.InsertMooring = function(ship, states, motion, seaDepth, anchorPoint) {

function InsertMooring(ship, states, motion, seaDepth, anchorPoint, mooringPointOnShip, anchorLength, radialDistance, density, mooringAngle) {

In aditional, the defined functions are using global variables, preventing the js files to work as snippets, problem stated also in #100:

lwl = floatingStates.LWL/2+floatingStates.trim;

As a solution I will create a snippet InsertCatenary.js which will receive the starting and final points of the line, an object containing the geometry, materials and coefficients of the catenary, the number of division, and the scene. The function itself will be responsible for changing the 3D model according to the initial and final points and return the forces (If appliable).

The function will also calculate for the cases in which the Horizontal Force is known (eletrical cables and uni dimensional mooring) and the cases that it is unknown (6DOF arrangement). I will also make a Observable tutorial to standardize this procedure.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions