载入中...
搜索中...
未找到
OceanFourierInternal.h 文件参考
#include <complex>
#include <numbers>
#include <vector>

浏览源代码.

命名空间

namespace  eve
 Build metadata (engine git commit, build time, third-party version).
 
namespace  eve::fluids
 GLSL compute kernels for the GPU surface-flow solver.
 
namespace  eve::fluids::ocean_detail
 

类型定义

using eve::fluids::ocean_detail::Complex = std::complex< double >
 

函数

void eve::fluids::ocean_detail::inverse1D (std::vector< Complex > &a)
 Transform a validated power-of-two line in place without normalization. @cost O(N log N) arithmetic, no allocation; internal work per spectral row or column.
 
void eve::fluids::ocean_detail::inverse2D (std::vector< Complex > &a, unsigned n)
 Transform a validated N by N grid in place using row/column scratch. @cost O(N squared log N) arithmetic and O(N) scratch allocation per spectral field per tick.
 
void eve::fluids::ocean_detail::forward2D (std::vector< Complex > &a, unsigned n)
 Produce normalized Fourier amplitudes from a validated N by N spatial grid. @cost O(N squared log N) arithmetic and O(N) scratch per local-wave field per tick.
 

变量

constexpr double eve::fluids::ocean_detail::tau = 2.0 * std::numbers::pi