载入中...
搜索中...
未找到
eve::fluids::ocean_detail 命名空间参考

类型定义

using Complex = std::complex< double >
 

函数

void 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 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 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.
 
std::array< double, 4 > weights (double t)
 
std::array< double, 4 > derivatives (double t)
 

变量

constexpr double tau = 2.0 * std::numbers::pi
 

类型定义说明

◆ Complex

函数说明

◆ derivatives()

std::array< double, 4 > eve::fluids::ocean_detail::derivatives ( double  t)
inline

在文件 OceanInterpolationInternal.h 第 8 行定义.

引用了 t , 以及 eve::fluids::ocean_script::vector().

被这些函数引用 eve::fluids::OceanWake::sample().

◆ forward2D()

void eve::fluids::ocean_detail::forward2D ( std::vector< Complex > &  a,
unsigned  n 
)
inline

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.

在文件 OceanFourierInternal.h 第 57 行定义.

引用了 a, inverse2D(), n, scale, value , 以及 eve::fluids::ocean_script::vector().

◆ inverse1D()

void eve::fluids::ocean_detail::inverse1D ( std::vector< Complex > &  a)
inline

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.

在文件 OceanFourierInternal.h 第 15 行定义.

引用了 a, length, n, start, step, tau, eve::fluids::ocean_script::vector() , 以及 w.

被这些函数引用 inverse2D().

◆ inverse2D()

void eve::fluids::ocean_detail::inverse2D ( std::vector< Complex > &  a,
unsigned  n 
)
inline

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.

在文件 OceanFourierInternal.h 第 39 行定义.

引用了 a, inverse1D(), line, n, x , 以及 z.

被这些函数引用 eve::fluids::OceanSpectrumFrameBuilder::build() , 以及 forward2D().

◆ weights()

std::array< double, 4 > eve::fluids::ocean_detail::weights ( double  t)
inline

在文件 OceanInterpolationInternal.h 第 4 行定义.

引用了 t , 以及 eve::fluids::ocean_script::vector().

被这些函数引用 eve::fluids::OceanWake::sample().

变量说明

◆ tau

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

在文件 OceanFourierInternal.h 第 9 行定义.

被这些函数引用 inverse1D().