The FOAM file format has not changed from version 2.0 in many years and so there is no longer a need for the 'version' entry in the FoamFile header to be required and to reduce unnecessary clutter it is now optional, defaulting to the current file format 2.0.
111 lines
2.6 KiB
C++
111 lines
2.6 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 pointVectorField;
|
|
location "0";
|
|
object pointMotionU;
|
|
}
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
dimensions [0 1 0 0 0 0 0];
|
|
|
|
internalField uniform (0 0 0);
|
|
|
|
boundaryField
|
|
{
|
|
maxZ
|
|
{
|
|
type fixedValue;
|
|
value uniform (0 0 0);
|
|
}
|
|
|
|
minZ
|
|
{
|
|
type surfaceDisplacement;
|
|
value uniform (0 0 0);
|
|
|
|
// Clip displacement to surface by max deltaT*velocity.
|
|
velocity (10 10 10);
|
|
|
|
geometry
|
|
{
|
|
AcrossRiver.stl
|
|
{
|
|
type triSurfaceMesh;
|
|
}
|
|
};
|
|
|
|
// Find projection with surface:
|
|
// fixedNormal : intersections along prespecified direction
|
|
// pointNormal : intersections along current pointNormal of patch
|
|
// nearest : nearest point on surface
|
|
// Other
|
|
projectMode fixedNormal;
|
|
|
|
// if fixedNormal : normal
|
|
projectDirection (0 0 1);
|
|
|
|
//- -1 or component to knock out before doing projection
|
|
wedgePlane -1;
|
|
|
|
//- Points that should remain fixed
|
|
// frozenPointsZone fixedPointsZone;
|
|
}
|
|
|
|
// minZ
|
|
// {
|
|
// type surfaceSlipDisplacement;
|
|
// geometry
|
|
// {
|
|
// hellskull.stl
|
|
// {
|
|
// type triSurfaceMesh;
|
|
// }
|
|
// };
|
|
//
|
|
// followMode fixedNormal;
|
|
//
|
|
// projectDirection (0 0 1);
|
|
//
|
|
// //- -1 or component to knock out before doing projection
|
|
// wedgePlane -1;
|
|
//
|
|
// //- Points that should remain fixed
|
|
// // frozenPointsZone fixedPointsZone;
|
|
// }
|
|
|
|
maxX
|
|
{
|
|
type fixedNormalSlip;
|
|
n (1 0 0);
|
|
}
|
|
|
|
minX
|
|
{
|
|
type fixedNormalSlip;
|
|
n (1 0 0);
|
|
}
|
|
|
|
minY
|
|
{
|
|
type fixedNormalSlip;
|
|
n (0 1 0);
|
|
}
|
|
|
|
maxY
|
|
{
|
|
type fixedNormalSlip;
|
|
n (0 1 0);
|
|
}
|
|
}
|
|
|
|
|
|
// ************************************************************************* //
|