summaryrefslogtreecommitdiff
path: root/src/ocean/ocean_alt.h
diff options
context:
space:
mode:
authorsotech117 <michael_foiani@brown.edu>2024-04-23 20:29:23 -0400
committersotech117 <michael_foiani@brown.edu>2024-04-23 20:29:23 -0400
commit5a704220dd508100812aafbcaf322d14159b8a69 (patch)
treec5b0b5c378c7f30e98b2b6674b3c160ab4375ff0 /src/ocean/ocean_alt.h
parent84c0bfa85374e45f06c1b6d7311b80f78670fb7c (diff)
small negative sign fix and wind fix
Diffstat (limited to 'src/ocean/ocean_alt.h')
-rw-r--r--src/ocean/ocean_alt.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/ocean/ocean_alt.h b/src/ocean/ocean_alt.h
index 76a298e..9df86b8 100644
--- a/src/ocean/ocean_alt.h
+++ b/src/ocean/ocean_alt.h
@@ -70,8 +70,8 @@ private:
const double lambda = .40; // how much displacement matters
const double spacing = 35.0; // spacing between grid points
- const double A = 1.0; // numeric constant for the Phillips spectrum
- const double V = 5.5; // wind speed
+ const double A = .25; // numeric constant for the Phillips spectrum
+ const double V = 49; // wind speed
const double gravity = 9.81;
const double L = V*V/gravity;
const Eigen::Vector2d omega_wind = Eigen::Vector2d(1.0, 0.0); // wind direction, used in Phillips equation
@@ -90,6 +90,10 @@ private:
const double D = 1.0; // Depth below mean water level (for dispersion relation)
+ std::vector<Eigen::Vector2d> fast_fft
+ (
+ std::vector<Eigen::Vector2d> h
+ );
};
#endif // OCEAN_ALT_H