# OpenFOAM® v1912: New boundary conditions

23/12/2019

## New wave modelling

This release extends the waveMaker condition introduced in OpenFOAM v1812 to generate 3-D waves by selecting the number of paddles. An example of a 3-D flap wave generator is shown below.

Source code
$FOAM_SRC/waveModels/derivedPointPatchFields/waveMaker Examples$FOAM_TUTORIALS/multiphase/interFoam/laminar/waves/waveMakerMultiPaddleFlap
$FOAM_TUTORIALS/multiphase/interFoam/laminar/waves/waveMakerMultiPaddlePiston Attribution These extensions were supplied by the Environmental Hydraulics Institute IHCantabria - see commit d0c5662172 Authors: Gabriel Barajas Integration The code has been integrated by OpenCFD - see merge request 317 ## New expressions-based boundary conditions Where expressions meet boundary conditions: the exprFixedValue and exprMixed boundary conditions. These boundary conditions support values, gradient and fraction as expressions. For example, outlet1 { type exprFixedValue; value$internalField;

valueExpr       "0.5*(pInlet + pOutlet2)";
variables
(
"pInletinlet = weightAverage(p)"
"pOutlet2outlet2 = p"
);
}

Tutorials