diff options
author | jjesswan <jessica_wan@brown.edu> | 2024-05-10 03:02:42 -0400 |
---|---|---|
committer | jjesswan <jessica_wan@brown.edu> | 2024-05-10 03:02:42 -0400 |
commit | c5ff8ed6e95b7de0876dc5e97a9cb606fd84be85 (patch) | |
tree | aa8976dedbb6664ca068a7c7b479e483c357c61a /src/ocean/ocean_alt.h | |
parent | c93b28613dd9c33de29152f987aeec3ca8340f8d (diff) |
progress parti
Diffstat (limited to 'src/ocean/ocean_alt.h')
-rw-r--r-- | src/ocean/ocean_alt.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/ocean/ocean_alt.h b/src/ocean/ocean_alt.h index a5bcd12..bbfce9a 100644 --- a/src/ocean/ocean_alt.h +++ b/src/ocean/ocean_alt.h @@ -27,6 +27,12 @@ struct FoamConstants{ std::vector<Eigen::Vector2f> texCoords; }; +struct OceanSpray{ + Eigen::Vector3f height; + Eigen::Vector3f slope; + +}; + class ocean_alt { public: @@ -43,7 +49,7 @@ public: } std::vector<Eigen::Vector3f> m_vertices; // current displacement vector for each K - std::vector<Eigen::Vector3f> m_heights; // stores height above threshold + std::vector<OceanSpray> m_heights; // stores height above threshold @@ -86,7 +92,7 @@ private: const double spacing = 1.0; // spacing between grid points const double A = 100; // numeric constant for the Phillips spectrum - const double V = 50; // wind speed + const double V = 100; // 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 |