From 09e1bfa865d83588febe2abd9a7fbf6a1bdf5cb1 Mon Sep 17 00:00:00 2001 From: mattijs Date: Tue, 29 Sep 2009 20:34:35 +0100 Subject: [PATCH] pointMotion derived cellMotion is equivalent --- .../pimpleDyMFoam/movingCone/0/cellMotionUx | 60 ------------------- .../pimpleDyMFoam/movingCone/0/pointMotionUx | 51 +++++++++++++++- .../movingCone/system/controlDict | 3 + 3 files changed, 52 insertions(+), 62 deletions(-) delete mode 100644 tutorials/incompressible/pimpleDyMFoam/movingCone/0/cellMotionUx diff --git a/tutorials/incompressible/pimpleDyMFoam/movingCone/0/cellMotionUx b/tutorials/incompressible/pimpleDyMFoam/movingCone/0/cellMotionUx deleted file mode 100644 index 5ff6260740..0000000000 --- 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 e0a68b5aff..eecd57c2c0 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 fac973c9f9..ae0f289880 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;