diff options
author | sotech117 <michael_foiani@brown.edu> | 2024-05-04 05:02:24 -0400 |
---|---|---|
committer | sotech117 <michael_foiani@brown.edu> | 2024-05-04 05:02:24 -0400 |
commit | dee96d4e9f87b9301a7dbc29233b058c8260f1dd (patch) | |
tree | 1fe176dd692c2a7e23a0c216050c76f3cd633293 /src/ocean/ocean_alt.h | |
parent | 13d8a5ce616d67b01c6ed0becdde537474ba154e (diff) |
cpu implementation of fast fft. 40ms to 8ms
Diffstat (limited to 'src/ocean/ocean_alt.h')
-rw-r--r-- | src/ocean/ocean_alt.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/ocean/ocean_alt.h b/src/ocean/ocean_alt.h index 9df86b8..1a96e1e 100644 --- a/src/ocean/ocean_alt.h +++ b/src/ocean/ocean_alt.h @@ -60,18 +60,18 @@ private: - const double Lx = 100.0; - const double Lz = 100.0; + const double Lx = 32.0; + const double Lz = 32.0; - const int num_rows = 32; - const int num_cols = 32; + const int num_rows = 32; + const int num_cols = 32; - const int N = num_rows*num_cols; // total number of grid points - const double lambda = .40; // how much displacement matters - const double spacing = 35.0; // spacing between grid points + const int N = num_rows*num_cols; // total number of grid points + const double lambda = 0.4; // how much displacement matters + const double spacing = 35.0; // spacing between grid points - const double A = .25; // numeric constant for the Phillips spectrum - const double V = 49; // 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 |