diff --git a/tutorials/incompressible/pimpleDyMFoam/movingCone/0/cellMotionUx b/tutorials/incompressible/pimpleDyMFoam/movingCone/0/cellMotionUx deleted file mode 100644 index 5ff626074066c0db5a318340109c0e95272165e4..0000000000000000000000000000000000000000 --- a/tutorials/incompressible/pimpleDyMFoam/movingCone/0/cellMotionUx +++ /dev/null @@ -1,60 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.6 | -| \\ / A nd | Web: http://www.OpenFOAM.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class volScalarField; - object motionU; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -dimensions [0 1 -1 0 0 0 0]; - -internalField uniform 0; - -boundaryField -{ - movingWall - { - type fixedValue; - value uniform 1; - } - farFieldMoving - { - type slip; - } - fixedWall - { - type fixedValue; - value uniform 0; - } - axis - { - type symmetryPlane; - } - left - { - type fixedValue; - value uniform 0; - } - farField - { - type slip; - } - back - { - type wedge; - } - front - { - type wedge; - } -} - -// ************************************************************************* // diff --git a/tutorials/incompressible/pimpleDyMFoam/movingCone/0/pointMotionUx b/tutorials/incompressible/pimpleDyMFoam/movingCone/0/pointMotionUx index e0a68b5aff1f4d4d3c3ccd6ed8238c2e8e4b339c..eecd57c2c0d1fde61c1d225ebb32efa481d4c720 100644 --- a/tutorials/incompressible/pimpleDyMFoam/movingCone/0/pointMotionUx +++ b/tutorials/incompressible/pimpleDyMFoam/movingCone/0/pointMotionUx @@ -27,7 +27,33 @@ boundaryField } farFieldMoving { - type slip; + //type slip; + type surfaceSlipDisplacement; + geometry + { + top + { + type searchablePlane; + planeType pointAndNormal; + basePoint (0 0.0025 0); + normalVector (0 1 0); + } + }; + + // Find projection with surface: + // fixedNormal : intersections along prespecified direction + // pointNormal : intersections along current pointNormal of patch + // nearest : nearest point on surface + followMode fixedNormal; + + // if fixedNormal : normal + projectDirection (0 1 0); + + //- -1 or component to knock out before doing projection + wedgePlane -1; + + //- Points that should remain fixed + //frozenPointsZone fixedPointsZone; } fixedWall { @@ -45,7 +71,28 @@ boundaryField } farField { - type slip; + //type slip; + type surfaceSlipDisplacement; + geometry + { + top + { + type searchablePlane; + planeType pointAndNormal; + basePoint (0 0.0025 0); + normalVector (0 1 0); + } + }; + + followMode fixedNormal; + + projectDirection (0 1 0); + + //- -1 or component to knock out before doing projection + wedgePlane -1; + + //- Points that should remain fixed + //frozenPointsZone fixedPointsZone; } back { diff --git a/tutorials/incompressible/pimpleDyMFoam/movingCone/system/controlDict b/tutorials/incompressible/pimpleDyMFoam/movingCone/system/controlDict index fac973c9f9e5336e3df6a40df659c4206c6a5131..ae0f289880a4414148128e12161575a585486fd8 100644 --- a/tutorials/incompressible/pimpleDyMFoam/movingCone/system/controlDict +++ b/tutorials/incompressible/pimpleDyMFoam/movingCone/system/controlDict @@ -17,6 +17,9 @@ FoamFile application pimpleDyMFoam; +// For surfaceSlip boundary conditions +libs ("libfvMotionSolvers.so"); + startFrom startTime; startTime 0;