When modeling open channel wave boundary conditions, many of the variables that are used in open channel flow, also exist for open channel wave boundary conditions. You may have to refer to Modeling Open Channel Flows for information about some of the settings.
To use the open channel wave boundary condition, perform the following:
Enable Gravity and set the gravitational acceleration fields.
Setup → General
Gravity → On
Enable the Volume of Fluid model in the Multiphase Model dialog box.
Setup →
Models →
Multiphase → Edit...
Under Formulation, select either Implicit or Explicit.
Under VOF Sub-Models, select Open Channel Wave BC.
In order to set specific parameters for a particular boundary for open channel wave boundaries, enable the Open Channel Wave BC option in the Velocity Inlet boundary condition dialog box (Figure 24.21: The Velocity Inlet for Open Channel Wave BC).
The default method is the Averaged Flow Specification Method, where inputs for the moving obstacle and water current are combined. There is no specific treatment for air velocity, which is assumed to be same as the averaged velocity.
The Segregated Velocity Inputs option allows you to prescribe velocity inputs individually for the moving obstacle, Secondary phase (typically water), and Primary phase (typically air).
You can set the moving object and secondary phase velocity specification methods as:
Magnitude and direction vector
Magnitude and normal to boundary
You can set the primary phase velocity specification methods as:
Magnitude and direction vector
Magnitude and normal to boundary
Power law and direction vector
Power law and normal to boundary
(24–5) |
Where is the vertical distance
from the instantaneous free surface level at which the reference velocity
magnitude,
is specified.
is the vertical distance
from the free surface level at which, velocity
must be estimated.
is the power law coefficient,
which is typically 0.16 for an open sea.
The buffer layer is assumed to be the layer above the free surface, in which the effect of air is not felt. This option is provided by assuming that the air in the vicinity of free surface blows with the speed of the water and the waves, so that direct effect of air is not felt in the wave propagation.
There are two options for providing the buffer height:
Automatic: the buffer layer is taken as the specified fraction of the maximum wave height.
User-defined: you provide the input for the buffer layer height.
The buffer layer can also be defined using the following text command:
/solve/set>open-channel-wave-options/solve/set/open-channel-wave-options> set-buffer-layer-ht set-verbosity stokes-wave-variants /solve/set/open-channel-wave-options>set-buffer-layer-htbuffer layer specification method (0 - Automatic, 1 - User-defined) [0] fraction of buffer layer height to maximum wave height [0.02] /solve/set/open-channel-wave-options>set-buffer-layer-htbuffer layer specification method (0 - Automatic, 1 - User-defined) [0]1enter the value of buffer layer height [0]
In the Momentum tab of the Velocity Inlet dialog box, you can enter the averaged flow velocity, which includes components from the flow current and the moving object. You can specify the Averaged Flow Specification Method as:
Magnitude and Direction
Magnitude and Normal to Boundary
Components
In the Multiphase tab (Figure 24.23: The Velocity Inlet for Open Channel Wave BC), you will specify the following:
Secondary Phase for Inlet specifies the phase to which the wave parameters are applied. In case of a three-phase flow, select the corresponding secondary phase from this list.
Wave BC Options of which you have a choice of Shallow/Intermediate Waves, Short Gravity Waves, Shallow Waves, and None (for calm sea or pure open channel flow problems without waves). Information about these waves is available in Open Channel Wave Boundary Conditions in the Theory Guide. Note that the short gravity waves expression is derived under the assumption of infinite liquid height.
Free Surface Level is the same definition as for open channel flow, see Modeling Open Channel Flows.
Bottom Level is the same definition as for open channel flow, see Modeling Open Channel Flows, and is valid only for shallow or intermediate depth waves. The bottom level is used for calculating the liquid height.
Reference Wave Direction is the direction of wave propagation with zero wave heading angle. You can specify the wave propagation direction as:
Averaged Flow Direction: In this case, the reference direction is the same as the averaged flow direction.
Direction Vector
Normal to Boundary
Wave Modeling Options determines how the waves are modeled in the shallow/intermediate and short gravity wave regimes. You can choose to model the waves using either Wave Theories or Wave Spectrum. Wave Theories is usually selected for simulating regular waves. To simulate random waves, select Wave Spectrum.
Depending on your choice of Wave BC Options and Wave Modeling Options, you will need to specify the wave parameters as described in the following sections.
| Shallow Wave Inputs |
| Wave Group Inputs |
| Wave Spectrum Inputs |
If you have selected Shallow Waves for Wave BC Options you can specify the following settings for each wave:
is the option to set the number of interacting waves (default = 1)
Ideally, shallow waves do not support the principle of superposition. The Number of Waves option enables interaction of two different waves originating at unique (non-interfering) locations within the domain. Collision of two counter-propagating solitary waves inside a domain is an example of a shallow wave interaction.
of which you have a choice of Fifth Order Solitary (the default) and Fifth Order Cnoidal. Information about the types of wave theory is available in Open Channel Wave Boundary Conditions in the Theory Guide.
is the height difference between a wave crest to the neighboring trough.
Since a solitary wave does not have troughs, the wave height is the distance between a wave crest to mean free surface level.
is the distance between two consecutive zero crossings.
Since solitary waves are derived based on the assumption of infinite wave length, specified wave length is only used to estimate the elliptic function parameter for suitability of the wave theory, and is not used in calculating wave parameters.
is the translational distance from the reference point origin in the reference wave propagation direction. This option is used to generate a wave from a location other than the reference frame origin. For a solitary wave, the hump is always generated at the location where:
(24–6) |
where and
are spatial coordinates in the reference wave propagation
direction.
is the angle between the direction of the wavefront and the reference wave propagation direction, in the plane of the flow surface. In 2D, there are only two possibilities, zero degree when the wave is in the reference propagation direction, and 180 degree when the wave Is in the direction opposite to the reference propagation direction.
If you have selected Wave Theories for Wave Modeling Options you can specify the following settings for each wave:
is the option to set the number of superposed waves (default = 1)
of which you have a choice of First Order Airy (the default), Second Order Stokes, Third Order Stokes, Fourth Order Stokes, and Fifth Order Stokes. Information about the types of wave theory is available in Open Channel Wave Boundary Conditions in the Theory Guide.
is the height difference between a wave crest to the neighboring trough.
is the distance between two consecutive crests, troughs or zero crossings.
is the phase angle by which one periodic disturbance or wavefront lags behind or precedes another in time or space.
is the angle between the direction of the wavefront and the reference wave propagation direction, in the plane of the flow surface. In 2D, there are only two possibilities, zero degree when the wave is in the reference propagation direction, and 180 degree when the wave Is in the direction opposite to the reference propagation direction.
If you have selected Wave Spectrum for Wave Modeling Options you can specify the following settings for each wave:
specifies the spectrum to use. You can select Pierson-Moskowitz (appropriate for fully-developed seas), Jonswap (appropriate for fetch-limited seas), or TMA (appropriate for fetch-limited, finite-depth seas).
controls the shape and amplitude of the frequency
peak in the Jonswap and TMA formulations. This corresponds to in Equation 17–100 in the Fluent Theory Guide.
is the mean wave height of the largest 1/3 of waves.
This corresponds to in Equation 17–99 in the Fluent Theory Guide.
is the wave frequency corresponding to the highest
wave energy. This corresponds to in Equation 17–99 and Equation 17–100 in the Fluent Theory Guide.
can be expressed in terms of the peak wave period,
, as
.
specify the frequency range for the spectrum. Note that the Peak Wave Frequency must fall in between Minimum Wave Frequency and .
specifies the number of components into which the frequency spectrum is divided.
specifies the method to use for specifying the directional spreading characteristics. You can choose Unidirectional (for long-crested waves), Frequency Independent Cosine Function (for short-crested waves where the directional component does not depend on frequency), and Frequency Dependant Hyperbolic Function (for short-crested waves where the directional component depends on frequency).
specifies the exponent in the Frequency Independent
Cosine Function formulation. This corresponds to in Equation 17–104 in the Fluent Theory Guide.
specifies the principal wave heading direction.
specifies the deviation from the mean wave direction for calculating the angular range.
specifies the number of components into which the angular range is divided.
The total number of wave components is the product of Number of Frequency Components and Number of Angular Components. For modeling random waves, phase differences for the individual wave components are randomly distributed between 0 and 2π.
Note: Any change in the input for Number of Wave Components will change the values of phase difference for each component. Therefore, it is recommended that you start the simulation from a saved case file after setting all the wave spectrum user inputs and that you not change the number of wave components during the simulation.
A useful text command used to print out a summary of the open
channel wave boundary condition settings is define/boundary-conditions/open-channel-wave-settings. The output will depend on whether you have chosen Wave
Theories or Wave Spectrum.
/define/boundary-conditions> open-channel-wave-settings Wave Input Analysis for Velocity Inlet : Thread ID = 5 ************************************************************ Wave-1 Analysis ***************************************** Current Settings : ------------------ Wave theory : 5th-order-Stokes , Wave regime = Shallow/Intermediate Wave Height (H) = 0.2160, Wave Length (L) = 1.9400 Liquid Depth (h) = 0.6000, Ursell Number (H*L*L/(h*h*h)) = 3.7636 Mandatory checks for full wave regime within wave breaking limit ----------------------------------------------------------------- Relative Height: H/h = 0.3600 , Maximum theoretical limit = 0.7800 Maximum numerical limit = 0.5500 Relative height within wave breaking limit Wave Steepness: H/L = 0.1113 , Maximum theoretical limit = 0.1420 Stable numerical limit = 0.1000 , Maximum numerical limit = 0.1200 Warning: Wave steepness exceeding the stable numerical limit. Waves could be stable or unstable in this regime. Checks for selected wave theory within wave breaking and stability limit ---------------------------------------------------------------------------- Relative height check H/h = 0.3600 , Min : 0.0000 , Max : 0.5000 Relative height check : successful Wave Steepness check H/L = 0.1113 , Min : 0.0000 , Max : 0.1363 Wave steepness check : successful Ursell Number check Ur = 3.7636 , Min : 0.0000 , Max : 25.0000 Ursell number check : successful Wave regime check h/L = 0.3093 , Min : 0.0600 , Max : 10000.0000 Wave regime check : successful Summary ---------------------- Checks : passed Selected wave theory is appropriate for application.
Wave Input Analysis for Velocity Inlet : Thread ID = 6 ************************************************************ Wave Spectrum Analysis ***************************************** Current Settings : ------------------ Frequency Spectrum : Jonswap Direction Spreading Method : Unidirectional Significant Wave Height (Hs) = 5.0000 Peak Wave Frequency (wp) = 1.0000, Peak Time Period (Tp) = 6.2832 Minimum Frequency (wi) = 0.6600, Maximum Frequency (we) = 1.6600 Wave Lengths at Min/Peak/Max frequencies (Li, Lp, Le) = (141.5015, 61.6380, 22.3683) Recommendation: Set the min and max wave frequencies so that most of the wave energy is concentrated in the selected regime of spectrum. - Min frequency = 0.5*Peak frequency - Max frequency = 2.5*Peak frequency Wave Regime Check ---------------------- Wave regime type = Short Gravity (Deep) Information: Validity of short gravity assumption : Liquid Depth > 0.5*Max Wave Length Sea Steepness Check ----------------------- Peak Time Period (Tp) = 6.2832 Zero Upcrossing Time Period (Tz) = 4.7869 Sea Steepness based on Tp (Sp) = 0.0811, Steepness Limit = 0.0667 Sea Steepness based on Tz (Sz) = 0.1398, Steepness Limit = 0.1000 Warning: Sea Steepness based on peak time period exceeding limit. Warning: Sea Steepness based on zero upcrossing time period exceeding limit. Information: High wave steepness of any individual component too could affect the wave pattern, as superposition of wave components is based upon lienar wave theory. Frequency Spectrum Check --------------------------- Peak Time Period to Wave Ht Sqrt Ratio (r = Tp/sqrt(Hs)) = 2.8099 Message: Selection of Jonswap spectrum is appropriate. Recommended value of Peak Shape Parameter for r <= 3.6 : 5.0000 Spectrum Resolution check ---------------------------- Number of frequency components = 50 Number of angular components = 1 Total number of wave components = 50 Information: Higher number of wave components would have adverse effect on speed-up whereas smaller could affect the accuracy by not resolving the spectrum well. Following steps could assist to optimize the number of components 1. Set number of frequency/angular components in boundary condition panel, 2. Set TUI command solve> set> open-channel-wave-verbosity to 2 before initialization, 3. Initialize (It would print Spectrum Energy for each frequency/angle.) 4. Copy the information to plot Sw vs Omega and S_theta vs theta 5. Optimize the number of components after repeating steps 1-4
ANSYS Fluent supports transient profiles for all wave inputs using user-defined functions as seen by the example below:
/***********************************************************************
UDF for defining transient profile wave inputs
************************************************************************/
#include "udf..h"
#define H 0.02 /* wave height for both waves : same */
#define LEN1 3. /* wave length for first wave */
#define LEN2 6. /* wave length for second wave*/
#define G 9.81
#define D 10. /* liquid depth */
#define U 1. /* wave current */
#define X 0. /* inlet point */
DEFINE_TRANSIENT_PROFILE(wave_ht, current_time)
{
real k1 = 2.*M_PI/LEN1;
real k2 = 2.*M_PI/LEN2;
real w1 = sqrt(G*k1*tanh(k1*D)) + k1*U;
real w2 = sqrt(G*k2*tanh(k2*D)) + k2*U;
real dk = 0.5*(k1 - k2);
real dw = 0.5*(w1 - w2);
return (2.*H*cos(dk*X - dw*current_time));
}Fluent uses Fenton’s formulation for Stokes theories by default. For additional information about the current Stokes theories formulation, see Stokes Wave Theories in the Fluent Theory Guide. To revert to the old formulation, provided by Skjebreia and Hendrickson, use the following text command:
/solve/set/open-channel-wave-options> set-buffer-layer-ht set-verbosity stokes-wave-variants /solve/set/open-channel-wave-options>stokes-wave-variantsUse Fenton's formulation for Stokes wave theories [yes]noActivating old formulation (Skjelbreia and Hendrickson) for Stokes wave theories.
For additional information on the old formulation, refer to Lin’s book [59].