Skip to main content

waveSurfacePressure

Description

The waveSurfacePressure is a pressure boundary condition whose value is calculated as the hydrostatic pressure based on a given displacement:

p=ρgζ p = -\rho \, g \, \zeta
PropertyDescription
ρ\rhoDensity [kg/m^3]
ggAcceleration due to gravity [m/s^2]
ζ\zetaWave amplitude [m]

The wave amplitude is updated as part of the calculation, derived from the local volumetric flux.

Usage

The condition requires entries in both the boundary and field files.

Boundary file

<patchName>
{
type patch;
...
}

Field file

<patchName>
{
// Mandatory entries
type waveSurfacePressure;

// Optional entries
phi <word>;
zeta <word>;
rho <word>;

// Inherited entries
...
}

where:

PropertyDescriptionTypeRequiredDefault
typeType name: waveSurfacePressurewordyes-
phiName of flux fieldwordnophi
zetaName of wave-amplitude fieldwordnozeta
rhoName of density fieldwordnorho

The inherited entries are elaborated in:

  • mixedFvPPatchScalarFields.H
  • The density field is only required if the flux is mass-based as opposed to volumetric-based.

Further information

Tutorial:

Source code:

API:

History: Introduced in version 2.1.0