[Paper Review] CN-Stream: Open-source library for nonlinear regular waves using stream function theory
CN-Stream is an open-source Fortran library that computes nonlinear regular ocean waves using improved stream function theory, enabling high-accuracy simulations of wave kinematics and free-surface profiles in deep or shallow water. It enhances the classical Rienecker and Fenton method by enabling separate mode counts for surface elevation and velocity potential, and automatically optimizes the number of modes for target accuracy, extending applicability to waves near breaking limits.
CN-Stream is a library for the computation of nonlinear regular ocean waves. The library is developed in order to be easily integrated with wave generation models in CFD solvers. It is based on the stream function theory and provides significant improvements regarding the applicability of the method for waves close to breaking (in deep or shallow water) compared to the classical implementation of Rienecker and Fenton [26]. The complete description of the wave field is available, including the free-surface evolution and the wave kinematics in the fluid domain. It is released as open-source, developed and distributed under the terms of GPL v3.
Motivation & Objective
- To develop a high-accuracy, open-source tool for simulating nonlinear regular ocean waves in arbitrary constant water depth.
- To overcome limitations of classical stream function methods in modeling steep, near-breaking waves in deep or shallow water.
- To enable seamless integration with CFD solvers for wave-structure interaction simulations.
- To provide automatic mode selection for optimal accuracy and computational efficiency.
- To support detailed wave kinematics and pressure field outputs for physical analysis and model validation.
Proposed method
- Employs stream function theory to solve the fully nonlinear potential flow problem via finite Fourier series expansions.
- Reduces free-surface boundary conditions to a system of nonlinear algebraic equations solved using Newton’s iteration method.
- Introduces separate mode counts (N1 for surface elevation, N2 for velocity potential) to improve numerical accuracy.
- Automatically determines the optimal number of collocation points (modes) to meet user-defined convergence criteria.
- Uses a hybrid convergence strategy with relative and absolute error thresholds (eps_inc, err_max) to ensure robustness.
- Generates comprehensive output files including modal amplitudes, velocity and pressure fields, and free-surface profiles for visualization and coupling.
Experimental results
Research questions
- RQ1How can stream function theory be enhanced to accurately model nonlinear regular waves near the breaking limit in both deep and shallow water?
- RQ2What improvements can be made to the classical Rienecker and Fenton formulation to extend its applicability to higher wave steepness and broader water depths?
- RQ3Can automatic mode selection significantly improve accuracy while maintaining computational efficiency in wave simulations?
- RQ4How do the kinematics and pressure fields of nonlinear waves differ from linear predictions across varying wave steepness and water depths?
- RQ5To what extent can CN-Stream serve as a reliable reference solution for CFD validation and wave-structure interaction modeling?
Key findings
- CN-Stream successfully computes nonlinear regular waves with high accuracy across a wide range of wave steepness and relative water depths, including near-breaking conditions.
- The use of separate mode counts for surface elevation and velocity potential improves numerical stability and accuracy compared to standard implementations.
- Automatic mode selection ensures optimal convergence with minimal user input, reducing the risk of divergence and improving robustness.
- The library produces accurate wave kinematics, pressure fields, and free-surface profiles, with outputs available in formats compatible with Tecplot and other visualization tools.
- CN-Stream has been successfully integrated into CFD solvers such as ICARE, WCCH, and OpenFOAM for wave-structure interaction simulations.
- The code achieves convergence in a few seconds per simulation, making it suitable for long-term wave propagation studies and model validation.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.