3#include "fish/eigen_matrix_defs.h"
4#include "sfh/constants.h"
11 double CnLinearLimitAngle;
29 CnLinearLimitAngle = 4.0*sfh::pi/180.0;
39 double CalculateMeshVolume(
double NodalDistribution[3] =
nullptr){
43 double N = std::abs(0.5*(CA.x()*AB.y() - CA.y()*AB.x()));
45 if(NodalDistribution){
46 vec3 nDist(BC.norm(),CA.norm(),AB.norm());
47 double MassDivider = nDist.squaredNorm();
48 for(
int i = 0; i < 3; ++i){
49 NodalDistribution[i] = nDist(i)*nDist(i)*Volume/MassDivider;
56 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
57 TriangularNetElement(NetData net);
58 ~TriangularNetElement();
63 mat3 CalcForces(
const mat32& TriangleVectors_ned);
64 mat3 CalcForces2(
const mat32& TriangleVectors_ned);
79 mat23 m_EdgePerpendicular;
81 mat2 m_MeshBarConverter;
82 double m_MeshDeterminant;
85 double m_TwineDragNormal;
Definition: TriangularNetElement.h:8
Definition: TriangularNetElement.h:10
void SetStandardValues()
= EModulus * TwineCrossSecArea.
Definition: TriangularNetElement.h:28
double BarL0
Diameter of knots.
Definition: TriangularNetElement.h:22
double TwineEA
Position of node C in net mesh (u,v) coordinates (Priour, 1997, 1999, 2001, 2003, 2005)
Definition: TriangularNetElement.h:26
double NodeCPos_mesh[2]
Position of node B in net mesh (u,v) coordinates (Priour, 1997, 1999, 2001, 2003, 2005)
Definition: TriangularNetElement.h:25
double Ct_nominal
= 2.0*10^5 Value defining lower limit for laminar boundary layer (Ersdal& Faltinsen,...
Definition: TriangularNetElement.h:17
double LamLimit
= 3.4*10^5 Value defining upper limit for turbulent boundary layer (Ersdal& Faltinsen,...
Definition: TriangularNetElement.h:16
double BarD
A coefficient used to calculate rotational and structural damping.
Definition: TriangularNetElement.h:20
double DampingCoeff
= 1.15 Knot drag force coefficient by approximation (Fredheim and Enerhaug, personal communication)....
Definition: TriangularNetElement.h:19
double NodeBPos_mesh[2]
Position of node A in net mesh (u,v) coordinates (Priour, 1997, 1999, 2001, 2003, 2005)
Definition: TriangularNetElement.h:24
double CnKnots_nominal
= 0.01 Approximate tangential drag force coefficient for cylinders (Ersdal, 2004; White,...
Definition: TriangularNetElement.h:18
double NodeAPos_mesh[2]
Length of mesh bar.
Definition: TriangularNetElement.h:23
double CnLinear
= 4*pi/180 Angle (in radians) below which a linear model for the normal force coefficient Cn applies ...
Definition: TriangularNetElement.h:12
double CnTurb
= 0.068 Constant in the expression for the linear model of the normal force coefficient Cn (Ersdal an...
Definition: TriangularNetElement.h:13
double TurbLimit
= 1.15 Constant in the expression for the modified cross-flow principle for the normal force coeffici...
Definition: TriangularNetElement.h:15
double KnotD
Diameter of twines.
Definition: TriangularNetElement.h:21
double CnLam
= 0.8 Constant in the expression for the modified cross-flow principle for the normal force coefficie...
Definition: TriangularNetElement.h:14