It is now possible to use waveVelocity and waveAlpha boundary conditions in cases in which the waves generate localised flow reversals along the boundary. This means waves can be speficied at arbitrary directions and with zero mean flow. Previously and integral approach, similar to flowRateOutlet, was used, which was only correct when the direction of wave propagation was aligned with the boundary normal. This improvement has been achieved by reformulating the waveVelocity and waveAlpha boundary conditions in terms of a new fixedValueInletOutlet boundary condition type. This condition enforces a fixed value in all cases except that of advection terms in the presence of outflow. In this configuration a gradient condition is applied that will relax towards the desired fixed value. The wavePressure boundary condition has been removed, as it is no longer necessary or advisable to locally switch between velocity and pressure formulations along a wave boundary. Wave boundaries should now have the general fixedFluxPressure or fixedFluxExtrapolatedPressure conditions applied to the pressure field. Two new tutorial cases have been created to demonstrate the new functionality. The multiphase/interFoam/laminar/wave3D case demonstrates wave generation with zero mean flow and at arbitrary angles to the boundaries, and incompressible/pimpleFoam/RAS/waveSubSurface demonstrates usage for sub-surface problems.
README for OpenFOAM-dev
- About OpenFOAM
- Copyright
- Download and installation instructions
- Documentation
- Source code documentation
- OpenFOAM C++ Style Guide
- Reporting bugs in OpenFOAM
- Contacting the OpenFOAM Foundation
#
About OpenFOAM
OpenFOAM is a free, open source computational fluid dynamics (CFD) software package released by the OpenFOAM Foundation. It has a large user base across most areas of engineering and science, from both commercial and academic organisations. OpenFOAM has an extensive range of features to solve anything from complex fluid flows involving chemical reactions, turbulence and heat transfer, to solid dynamics and electromagnetics.
Copyright
OpenFOAM is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version. See the file COPYING in this directory or
http://www.gnu.org/licenses/, for a description of the GNU General Public
License terms under which you can copy the files.