FhSim  3.1.0
Marine systems simulation
Loading...
Searching...
No Matches
PlateDoorLaw.h
1#pragma once
2
18namespace plate_door
19{
21enum class Side
22{
23 Starboard,
24 Port
25};
26
28struct Door
29{
30 double area;
31 double aspectRatio;
32 double rho;
35 double outOfBound[6] = {0.2, 1.2, 0.4, 1.0, 1.0, 1.0};
37 double corrections[6];
38};
39
50Door MakeDoor(double area, double aspectRatio, double rho, bool isPort, double maxLiftCoeff, double dragCoeffAtMaxLift);
51
53double Chord(const Door& door);
54
56double Span(const Door& door);
57
59struct Inflow
60{
61 double alpha;
62 double beta;
63 double speed;
64};
65
75Inflow InflowOf(const double relVel[3], Side side);
76
78double ReductionFunction(double alpha, double beta);
79
86void SteadyCoefficients(double alpha, double beta, double coeff[6]);
87
89struct Load
90{
92 double wrench[6];
93};
94
105Load SteadyLoad(const Door& door, const double relVel[6]);
106
114void RateDampingDerivative(const Door& door, const Inflow& inflow, double dQ_dOmega[3]);
115} // namespace plate_door
Definition PlateDoorLaw.h:19
double Chord(const Door &door)
The chord, sqrt(area / aspectRatio) [m].
Door MakeDoor(double area, double aspectRatio, double rho, bool isPort, double maxLiftCoeff, double dragCoeffAtMaxLift)
double ReductionFunction(double alpha, double beta)
The reduction function: 1 at alpha 20° and beta 0.15, about one inside the fitted working range and l...
double Span(const Door &door)
The span, area / chord [m] (not aspectRatio * chord, which rounds differently).
void RateDampingDerivative(const Door &door, const Inflow &inflow, double dQ_dOmega[3])
Inflow InflowOf(const double relVel[3], Side side)
void SteadyCoefficients(double alpha, double beta, double coeff[6])
Side
The side of the trawl a door is on.
Definition PlateDoorLaw.h:22
Load SteadyLoad(const Door &door, const double relVel[6])
A door's constants for the law; constant after construction.
Definition PlateDoorLaw.h:29
double area
Plate area [m²].
Definition PlateDoorLaw.h:30
double outOfBound[6]
Out-of-bound damping coefficients per degree of freedom (x, y, z, K, M, N).
Definition PlateDoorLaw.h:35
double corrections[6]
Scale of the fitted door's wrench to this door, per degree of freedom (see MakeDoor).
Definition PlateDoorLaw.h:37
double aspectRatio
Span / chord [-].
Definition PlateDoorLaw.h:31
double rho
Water density [kg/m³].
Definition PlateDoorLaw.h:32
Side side
Definition PlateDoorLaw.h:33
The door's inflow angles, in the starboard convention, and speed.
Definition PlateDoorLaw.h:60
double beta
Angle of slip, asin(v_z / |v_xz|) in forward flow [rad].
Definition PlateDoorLaw.h:62
double alpha
Angle of attack, -asin(v_y / |v_xy|) in forward flow [rad].
Definition PlateDoorLaw.h:61
double speed
|v| [m/s].
Definition PlateDoorLaw.h:63
The steady load on a door and the inflow it was taken at.
Definition PlateDoorLaw.h:90
double wrench[6]
Force [N] and moment [N·m] in the door frame, for the door's true side.
Definition PlateDoorLaw.h:92
Inflow inflow
As InflowOf.
Definition PlateDoorLaw.h:91