From 6381a98c0acf8db493c6ced51cb083d74cb4ee0a Mon Sep 17 00:00:00 2001 From: Roger Bergua <33709140+RBergua@users.noreply.github.com> Date: Tue, 29 Aug 2023 18:07:14 -0600 Subject: [PATCH] Add files via upload Small modification for the linear spring approach in MAP++. This modification allows to study conventional catenary systems as well as lines that have the anchor point above the fairlead connection. This modification solves the problems reported here for the linear spring approach: https://github.com/OpenFAST/openfast/issues/1750 --- modules/map/src/lineroutines.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/map/src/lineroutines.c b/modules/map/src/lineroutines.c index 30fad7a27e..ba89c7b5bd 100644 --- a/modules/map/src/lineroutines.c +++ b/modules/map/src/lineroutines.c @@ -667,7 +667,7 @@ MAP_ERROR_CODE solve_linear_spring_cable(Line* line, char* map_msg, MAP_ERROR_CO }; *(line->H.value) = sqrt(force.x*force.x + force.y*force.y); - *(line->V.value) = fabs(force.z); + *(line->V.value) = -force.z; /* vertical force can be positive or negative. Important for systems with the anchor point above the fairlead connection */ return MAP_SAFE; };