Files
OpenFOAM-12/tutorials/modules/incompressibleVoF/DTCHullWave/0/U.orig
2023-04-06 09:55:13 +01:00

58 lines
1.4 KiB
C++

/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class volVectorField;
location "0";
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#include "$FOAM_CASE/constant/waveProperties"
dimensions [0 1 -1 0 0 0 0];
internalField uniform ($UxMean 0 0);
boundaryField
{
//- Set patchGroups for constraint patches
#includeEtc "caseDicts/setConstraintTypes"
inlet
{
type waveVelocity;
libs ("libwaves.so");
}
outlet
{
type outletPhaseMeanVelocity;
alpha alpha.water;
UnMean #neg $UxMean;
value $internalField;
}
atmosphere
{
type pressureInletOutletVelocity;
tangentialVelocity $internalField;
value uniform (0 0 0);
}
hull
{
type movingWallVelocity;
value uniform (0 0 0);
}
}
// ************************************************************************* //