diff options
author | sotech117 <michael_foiani@brown.edu> | 2024-05-10 06:41:07 -0400 |
---|---|---|
committer | sotech117 <michael_foiani@brown.edu> | 2024-05-10 06:42:45 -0400 |
commit | 949907125f6f05937f3357c5ddc85a2e7380cf91 (patch) | |
tree | f65548a276314f540265ace695dd74f8ab050a3a /src/ocean/ocean_alt.h | |
parent | bbcfd7f0ff4415e26bf05e0b8660f94bfca94103 (diff) |
tile fix and lighting fix
Diffstat (limited to 'src/ocean/ocean_alt.h')
-rw-r--r-- | src/ocean/ocean_alt.h | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/src/ocean/ocean_alt.h b/src/ocean/ocean_alt.h index 7e293f9..6076ab2 100644 --- a/src/ocean/ocean_alt.h +++ b/src/ocean/ocean_alt.h @@ -53,12 +53,8 @@ public: std::vector<OceanSpray> m_heights; // stores height above threshold - - - - - - + std::vector<Eigen::Vector2f> get_tiled_k_vectors(); + std::vector<float> get_tiled_wavelengths(); private: Eigen::Vector2i index_1d_to_2d(int i); @@ -72,7 +68,7 @@ private: Eigen::Vector2d get_horiz_pos(int i); std::pair<double, double> sample_complex_gaussian(); - // FOAM + // FOAM std::vector<float> m_saturation; std::map<int, WaveIndexConstant> m_waveIndexConstants; // stores constants that only need to be calculate once for each grid constant @@ -83,17 +79,17 @@ private: const int num_rows = 256; const int num_cols = 256; - const int num_tiles_x = 1; - const int num_tiles_z = 1; + const int num_tiles_x = 2; + const int num_tiles_z = 2; const double vertex_displacement = Lx / 2; const int N = num_rows*num_cols; // total number of grid points - const double lambda = .5; // how much displacement matters + const double lambda = .75; // how much displacement matters const double spacing = 1.0; // spacing between grid points const double A = 10000; // numeric constant for the Phillips spectrum - const double V = 100; // wind speed + const double V = 700; // 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 |