diff --git a/tutorials/surfaceTracking/interTrackFoam/sloshing2D/0/U b/tutorials/surfaceTracking/interTrackFoam/sloshing2D/0/U new file mode 100755 index 000000000..dbe9f558a --- /dev/null +++ b/tutorials/surfaceTracking/interTrackFoam/sloshing2D/0/U @@ -0,0 +1,58 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM Extend Project: Open source CFD | +| \\ / O peration | Version: 1.6-ext | +| \\ / A nd | Web: www.extend-project.de | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volVectorField; + location "0"; + object U; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 1 -1 0 0 0 0]; + +internalField uniform (0 0 0); + +boundaryField +{ + freeSurfaceShadow + { + type fixedValue; + value uniform (0 0 0); + } + topWall + { + type slip; + } + rightWall + { + type slip; + } + bottomWall + { + type slip; + } + leftWall + { + type slip; + } + freeSurface + { + type fixedGradient; + gradient uniform (0 0 0); + } + frontAndBack + { + type empty; + } +} + + +// ************************************************************************* // diff --git a/tutorials/surfaceTracking/interTrackFoam/sloshing2D/0/motionU b/tutorials/surfaceTracking/interTrackFoam/sloshing2D/0/motionU new file mode 100755 index 000000000..344e07e4a --- /dev/null +++ b/tutorials/surfaceTracking/interTrackFoam/sloshing2D/0/motionU @@ -0,0 +1,60 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM Extend Project: Open source CFD | +| \\ / O peration | Version: 1.6-ext | +| \\ / A nd | Web: www.extend-project.de | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class tetPointVectorField; + location "0"; + object motionU; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 1 0 0 0 0 0]; + +internalField uniform (0 0 0); + +boundaryField +{ + freeSurfaceShadow + { + type fixedValue; + value uniform (0 0 0); + } + topWall + { + type fixedValue; + value uniform (0 0 0); + } + rightWall + { + type slip; + } + bottomWall + { + type fixedValue; + value uniform (0 0 0); + } + leftWall + { + type slip; + } + freeSurface + { + type fixedValue; + value uniform (0 0 0); + } + frontAndBack + { + type empty; + } +} + + +// ************************************************************************* // diff --git a/tutorials/surfaceTracking/interTrackFoam/sloshing2D/0/p b/tutorials/surfaceTracking/interTrackFoam/sloshing2D/0/p new file mode 100755 index 000000000..c2ed76dee --- /dev/null +++ b/tutorials/surfaceTracking/interTrackFoam/sloshing2D/0/p @@ -0,0 +1,58 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM Extend Project: Open source CFD | +| \\ / O peration | Version: 1.6-ext | +| \\ / A nd | Web: www.extend-project.de | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0"; + object p; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [1 -1 -2 0 0 0 0]; + +internalField uniform 0; + +boundaryField +{ + freeSurfaceShadow + { + type fixedGradient; + gradient uniform 0; + } + topWall + { + type zeroGradient; + } + rightWall + { + type zeroGradient; + } + bottomWall + { + type zeroGradient; + } + leftWall + { + type zeroGradient; + } + freeSurface + { + type fixedValue; + value uniform 0; + } + frontAndBack + { + type empty; + } +} + + +// ************************************************************************* // diff --git a/tutorials/surfaceTracking/interTrackFoam/sloshing2D/Allclean b/tutorials/surfaceTracking/interTrackFoam/sloshing2D/Allclean new file mode 100755 index 000000000..4c3bb9cec --- /dev/null +++ b/tutorials/surfaceTracking/interTrackFoam/sloshing2D/Allclean @@ -0,0 +1,20 @@ +#!/bin/sh + +. $WM_PROJECT_DIR/bin/tools/CleanFunctions + +cleanFaMesh () +{ + rm -rf ./constant/faMesh/faceLabels* \ + ./constant/faMesh/boundary* \ + > /dev/null 2>&1 +} + +cleanHistoryFolder () +{ + rm -rf ./history \ + > /dev/null 2>&1 +} + +cleanHistoryFolder +cleanTimeDirectories +cleanFaMesh diff --git a/tutorials/surfaceTracking/interTrackFoam/sloshing2D/Allrun b/tutorials/surfaceTracking/interTrackFoam/sloshing2D/Allrun new file mode 100755 index 000000000..775004745 --- /dev/null +++ b/tutorials/surfaceTracking/interTrackFoam/sloshing2D/Allrun @@ -0,0 +1,8 @@ +#!/bin/sh -v + +. $WM_PROJECT_DIR/bin/tools/RunFunctions + +application="interTrackFoam" + +runApplication makeFaMesh +runApplication $application diff --git a/tutorials/surfaceTracking/interTrackFoam/sloshing2D/constant/dynamicMeshDict b/tutorials/surfaceTracking/interTrackFoam/sloshing2D/constant/dynamicMeshDict new file mode 100755 index 000000000..121bc8f13 --- /dev/null +++ b/tutorials/surfaceTracking/interTrackFoam/sloshing2D/constant/dynamicMeshDict @@ -0,0 +1,38 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM Extend Project: Open source CFD | +| \\ / O peration | Version: 1.6-ext | +| \\ / A nd | Web: www.extend-project.de | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object dynamicMeshDict; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dynamicFvMesh dynamicMotionSolverFvMesh; + +twoDMotion yes; + +solver laplaceFaceDecomposition; + +diffusivity uniform 1.0; + +distancePatches 1 (movingPatch); + +frozenDiffusion yes; + + +pseudoSolid +{ + poissonsRatio 0.3; + nCorrectors 3; + convergenceTolerance 1e-9; +}; + +// ************************************************************************* // diff --git a/tutorials/surfaceTracking/interTrackFoam/sloshing2D/constant/faMesh/faMeshDefinition b/tutorials/surfaceTracking/interTrackFoam/sloshing2D/constant/faMesh/faMeshDefinition new file mode 100755 index 000000000..e23b0e674 --- /dev/null +++ b/tutorials/surfaceTracking/interTrackFoam/sloshing2D/constant/faMesh/faMeshDefinition @@ -0,0 +1,45 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.5-dev | +| \\ / A nd | Revision: 1535 | +| \\/ M anipulation | Web: http://www.OpenFOAM.org | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "constant/faMesh"; + object faMeshDefinition; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +polyMeshPatches 1( freeSurface ); + +boundary +{ + left + { + type patch; + ownerPolyPatch freeSurface; + neighbourPolyPatch leftWall; + } + + right + { + type patch; + ownerPolyPatch freeSurface; + neighbourPolyPatch rightWall; + } + + frontAndBack + { + type empty; + ownerPolyPatch freeSurface; + neighbourPolyPatch frontAndBack; + } +} + + +// ************************************************************************** // diff --git a/tutorials/surfaceTracking/interTrackFoam/sloshing2D/constant/freeSurfaceProperties b/tutorials/surfaceTracking/interTrackFoam/sloshing2D/constant/freeSurfaceProperties new file mode 100755 index 000000000..188f40a41 --- /dev/null +++ b/tutorials/surfaceTracking/interTrackFoam/sloshing2D/constant/freeSurfaceProperties @@ -0,0 +1,61 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM Extend Project: Open source CFD | +| \\ / O peration | Version: 1.6-ext | +| \\ / A nd | Web: www.extend-project.de | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object freeSurfaceProperties; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +twoFluids yes; + +normalMotionDir no; + +motionDir (0 1 0); + +cleanInterface yes; + +muFluidA muFluidA [ 1 -1 -1 0 0 0 0 ] 0.01; + +muFluidB muFluidB [ 1 -1 -1 0 0 0 0 ] 0.00001; + +rhoFluidA rhoFluidA [ 1 -3 0 0 0 0 0 ] 1; + +rhoFluidB rhoFluidB [ 1 -3 0 0 0 0 0 ] 0.001; + +surfaceTension surfaceTension [ 1 -2 0 0 0 0 0 ] 0.1 ; + +g g [ 0 1 -2 0 0 0 0 ] ( 0 -1 0 ) ; + +fixedFreeSurfacePatches 0(); + +pointNormalsCorrectionPatches 2( left right ); + +nFreeSurfaceCorrectors 1; + +surfactantProperties +{ +bulkConc bulkConc [ 0 -3 0 0 1 0 0 ] 1.0e-2; + +saturatedConc saturatedSurfConc [ 0 -2 0 0 1 0 0 ] 5.0e-6; + +adsorptionCoeff adsorptionCoeff [ 0 3 -1 0 -1 0 0 ] 40.0; + +desorptionCoeff desorptionCoeff [ 0 -3 0 0 1 0 0 ] 8.93e-2; + +bulkDiffusion bulkDiffusion [ 0 2 -1 0 0 0 0 ] 1.0e-9; + +diffusion diffusion [ 0 2 -1 0 0 0 0 ] 1.0e-9; + +temperature temperature [ 0 0 0 1 0 0 0 ] 293.0; +} + +// ************************************************************************* // diff --git a/tutorials/surfaceTracking/interTrackFoam/sloshing2D/constant/polyMesh/boundary b/tutorials/surfaceTracking/interTrackFoam/sloshing2D/constant/polyMesh/boundary new file mode 100755 index 000000000..09875ed51 --- /dev/null +++ b/tutorials/surfaceTracking/interTrackFoam/sloshing2D/constant/polyMesh/boundary @@ -0,0 +1,71 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM Extend Project: Open source CFD | +| \\ / O peration | Version: 1.6-ext | +| \\ / A nd | Web: www.extend-project.de | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class polyBoundaryMesh; + location "constant/polyMesh"; + object boundary; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +7 +( +freeSurfaceShadow +{ + type patch; + nFaces 20; + startFace 1520; +} + +topWall +{ + type patch; + nFaces 20; + startFace 1540; +} + +rightWall +{ + type patch; + nFaces 40; + startFace 1560; +} + +bottomWall +{ + type patch; + nFaces 20; + startFace 1600; +} + +leftWall +{ + type patch; + nFaces 40; + startFace 1620; +} + +freeSurface +{ + type patch; + nFaces 20; + startFace 1660; +} + +frontAndBack +{ + type empty; + nFaces 1600; + startFace 1680; +} +) + +// ************************************************************************* // diff --git a/tutorials/surfaceTracking/interTrackFoam/sloshing2D/constant/polyMesh/faces.gz b/tutorials/surfaceTracking/interTrackFoam/sloshing2D/constant/polyMesh/faces.gz new file mode 100755 index 000000000..625ad3f64 Binary files /dev/null and b/tutorials/surfaceTracking/interTrackFoam/sloshing2D/constant/polyMesh/faces.gz differ diff --git a/tutorials/surfaceTracking/interTrackFoam/sloshing2D/constant/polyMesh/neighbour.gz b/tutorials/surfaceTracking/interTrackFoam/sloshing2D/constant/polyMesh/neighbour.gz new file mode 100755 index 000000000..3208706ad Binary files /dev/null and b/tutorials/surfaceTracking/interTrackFoam/sloshing2D/constant/polyMesh/neighbour.gz differ diff --git a/tutorials/surfaceTracking/interTrackFoam/sloshing2D/constant/polyMesh/owner.gz b/tutorials/surfaceTracking/interTrackFoam/sloshing2D/constant/polyMesh/owner.gz new file mode 100755 index 000000000..2162bdb5a Binary files /dev/null and b/tutorials/surfaceTracking/interTrackFoam/sloshing2D/constant/polyMesh/owner.gz differ diff --git a/tutorials/surfaceTracking/interTrackFoam/sloshing2D/constant/polyMesh/points.gz b/tutorials/surfaceTracking/interTrackFoam/sloshing2D/constant/polyMesh/points.gz new file mode 100755 index 000000000..aeb2e55b2 Binary files /dev/null and b/tutorials/surfaceTracking/interTrackFoam/sloshing2D/constant/polyMesh/points.gz differ diff --git a/tutorials/surfaceTracking/interTrackFoam/sloshing2D/gpPositions b/tutorials/surfaceTracking/interTrackFoam/sloshing2D/gpPositions new file mode 100755 index 000000000..9ef8e3c0e --- /dev/null +++ b/tutorials/surfaceTracking/interTrackFoam/sloshing2D/gpPositions @@ -0,0 +1,11 @@ +set terminal postscript enhanced color solid + +set output "leftAndRightPosition.ps" +set xlabel "Time, s" +set ylabel "Position, y [m]" +set grid +plot [0:] "./history/0/history.dat" using 1:2 title "Left wall" with lines, \ +"./history/0/history.dat" using 1:3 title "Right wall" with lines + +set output +set terminal x11 diff --git a/tutorials/surfaceTracking/interTrackFoam/sloshing2D/system/controlDict b/tutorials/surfaceTracking/interTrackFoam/sloshing2D/system/controlDict new file mode 100755 index 000000000..4d079fb04 --- /dev/null +++ b/tutorials/surfaceTracking/interTrackFoam/sloshing2D/system/controlDict @@ -0,0 +1,60 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM Extend Project: Open source CFD | +| \\ / O peration | Version: 1.6-ext | +| \\ / A nd | Web: www.extend-project.de | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "system"; + object controlDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +applicationClass interTrackFoam; + +startFrom latestTime; + +startTime 0; + +stopAt endTime; + +endTime 10; + +deltaT 0.01; + +writeControl runTime; + +writeInterval 0.05; + +cycleWrite 0; + +writeFormat binary; + +writeCompression uncompressed; + +timeFormat general; + +timePrecision 6; + +runTimeModifiable yes; + +functions +( + history + { + type sloshingHistory; + functionObjectLibs + ( + "libsloshingHistory.so" + ); + } +); + +// ************************************************************************* // + + diff --git a/tutorials/surfaceTracking/interTrackFoam/sloshing2D/system/decomposeParDict b/tutorials/surfaceTracking/interTrackFoam/sloshing2D/system/decomposeParDict new file mode 100644 index 000000000..5499ed0df --- /dev/null +++ b/tutorials/surfaceTracking/interTrackFoam/sloshing2D/system/decomposeParDict @@ -0,0 +1,55 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM Extend Project: Open source CFD | +| \\ / O peration | Version: 1.6-ext | +| \\ / A nd | Web: www.extend-project.de | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "system"; + object decomposeParDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +numberOfSubdomains 6; + +method simple; + +simpleCoeffs +{ + n (2 3 1); + delta 0.001; +} + +hierarchicalCoeffs +{ + n (1 1 1); + delta 0.001; + order xyz; +} + +metisCoeffs +{ + processorWeights + ( + 1 + 1 + ); +} + +manualCoeffs +{ + dataFile ""; +} + +distributed no; + +roots +( +); + +// ************************************************************************* // diff --git a/tutorials/surfaceTracking/interTrackFoam/sloshing2D/system/faSchemes b/tutorials/surfaceTracking/interTrackFoam/sloshing2D/system/faSchemes new file mode 100755 index 000000000..9d8b784df --- /dev/null +++ b/tutorials/surfaceTracking/interTrackFoam/sloshing2D/system/faSchemes @@ -0,0 +1,56 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM Extend Project: Open source CFD | +| \\ / O peration | Version: 1.6-ext | +| \\ / A nd | Web: www.extend-project.de | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "system"; + object faSchemes; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +ddtSchemes +{ + default none; +} + +gradSchemes +{ + default none; + grad(Us) Gauss linear; +} + +divSchemes +{ + default none; + div(Us) Gauss linear; +} + +laplacianSchemes +{ + default none; +} + +interpolationSchemes +{ + default none; +} + +snGradSchemes +{ + default none; +} + +fluxRequired +{ +} + + +// ************************************************************************* // diff --git a/tutorials/surfaceTracking/interTrackFoam/sloshing2D/system/faSolution b/tutorials/surfaceTracking/interTrackFoam/sloshing2D/system/faSolution new file mode 100755 index 000000000..e462a5e9b --- /dev/null +++ b/tutorials/surfaceTracking/interTrackFoam/sloshing2D/system/faSolution @@ -0,0 +1,20 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM Extend Project: Open source CFD | +| \\ / O peration | Version: 1.6-ext | +| \\ / A nd | Web: www.extend-project.de | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "system"; + object faSchemes; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + + +// ************************************************************************* // diff --git a/tutorials/surfaceTracking/interTrackFoam/sloshing2D/system/fvSchemes b/tutorials/surfaceTracking/interTrackFoam/sloshing2D/system/fvSchemes new file mode 100755 index 000000000..6046a27a6 --- /dev/null +++ b/tutorials/surfaceTracking/interTrackFoam/sloshing2D/system/fvSchemes @@ -0,0 +1,58 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM Extend Project: Open source CFD | +| \\ / O peration | Version: 1.6-ext | +| \\ / A nd | Web: www.extend-project.de | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "system"; + object fvSchemes; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +ddtSchemes +{ + ddt(rho,U) backward; + ddt(U) backward; +} + +gradSchemes +{ + default Gauss linear; +} + +divSchemes +{ + div(phi,U) Gauss linear; +} + +laplacianSchemes +{ + default none; + laplacian(mu,U) Gauss linear corrected; + laplacian((1|A(U)),p) Gauss linear corrected; +} + +interpolationSchemes +{ + default linear; +} + +snGradSchemes +{ + default corrected; +} + +fluxRequired +{ + p; +} + + +// ************************************************************************* // diff --git a/tutorials/surfaceTracking/interTrackFoam/sloshing2D/system/fvSolution b/tutorials/surfaceTracking/interTrackFoam/sloshing2D/system/fvSolution new file mode 100755 index 000000000..bed3ed684 --- /dev/null +++ b/tutorials/surfaceTracking/interTrackFoam/sloshing2D/system/fvSolution @@ -0,0 +1,47 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM Extend Project: Open source CFD | +| \\ / O peration | Version: 1.6-ext | +| \\ / A nd | Web: www.extend-project.de | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "system"; + object fvSolution; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +solvers +{ + p + { + solver PCG; + preconditioner DIC; + tolerance 1e-06; + relTol 0; + } + + U + { + solver PBiCG; + preconditioner DILU; + tolerance 1e-05; + relTol 0; + } +} + +PISO +{ + nOuterCorrectors 10; + nCorrectors 2; + nNonOrthogonalCorrectors 1; + pRefPoint (0.5 1.5 0); + pRefValue 0; +} + +// ************************************************************************* // diff --git a/tutorials/surfaceTracking/interTrackFoam/sloshing2D/system/tetFemSolution b/tutorials/surfaceTracking/interTrackFoam/sloshing2D/system/tetFemSolution new file mode 100755 index 000000000..ec610fcac --- /dev/null +++ b/tutorials/surfaceTracking/interTrackFoam/sloshing2D/system/tetFemSolution @@ -0,0 +1,30 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM Extend Project: Open source CFD | +| \\ / O peration | Version: 1.6-ext | +| \\ / A nd | Web: www.extend-project.de | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "system"; + object tetFemSolution; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +solvers +{ + motionU + { + solver PCG; + preconditioner DIC; + tolerance 1e-09; + relTol 0.001; + } +} + +// ************************************************************************* //