FhSim  3.1.0
Marine systems simulation
Loading...
Searching...
No Matches
WakeTypes.h
1#pragma once
7
8#include <limits>
9#include <vector>
10
11namespace marenv::wake
12{
21{
22 double deficit;
23 double sourceVelocity[3];
24};
25
33{
34 double pos[3];
35 double flowDir[3];
36 double area;
38 double solidity = 0.0;
39};
40
51{
52 double pos[3];
53 double flowDir[3];
54 double axis[3];
55 double length;
56 double width;
58};
59
66{
67 double origin[3];
68 double axes[3][3];
69 double velocity[3];
70 double t0;
71};
72
77{
79 double halfWidth;
80 double halfHeight;
82 int n[3];
83};
84
88enum class Superposition
89{
90 Product,
92};
93
98{
99 double expansion = 0.05;
100 double cutoff = 1e-3;
101 double xStartFactor = 0.5;
102 double xStartMin = 0.02;
103 double farWakeStartFactor = 10.0;
104 bool surfaceImage = true;
105 double seabedDepth = std::numeric_limits<double>::infinity();
107};
108
113{
114 std::vector<ElementarySource> points;
115 std::vector<LineSource> lines;
116};
117
119struct GriddedSnapshot;
120
122class SourceSetWake;
123
125class GriddedWake;
126} // namespace marenv::wake
Definition GriddedWake.h:90
Definition SourceSetWake.h:56
Superposition
Definition WakeTypes.h:89
@ MomentumFlux
D (1 - D) = sum d_i (1 - d_i), the momentum flux kept point by point (R95, replacing R88's min(1,...
@ Product
d = 1 - prod(1 - d_i), screens in series (KF2012 Eq. 15): for sources whose M is normalised by their ...
Definition WakeTypes.h:33
double area
The panel's own area, m^2; the footprint is D = sqrt(4 area / pi).
Definition WakeTypes.h:36
double solidity
Solidity Sn of a porous panel, for nets the calculated solidity Snc (R56); Sn > 0 selects the MF2022 ...
Definition WakeTypes.h:38
double pos[3]
Source centroid, m, NED.
Definition WakeTypes.h:34
double momentumDeficit
M = drag / (0.5 rho |U|^2), m^2; the effective thrust coefficient is C_T,eff = M / area.
Definition WakeTypes.h:37
double flowDir[3]
Unit direction of the relative flow at the source (along the wake axis), NED.
Definition WakeTypes.h:35
Definition WakeTypes.h:77
double halfHeight
Half extent along axes[2], m.
Definition WakeTypes.h:80
int n[3]
Number of cells along each frame axis.
Definition WakeTypes.h:82
double halfWidth
Half extent along axes[1], m.
Definition WakeTypes.h:79
double lengthDownstream
Extent along axes[0] downstream of the origin, m.
Definition WakeTypes.h:78
double upstreamMargin
Extent along axes[0] upstream of the origin, m.
Definition WakeTypes.h:81
Definition GriddedWake.h:23
Definition WakeTypes.h:98
double xStartFactor
x_start = max(xStartFactor * D, xStartMin).
Definition WakeTypes.h:101
Superposition superposition
How the field composes its sources and their images (R88, R95); lumped fields set MomentumFlux; WakeB...
Definition WakeTypes.h:106
double farWakeStartFactor
x_f = max(farWakeStartFactor * D, x_p): from x_f on the wake is the self-similar far wake,...
Definition WakeTypes.h:103
bool surfaceImage
Mirror image of every source at the free surface z = 0, so no wake momentum leaves the water (R53); w...
Definition WakeTypes.h:104
double xStartMin
Minimum x_start, m.
Definition WakeTypes.h:102
double expansion
Wake expansion rate k in sigma/D = k x/D + epsilon (Bastankhah and Porte-Agel 2014).
Definition WakeTypes.h:99
double seabedDepth
Depth of the flat seabed plane of the seabed image (R53), m, > 0; infinity: no seabed image....
Definition WakeTypes.h:105
double cutoff
Deficit below which a footprint is truncated.
Definition WakeTypes.h:100
Definition WakeTypes.h:51
double flowDir[3]
Unit direction of the relative flow at the source (along the wake), NED.
Definition WakeTypes.h:53
double axis[3]
Direction of the body's long axis, NED; not necessarily normal to flowDir, but not parallel to it.
Definition WakeTypes.h:54
double pos[3]
Centre of the line, m, NED; for a lumped source the centre of its rear face.
Definition WakeTypes.h:52
double width
Width of the body across the flow and across its projected axis, m; the footprint normal to the flow ...
Definition WakeTypes.h:56
double momentumDeficit
M = drag / (0.5 rho |U|^2), m^2; the effective thrust coefficient is C_T,eff = M / (projected length ...
Definition WakeTypes.h:57
double length
Length of the body along axis, m.
Definition WakeTypes.h:55
Definition WakeTypes.h:113
std::vector< ElementarySource > points
Elementary (axisymmetric) sources, world NED at the publish time t0.
Definition WakeTypes.h:114
std::vector< LineSource > lines
Line sources of slender bodies (MENV-0044), world NED at t0.
Definition WakeTypes.h:115
Definition WakeTypes.h:66
double t0
Reference time of origin, s.
Definition WakeTypes.h:70
double velocity[3]
Frame translation velocity, m/s, NED.
Definition WakeTypes.h:69
double origin[3]
Frame origin at t0, m, NED.
Definition WakeTypes.h:67
double axes[3][3]
Rows are the unit frame axes in NED; axes[0] is the mean relative flow direction.
Definition WakeTypes.h:68
Definition WakeTypes.h:21
double sourceVelocity[3]
Deficit-weighted source velocity u_s of the contributing sources, m/s, NED.
Definition WakeTypes.h:23
double deficit
Combined velocity deficit d in [0, 1]; the velocity ratio is r = 1 - d.
Definition WakeTypes.h:22