master 6b66f9b097b0 cached
594 files
2.6 MB
715.6k tokens
64 symbols
1 requests
Download .txt
Showing preview only (2,859K chars total). Download the full file or copy to clipboard to get everything.
Repository: phresher/OpenFOAM_Tutorials_Plus
Branch: master
Commit: 6b66f9b097b0
Files: 594
Total size: 2.6 MB

Directory structure:
gitextract_re6asacm/

├── .gitignore
├── LICENSE
├── README.md
├── _config.yml
├── abruptContraction/
│   ├── interPhaseChangeFoam/
│   │   ├── 0/
│   │   │   ├── U
│   │   │   ├── alpha.water
│   │   │   ├── k
│   │   │   ├── nuTilda
│   │   │   ├── nut
│   │   │   ├── p_rgh
│   │   │   ├── phi
│   │   │   └── s
│   │   ├── Allclean
│   │   ├── Allmesh
│   │   ├── Allrun
│   │   ├── Allrun.parallel
│   │   ├── constant/
│   │   │   ├── g
│   │   │   ├── transportProperties
│   │   │   └── turbulenceProperties
│   │   └── system/
│   │       ├── blockMeshDict
│   │       ├── controlDict
│   │       ├── decomposeParDict
│   │       ├── fvSchemes
│   │       ├── fvSolution
│   │       ├── probes
│   │       ├── refineMeshDict.1
│   │       ├── refineMeshDict.2
│   │       ├── surfaces
│   │       ├── topoSetDict.1
│   │       └── topoSetDict.2
│   ├── pimpleFoam/
│   │   ├── 0/
│   │   │   ├── U
│   │   │   ├── epsilon
│   │   │   ├── k
│   │   │   ├── nuTilda
│   │   │   ├── nut
│   │   │   └── p
│   │   ├── Allclean
│   │   ├── Allrun
│   │   ├── Allrun.parallel
│   │   ├── constant/
│   │   │   ├── transportProperties
│   │   │   └── turbulenceProperties
│   │   └── system/
│   │       ├── blockMeshDict
│   │       ├── controlDict
│   │       ├── decomposeParDict
│   │       ├── fvSchemes
│   │       ├── fvSolution
│   │       ├── probes
│   │       └── surfaces
│   ├── pisoFoam/
│   │   ├── 0/
│   │   │   ├── U
│   │   │   ├── k
│   │   │   ├── nuTilda
│   │   │   ├── nut
│   │   │   ├── p
│   │   │   └── s
│   │   ├── Allclean
│   │   ├── Allrun
│   │   ├── Allrun.parallel
│   │   ├── constant/
│   │   │   ├── transportProperties
│   │   │   └── turbulenceProperties
│   │   └── system/
│   │       ├── blockMeshDict
│   │       ├── controlDict
│   │       ├── decomposeParDict
│   │       ├── fvSchemes
│   │       ├── fvSolution
│   │       ├── probes
│   │       └── surfaces
│   └── simpleFoam/
│       ├── 0/
│       │   ├── U
│       │   ├── epsilon
│       │   ├── k
│       │   ├── nut
│       │   └── p
│       ├── Allclean
│       ├── Allrun
│       ├── constant/
│       │   ├── transportProperties
│       │   └── turbulenceProperties
│       └── system/
│           ├── blockMeshDict
│           ├── controlDict
│           ├── fvSchemes
│           └── fvSolution
├── cavitatingBullet/
│   ├── 0/
│   │   ├── U
│   │   ├── alpha.water
│   │   └── p_rgh
│   ├── Allclean
│   ├── Allrun
│   ├── constant/
│   │   ├── g
│   │   ├── transportProperties
│   │   ├── triSurface/
│   │   │   └── README
│   │   └── turbulenceProperties
│   └── system/
│       ├── blockMeshDict
│       ├── controlDict
│       ├── decomposeParDict
│       ├── fvSchemes
│       ├── fvSolution
│       └── snappyHexMeshDict
├── fishChannel/
│   ├── 0/
│   │   ├── U
│   │   ├── alpha.water.orig
│   │   ├── epsilon
│   │   ├── k
│   │   ├── nut
│   │   ├── omega
│   │   └── p_rgh
│   ├── Allclean
│   ├── Allmesh
│   ├── Allrun
│   ├── constant/
│   │   ├── g
│   │   ├── transportProperties
│   │   └── turbulenceProperties
│   ├── showCase.pvsm
│   └── system/
│       ├── blockMeshDict
│       ├── controlDict
│       ├── createBafflesDict
│       ├── createPatchDict
│       ├── decomposeParDict
│       ├── fvSchemes
│       ├── fvSolution
│       ├── refineMeshDict
│       ├── refineMeshDict.section1
│       ├── refineMeshDict.section2
│       ├── setFieldsDict
│       ├── topoSetDict.outlet2
│       ├── topoSetDict.section1
│       └── topoSetDict.section2
├── flatPlate/
│   ├── 0/
│   │   ├── U
│   │   ├── U~
│   │   ├── epsilon
│   │   ├── k
│   │   ├── nut
│   │   └── p
│   ├── Allclean
│   ├── Allrun
│   ├── constant/
│   │   ├── transportProperties
│   │   └── turbulenceProperties
│   └── system/
│       ├── blockMeshDict
│       ├── controlDict
│       ├── fvSchemes
│       └── fvSolution
├── linuxCheatSheet/
│   ├── Common linux command in OpenFoam.md
│   └── linuxCheatSheet.docx
├── magnusEffect/
│   ├── 0/
│   │   ├── .svn/
│   │   │   ├── all-wcprops
│   │   │   ├── entries
│   │   │   └── text-base/
│   │   │       ├── U.svn-base
│   │   │       └── p.svn-base
│   │   ├── U
│   │   ├── epsilon
│   │   ├── k
│   │   ├── nuTilda
│   │   ├── nut
│   │   └── p
│   ├── Allclean
│   ├── Allrun
│   ├── README.md
│   ├── constant/
│   │   ├── transportProperties
│   │   └── turbulenceProperties
│   ├── magnus.geo
│   └── system/
│       ├── controlDict
│       ├── fvSchemes
│       └── fvSolution
├── mpiTest/
│   ├── Alltest
│   └── damBreak4phaseFine/
│       ├── 0/
│       │   ├── U
│       │   ├── U.air
│       │   ├── U.mercury
│       │   ├── U.oil
│       │   ├── U.water
│       │   ├── alpha.air.orig
│       │   ├── alpha.mercury.orig
│       │   ├── alpha.oil.orig
│       │   ├── alpha.water.orig
│       │   └── p_rgh
│       ├── Allclean
│       ├── Allsbatch
│       ├── constant/
│       │   ├── g
│       │   ├── motionProperties
│       │   ├── transportProperties
│       │   └── turbulenceProperties
│       └── system/
│           ├── blockMeshDict
│           ├── controlDict
│           ├── decomposeParDict
│           ├── fvSchemes
│           ├── fvSolution
│           └── setFieldsDict
├── programmingTutorials/
│   ├── .gitignore
│   ├── LICENSE
│   ├── OFtutorial00_helloWorld/
│   │   ├── Allwclean
│   │   ├── Allwmake
│   │   ├── Make/
│   │   │   ├── files
│   │   │   └── options
│   │   ├── OFtutorial0.C
│   │   └── testCase/
│   │       ├── 0/
│   │       │   ├── U
│   │       │   └── p
│   │       ├── Allclean
│   │       ├── Allrun
│   │       ├── constant/
│   │       │   └── transportProperties
│   │       └── system/
│   │           ├── blockMeshDict
│   │           ├── controlDict
│   │           ├── fvSchemes
│   │           └── fvSolution
│   ├── OFtutorial01_inputOutput/
│   │   ├── Allwclean
│   │   ├── Allwmake
│   │   ├── Make/
│   │   │   ├── files
│   │   │   └── options
│   │   ├── OFtutorial1.C
│   │   └── testCase/
│   │       ├── 0/
│   │       │   ├── U
│   │       │   └── p
│   │       ├── Allclean
│   │       ├── Allrun
│   │       ├── constant/
│   │       │   ├── customProperties
│   │       │   └── transportProperties
│   │       └── system/
│   │           ├── blockMeshDict
│   │           ├── controlDict
│   │           ├── fvSchemes
│   │           └── fvSolution
│   ├── OFtutorial02_commandLineArgumentsAndOptions/
│   │   ├── Allwclean
│   │   ├── Allwmake
│   │   ├── Make/
│   │   │   ├── files
│   │   │   └── options
│   │   ├── OFtutorial2.C
│   │   └── testCase/
│   │       ├── 0/
│   │       │   ├── U
│   │       │   └── p
│   │       ├── Allclean
│   │       ├── Allrun
│   │       ├── constant/
│   │       │   └── transportProperties
│   │       └── system/
│   │           ├── blockMeshDict
│   │           ├── controlDict
│   │           ├── fvSchemes
│   │           └── fvSolution
│   ├── OFtutorial03_understandingTheMesh/
│   │   ├── Allwclean
│   │   ├── Allwmake
│   │   ├── Make/
│   │   │   ├── files
│   │   │   └── options
│   │   ├── OFtutorial3.C
│   │   └── testCase/
│   │       ├── 0/
│   │       │   ├── U
│   │       │   └── p
│   │       ├── Allclean
│   │       ├── Allrun
│   │       ├── constant/
│   │       │   └── transportProperties
│   │       └── system/
│   │           ├── blockMeshDict
│   │           ├── controlDict
│   │           ├── fvSchemes
│   │           └── fvSolution
│   ├── OFtutorial04_basicFieldOperations/
│   │   ├── Allwclean
│   │   ├── Allwmake
│   │   ├── Make/
│   │   │   ├── files
│   │   │   └── options
│   │   ├── OFtutorial4.C
│   │   └── testCase/
│   │       ├── 0/
│   │       │   ├── U
│   │       │   └── p
│   │       ├── Allclean
│   │       ├── Allrun
│   │       ├── constant/
│   │       │   └── transportProperties
│   │       └── system/
│   │           ├── blockMeshDict
│   │           ├── controlDict
│   │           ├── fvSchemes
│   │           └── fvSolution
│   ├── OFtutorial05_basicParallelComputing/
│   │   ├── Allwclean
│   │   ├── Allwmake
│   │   ├── Make/
│   │   │   ├── files
│   │   │   └── options
│   │   ├── OFtutorial5.C
│   │   ├── createFields.H
│   │   └── testCase/
│   │       ├── 0/
│   │       │   ├── U
│   │       │   └── p
│   │       ├── Allclean
│   │       ├── Allrun
│   │       ├── constant/
│   │       │   └── transportProperties
│   │       └── system/
│   │           ├── blockMeshDict
│   │           ├── controlDict
│   │           ├── decomposeParDict
│   │           ├── fvSchemes
│   │           └── fvSolution
│   ├── OFtutorial06_customClasses/
│   │   ├── Allwclean
│   │   ├── Allwmake
│   │   ├── Make/
│   │   │   ├── files
│   │   │   └── options
│   │   ├── OFtutorial6.C
│   │   ├── customClass.C
│   │   ├── customClass.H
│   │   ├── derivedClass.C
│   │   ├── derivedClass.H
│   │   └── testCase/
│   │       ├── 0/
│   │       │   ├── U
│   │       │   └── p
│   │       ├── Allclean
│   │       ├── Allrun
│   │       ├── constant/
│   │       │   └── transportProperties
│   │       └── system/
│   │           ├── blockMeshDict
│   │           ├── controlDict
│   │           ├── decomposeParDict
│   │           ├── fvSchemes
│   │           └── fvSolution
│   ├── OFtutorial07_customLibraries/
│   │   ├── Allwclean
│   │   ├── Allwmake
│   │   ├── Make/
│   │   │   ├── files
│   │   │   └── options
│   │   ├── OFtutorial7.C
│   │   ├── createFields.H
│   │   ├── customLibrary/
│   │   │   ├── Make/
│   │   │   │   ├── files
│   │   │   │   └── options
│   │   │   ├── customLibrary.C
│   │   │   └── customLibrary.H
│   │   └── testCase/
│   │       ├── 0/
│   │       │   ├── U
│   │       │   └── p
│   │       ├── Allclean
│   │       ├── Allrun
│   │       ├── constant/
│   │       │   └── transportProperties
│   │       └── system/
│   │           ├── blockMeshDict
│   │           ├── controlDict
│   │           ├── decomposeParDict
│   │           ├── fvSchemes
│   │           └── fvSolution
│   ├── OFtutorial08_customBC/
│   │   ├── Allwclean
│   │   ├── Allwmake
│   │   ├── Make/
│   │   │   ├── files
│   │   │   └── options
│   │   ├── prescribedPipeInletFvPatchVectorField.C
│   │   ├── prescribedPipeInletFvPatchVectorField.H
│   │   └── testCase/
│   │       ├── 0.org/
│   │       │   ├── U
│   │       │   ├── k
│   │       │   ├── nut
│   │       │   ├── omega
│   │       │   └── p
│   │       ├── Allclean
│   │       ├── Allrun
│   │       ├── Allrun.mesh
│   │       ├── constant/
│   │       │   ├── transportProperties
│   │       │   └── turbulenceProperties
│   │       └── system/
│   │           ├── blockMeshDict
│   │           ├── controlDict
│   │           ├── decomposeParDict
│   │           ├── fvSchemes
│   │           ├── fvSolution
│   │           ├── mirrorMeshDict
│   │           ├── runConditions
│   │           └── sampleDict
│   ├── OFtutorial09_runtimePostprocessingUtility/
│   │   ├── Allwclean
│   │   ├── Allwmake
│   │   ├── Make/
│   │   │   ├── files
│   │   │   └── options
│   │   ├── pipeCalc.C
│   │   ├── pipeCalc.H
│   │   └── testCase/
│   │       ├── 0.org/
│   │       │   ├── U
│   │       │   ├── k
│   │       │   ├── nut
│   │       │   ├── omega
│   │       │   └── p
│   │       ├── Allclean
│   │       ├── Allrun
│   │       ├── Allrun.mesh
│   │       ├── constant/
│   │       │   ├── transportProperties
│   │       │   └── turbulenceProperties
│   │       └── system/
│   │           ├── blockMeshDict
│   │           ├── controlDict
│   │           ├── decomposeParDict
│   │           ├── fvSchemes
│   │           ├── fvSolution
│   │           ├── mirrorMeshDict
│   │           ├── runConditions
│   │           ├── sampleDict
│   │           └── topoSetDict
│   ├── OFtutorial10_transportEquation/
│   │   ├── Allwclean
│   │   ├── Allwmake
│   │   ├── Make/
│   │   │   ├── files
│   │   │   └── options
│   │   ├── OFtutorial10.C
│   │   └── testCase/
│   │       ├── 0/
│   │       │   ├── U
│   │       │   └── beta
│   │       ├── Allclean
│   │       ├── Allrun
│   │       ├── constant/
│   │       │   └── transportProperties
│   │       ├── system/
│   │       │   ├── blockMeshDict
│   │       │   ├── controlDict
│   │       │   ├── fvSchemes
│   │       │   └── fvSolution
│   │       └── viewData.pvsm
│   ├── OFtutorial11_modifyingTheMesh/
│   │   ├── Allwclean
│   │   ├── Allwmake
│   │   ├── Make/
│   │   │   ├── files
│   │   │   └── options
│   │   ├── OFtutorial11.C
│   │   ├── meshPoints.geo
│   │   └── testCase/
│   │       ├── Allclean
│   │       ├── Allrun
│   │       ├── constant/
│   │       │   └── transportProperties
│   │       ├── system/
│   │       │   ├── blockMeshDict
│   │       │   ├── controlDict
│   │       │   ├── fvSchemes
│   │       │   └── fvSolution
│   │       └── viewGrid.pvsm
│   ├── OFtutorial12_momentumSource/
│   │   ├── Allwclean
│   │   ├── Allwmake
│   │   ├── Make/
│   │   │   ├── files
│   │   │   └── options
│   │   ├── customActuationDiskSource.C
│   │   ├── customActuationDiskSource.H
│   │   ├── customActuationDiskSourceTemplates.C
│   │   └── testCase/
│   │       ├── 0/
│   │       │   ├── U
│   │       │   ├── k
│   │       │   ├── nut
│   │       │   ├── omega
│   │       │   └── p
│   │       ├── Allclean
│   │       ├── Allrun
│   │       ├── constant/
│   │       │   ├── fvOptions
│   │       │   ├── transportProperties
│   │       │   └── turbulenceProperties
│   │       ├── system/
│   │       │   ├── blockMeshDict
│   │       │   ├── controlDict
│   │       │   ├── fvSchemes
│   │       │   └── fvSolution
│   │       └── viewData.pvsm
│   ├── OldReleases/
│   │   └── OF301/
│   │       ├── OFtutorial0_helloWorld/
│   │       │   ├── Make/
│   │       │   │   ├── files
│   │       │   │   └── options
│   │       │   ├── OFtutorial0.C
│   │       │   └── testCase/
│   │       │       ├── 0/
│   │       │       │   ├── U
│   │       │       │   └── p
│   │       │       ├── Allclean
│   │       │       ├── Allrun
│   │       │       ├── constant/
│   │       │       │   └── transportProperties
│   │       │       └── system/
│   │       │           ├── blockMeshDict
│   │       │           ├── controlDict
│   │       │           ├── fvSchemes
│   │       │           └── fvSolution
│   │       ├── OFtutorial1_inputOutput/
│   │       │   ├── Make/
│   │       │   │   ├── files
│   │       │   │   └── options
│   │       │   ├── OFtutorial1.C
│   │       │   └── testCase/
│   │       │       ├── 0/
│   │       │       │   ├── U
│   │       │       │   └── p
│   │       │       ├── Allclean
│   │       │       ├── Allrun
│   │       │       ├── constant/
│   │       │       │   ├── customProperties
│   │       │       │   └── transportProperties
│   │       │       └── system/
│   │       │           ├── blockMeshDict
│   │       │           ├── controlDict
│   │       │           ├── fvSchemes
│   │       │           └── fvSolution
│   │       ├── OFtutorial2_understandingTheMesh/
│   │       │   ├── Make/
│   │       │   │   ├── files
│   │       │   │   └── options
│   │       │   ├── OFtutorial2.C
│   │       │   └── testCase/
│   │       │       ├── 0/
│   │       │       │   ├── U
│   │       │       │   └── p
│   │       │       ├── Allclean
│   │       │       ├── Allrun
│   │       │       ├── constant/
│   │       │       │   └── transportProperties
│   │       │       └── system/
│   │       │           ├── blockMeshDict
│   │       │           ├── controlDict
│   │       │           ├── fvSchemes
│   │       │           └── fvSolution
│   │       ├── OFtutorial3_basicFieldOperations/
│   │       │   ├── Make/
│   │       │   │   ├── files
│   │       │   │   └── options
│   │       │   ├── OFtutorial3.C
│   │       │   └── testCase/
│   │       │       ├── 0/
│   │       │       │   ├── U
│   │       │       │   └── p
│   │       │       ├── Allclean
│   │       │       ├── Allrun
│   │       │       ├── constant/
│   │       │       │   └── transportProperties
│   │       │       └── system/
│   │       │           ├── blockMeshDict
│   │       │           ├── controlDict
│   │       │           ├── fvSchemes
│   │       │           └── fvSolution
│   │       ├── OFtutorial4_basicParallelComputing/
│   │       │   ├── Make/
│   │       │   │   ├── files
│   │       │   │   └── options
│   │       │   ├── OFtutorial4.C
│   │       │   ├── createFields.H
│   │       │   └── testCase/
│   │       │       ├── 0/
│   │       │       │   ├── U
│   │       │       │   └── p
│   │       │       ├── Allclean
│   │       │       ├── Allrun
│   │       │       ├── constant/
│   │       │       │   └── transportProperties
│   │       │       └── system/
│   │       │           ├── blockMeshDict
│   │       │           ├── controlDict
│   │       │           ├── decomposeParDict
│   │       │           ├── fvSchemes
│   │       │           └── fvSolution
│   │       ├── OFtutorial5_customClasses/
│   │       │   ├── Make/
│   │       │   │   ├── files
│   │       │   │   └── options
│   │       │   ├── OFtutorial5.C
│   │       │   ├── customClass.C
│   │       │   ├── customClass.H
│   │       │   ├── derivedClass.C
│   │       │   ├── derivedClass.H
│   │       │   └── testCase/
│   │       │       ├── 0/
│   │       │       │   ├── U
│   │       │       │   └── p
│   │       │       ├── Allclean
│   │       │       ├── Allrun
│   │       │       ├── constant/
│   │       │       │   └── transportProperties
│   │       │       └── system/
│   │       │           ├── blockMeshDict
│   │       │           ├── controlDict
│   │       │           ├── decomposeParDict
│   │       │           ├── fvSchemes
│   │       │           └── fvSolution
│   │       ├── OFtutorial6_customLibraries/
│   │       │   ├── Allwclean
│   │       │   ├── Allwmake
│   │       │   ├── Make/
│   │       │   │   ├── files
│   │       │   │   └── options
│   │       │   ├── OFtutorial6.C
│   │       │   ├── createFields.H
│   │       │   ├── customLibrary/
│   │       │   │   ├── Make/
│   │       │   │   │   ├── files
│   │       │   │   │   └── options
│   │       │   │   ├── customLibrary.C
│   │       │   │   └── customLibrary.H
│   │       │   └── testCase/
│   │       │       ├── 0/
│   │       │       │   ├── U
│   │       │       │   └── p
│   │       │       ├── Allclean
│   │       │       ├── Allrun
│   │       │       ├── constant/
│   │       │       │   └── transportProperties
│   │       │       └── system/
│   │       │           ├── blockMeshDict
│   │       │           ├── controlDict
│   │       │           ├── decomposeParDict
│   │       │           ├── fvSchemes
│   │       │           └── fvSolution
│   │       ├── OFtutorial7_customBC/
│   │       │   ├── Allwclean
│   │       │   ├── Allwmake
│   │       │   ├── Make/
│   │       │   │   ├── files
│   │       │   │   └── options
│   │       │   ├── prescribedPipeInletFvPatchVectorField.C
│   │       │   ├── prescribedPipeInletFvPatchVectorField.H
│   │       │   └── testCase/
│   │       │       ├── 0.org/
│   │       │       │   ├── U
│   │       │       │   ├── k
│   │       │       │   ├── nut
│   │       │       │   ├── omega
│   │       │       │   └── p
│   │       │       ├── Allclean
│   │       │       ├── Allrun
│   │       │       ├── Allrun.mesh
│   │       │       ├── constant/
│   │       │       │   ├── transportProperties
│   │       │       │   └── turbulenceProperties
│   │       │       └── system/
│   │       │           ├── blockMeshDict
│   │       │           ├── controlDict
│   │       │           ├── decomposeParDict
│   │       │           ├── fvSchemes
│   │       │           ├── fvSolution
│   │       │           ├── mirrorMeshDict
│   │       │           ├── runConditions
│   │       │           └── sampleDict
│   │       ├── OFtutorial8_runtimePostprocessingUtility/
│   │       │   ├── IOpipeCalc.H
│   │       │   ├── Make/
│   │       │   │   ├── files
│   │       │   │   └── options
│   │       │   ├── pipeCalc.C
│   │       │   ├── pipeCalc.H
│   │       │   ├── pipeCalcFunctionObject.C
│   │       │   ├── pipeCalcFunctionObject.H
│   │       │   └── testCase/
│   │       │       ├── 0.org/
│   │       │       │   ├── U
│   │       │       │   ├── k
│   │       │       │   ├── nut
│   │       │       │   ├── omega
│   │       │       │   └── p
│   │       │       ├── Allclean
│   │       │       ├── Allrun
│   │       │       ├── Allrun.mesh
│   │       │       ├── constant/
│   │       │       │   ├── transportProperties
│   │       │       │   └── turbulenceProperties
│   │       │       └── system/
│   │       │           ├── blockMeshDict
│   │       │           ├── controlDict
│   │       │           ├── decomposeParDict
│   │       │           ├── fvSchemes
│   │       │           ├── fvSolution
│   │       │           ├── mirrorMeshDict
│   │       │           ├── runConditions
│   │       │           ├── sampleDict
│   │       │           └── topoSetDict
│   │       ├── OFtutorial9_transportEquation/
│   │       │   ├── Make/
│   │       │   │   ├── files
│   │       │   │   └── options
│   │       │   ├── OFtutorial9.C
│   │       │   └── testCase/
│   │       │       ├── 0/
│   │       │       │   ├── U
│   │       │       │   └── beta
│   │       │       ├── Allclean
│   │       │       ├── Allrun
│   │       │       ├── constant/
│   │       │       │   └── transportProperties
│   │       │       └── system/
│   │       │           ├── blockMeshDict
│   │       │           ├── controlDict
│   │       │           ├── fvSchemes
│   │       │           └── fvSolution
│   │       └── README.md
│   ├── README.md
│   └── testAll
└── waterChannel/
    ├── 0/
    │   ├── U
    │   ├── alpha.water.orig
    │   ├── k
    │   ├── nut
    │   ├── omega
    │   └── p_rgh
    ├── Allclean
    ├── Allmesh
    ├── Allrun
    ├── constant/
    │   ├── g
    │   ├── transportProperties
    │   └── turbulenceProperties
    └── system/
        ├── blockMeshDict
        ├── controlDict
        ├── extrudeMeshDict
        ├── extrudeMeshDict.1
        ├── extrudeMeshDict.2
        ├── fvSchemes
        ├── fvSolution
        ├── setFieldsDict
        └── surfaces

================================================
FILE CONTENTS
================================================

================================================
FILE: .gitignore
================================================
*.grf
*.gz
log.*
postProcessing
*~
processor*
[0-9]*
[0-9]*.[0-9]*
!0
!0.org
!0.orig
!0/
*.eMesh
polyMesh/
*.OpenFOAM
dynamicCode
sequencedVTK/


================================================
FILE: LICENSE
================================================
                    GNU GENERAL PUBLIC LICENSE
                       Version 3, 29 June 2007

 Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
 Everyone is permitted to copy and distribute verbatim copies
 of this license document, but changing it is not allowed.

                            Preamble

  The GNU General Public License is a free, copyleft license for
software and other kinds of works.

  The licenses for most software and other practical works are designed
to take away your freedom to share and change the works.  By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users.  We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors.  You can apply it to
your programs, too.

  When we speak of free software, we are referring to freedom, not
price.  Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.

  To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights.  Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.

  For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received.  You must make sure that they, too, receive
or can get the source code.  And you must show them these terms so they
know their rights.

  Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.

  For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software.  For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.

  Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so.  This is fundamentally incompatible with the aim of
protecting users' freedom to change the software.  The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable.  Therefore, we
have designed this version of the GPL to prohibit the practice for those
products.  If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.

  Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary.  To prevent this, the GPL assures that
patents cannot be used to render the program non-free.

  The precise terms and conditions for copying, distribution and
modification follow.

                       TERMS AND CONDITIONS

  0. Definitions.

  "This License" refers to version 3 of the GNU General Public License.

  "Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.

  "The Program" refers to any copyrightable work licensed under this
License.  Each licensee is addressed as "you".  "Licensees" and
"recipients" may be individuals or organizations.

  To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy.  The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.

  A "covered work" means either the unmodified Program or a work based
on the Program.

  To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy.  Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.

  To "convey" a work means any kind of propagation that enables other
parties to make or receive copies.  Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.

  An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License.  If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.

  1. Source Code.

  The "source code" for a work means the preferred form of the work
for making modifications to it.  "Object code" means any non-source
form of a work.

  A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.

  The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form.  A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.

  The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities.  However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work.  For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.

  The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.

  The Corresponding Source for a work in source code form is that
same work.

  2. Basic Permissions.

  All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met.  This License explicitly affirms your unlimited
permission to run the unmodified Program.  The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work.  This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.

  You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force.  You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright.  Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.

  Conveying under any other circumstances is permitted solely under
the conditions stated below.  Sublicensing is not allowed; section 10
makes it unnecessary.

  3. Protecting Users' Legal Rights From Anti-Circumvention Law.

  No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.

  When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.

  4. Conveying Verbatim Copies.

  You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.

  You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.

  5. Conveying Modified Source Versions.

  You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:

    a) The work must carry prominent notices stating that you modified
    it, and giving a relevant date.

    b) The work must carry prominent notices stating that it is
    released under this License and any conditions added under section
    7.  This requirement modifies the requirement in section 4 to
    "keep intact all notices".

    c) You must license the entire work, as a whole, under this
    License to anyone who comes into possession of a copy.  This
    License will therefore apply, along with any applicable section 7
    additional terms, to the whole of the work, and all its parts,
    regardless of how they are packaged.  This License gives no
    permission to license the work in any other way, but it does not
    invalidate such permission if you have separately received it.

    d) If the work has interactive user interfaces, each must display
    Appropriate Legal Notices; however, if the Program has interactive
    interfaces that do not display Appropriate Legal Notices, your
    work need not make them do so.

  A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit.  Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.

  6. Conveying Non-Source Forms.

  You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:

    a) Convey the object code in, or embodied in, a physical product
    (including a physical distribution medium), accompanied by the
    Corresponding Source fixed on a durable physical medium
    customarily used for software interchange.

    b) Convey the object code in, or embodied in, a physical product
    (including a physical distribution medium), accompanied by a
    written offer, valid for at least three years and valid for as
    long as you offer spare parts or customer support for that product
    model, to give anyone who possesses the object code either (1) a
    copy of the Corresponding Source for all the software in the
    product that is covered by this License, on a durable physical
    medium customarily used for software interchange, for a price no
    more than your reasonable cost of physically performing this
    conveying of source, or (2) access to copy the
    Corresponding Source from a network server at no charge.

    c) Convey individual copies of the object code with a copy of the
    written offer to provide the Corresponding Source.  This
    alternative is allowed only occasionally and noncommercially, and
    only if you received the object code with such an offer, in accord
    with subsection 6b.

    d) Convey the object code by offering access from a designated
    place (gratis or for a charge), and offer equivalent access to the
    Corresponding Source in the same way through the same place at no
    further charge.  You need not require recipients to copy the
    Corresponding Source along with the object code.  If the place to
    copy the object code is a network server, the Corresponding Source
    may be on a different server (operated by you or a third party)
    that supports equivalent copying facilities, provided you maintain
    clear directions next to the object code saying where to find the
    Corresponding Source.  Regardless of what server hosts the
    Corresponding Source, you remain obligated to ensure that it is
    available for as long as needed to satisfy these requirements.

    e) Convey the object code using peer-to-peer transmission, provided
    you inform other peers where the object code and Corresponding
    Source of the work are being offered to the general public at no
    charge under subsection 6d.

  A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.

  A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling.  In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage.  For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product.  A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.

  "Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source.  The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.

  If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information.  But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).

  The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed.  Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.

  Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.

  7. Additional Terms.

  "Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law.  If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.

  When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it.  (Additional permissions may be written to require their own
removal in certain cases when you modify the work.)  You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.

  Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:

    a) Disclaiming warranty or limiting liability differently from the
    terms of sections 15 and 16 of this License; or

    b) Requiring preservation of specified reasonable legal notices or
    author attributions in that material or in the Appropriate Legal
    Notices displayed by works containing it; or

    c) Prohibiting misrepresentation of the origin of that material, or
    requiring that modified versions of such material be marked in
    reasonable ways as different from the original version; or

    d) Limiting the use for publicity purposes of names of licensors or
    authors of the material; or

    e) Declining to grant rights under trademark law for use of some
    trade names, trademarks, or service marks; or

    f) Requiring indemnification of licensors and authors of that
    material by anyone who conveys the material (or modified versions of
    it) with contractual assumptions of liability to the recipient, for
    any liability that these contractual assumptions directly impose on
    those licensors and authors.

  All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10.  If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term.  If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.

  If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.

  Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.

  8. Termination.

  You may not propagate or modify a covered work except as expressly
provided under this License.  Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).

  However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.

  Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.

  Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License.  If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.

  9. Acceptance Not Required for Having Copies.

  You are not required to accept this License in order to receive or
run a copy of the Program.  Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance.  However,
nothing other than this License grants you permission to propagate or
modify any covered work.  These actions infringe copyright if you do
not accept this License.  Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.

  10. Automatic Licensing of Downstream Recipients.

  Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License.  You are not responsible
for enforcing compliance by third parties with this License.

  An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations.  If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.

  You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License.  For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.

  11. Patents.

  A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based.  The
work thus licensed is called the contributor's "contributor version".

  A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version.  For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.

  Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.

  In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement).  To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.

  If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients.  "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.

  If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.

  A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License.  You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.

  Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.

  12. No Surrender of Others' Freedom.

  If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License.  If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all.  For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.

  13. Use with the GNU Affero General Public License.

  Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work.  The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.

  14. Revised Versions of this License.

  The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time.  Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.

  Each version is given a distinguishing version number.  If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation.  If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.

  If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.

  Later license versions may give you additional or different
permissions.  However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.

  15. Disclaimer of Warranty.

  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.

  16. Limitation of Liability.

  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.

  17. Interpretation of Sections 15 and 16.

  If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.

                     END OF TERMS AND CONDITIONS

            How to Apply These Terms to Your New Programs

  If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.

  To do so, attach the following notices to the program.  It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.

    {one line to give the program's name and a brief idea of what it does.}
    Copyright (C) {year}  {name of author}

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.

Also add information on how to contact you by electronic and paper mail.

  If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:

    {project}  Copyright (C) {year}  {fullname}
    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
    This is free software, and you are welcome to redistribute it
    under certain conditions; type `show c' for details.

The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License.  Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".

  You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<http://www.gnu.org/licenses/>.

  The GNU General Public License does not permit incorporating your program
into proprietary programs.  If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library.  If this is what you want to do, use the GNU Lesser General
Public License instead of this License.  But first, please read
<http://www.gnu.org/philosophy/why-not-lgpl.html>.


================================================
FILE: README.md
================================================
# OpenFOAM Tutorials Plus
This repository contains several OpenFOAM tutorials, cases and notes.

Here's a brief description:

* **linuxCheatSheet**

  OpenFOAM Linux Cheat Sheet.

* **flatPlate**

  A simple 2D geometry is used to show the development of a turbulent boundary layer. It's an exercise of [Flow over a flat plate - YouTube](https://youtu.be/69Nna1UjICI).

* **magnusEffect**

  A rotating cylinder in free stream to show magnus effect. Gmsh is used to generate mesh.

* **abruptContraction**

  Abrupt contraction of a rectangular channel where cavitation occures. The *blockMeshDict* is written with variables. *interPhaseChangeFoam*, *pisoFoam* and  *pimpleFoam* are used.

* **waterChannel**

  Two-phase open channel flow. It's a fork  of the original interFoam tutorial *waterChannel*. The *surfaces* function is configured to generate water surfaces (namely, the isosurfaces where *alpha.water* is equal to 0.5). 

* **fishChannel**

  A baffled open channel for fish migration in eco-hydraulic engineering. A combination of *blockMesh*, *topoSet*, *createBaffles*, *refineMesh*, *refineWallLayer* etc are used for geometry and mesh generation.

* **cavitatingBullet**

  The simplified version of the original cavitatingBullet case. The initialization process using potentialFoam is removed in this version to show the basic usage of interPhaseChangeFoam. 

* **mpiTest**
 
  Parallel test for clusters using slurm job management tool. It can also be used on other platforms i.e. workstation after small modification. The case is based on damBreak4PhasesFine with multiphaseEulerFoam. 

* **programmingTutorials**

  Basic tutorials to show how to programme within the framework of OpenFOAM. Refer to the README file within the folder.

Pull requests are welcome! Happy foaming!


================================================
FILE: _config.yml
================================================
theme: jekyll-theme-cayman

================================================
FILE: abruptContraction/interPhaseChangeFoam/0/U
================================================
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  4.1                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     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
{
    inlet
    {
        type            turbulentInlet;
        referenceField  uniform (5 0 0);
        fluctuationScale (0.02 0.01 0.01);
        value           uniform (5 0 0);
    }
    outlet
    {
        type            inletOutlet;
        inletValue      uniform (0 0 0);
        value           uniform (0 0 0);
    }
    side
    {
        type            noSlip;
    }
    walls
    {
        type            noSlip;
    }
    symmetry
    {
        type            symmetry;
    }
}


// ************************************************************************* //


================================================
FILE: abruptContraction/interPhaseChangeFoam/0/alpha.water
================================================
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  3.0.0                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       volScalarField;
    location    "0";
    object      alpha.water;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 0 0 0 0];

internalField   uniform 1;

boundaryField
{
    inlet
    {
        type            fixedValue;
        value           1;
    }
    outlet
    {
        type            inletOutlet;
        inletValue      $internalField;
    }
    side
    {
        type            zeroGradient;
    }
    walls
    {
        type            zeroGradient;
    }
    symmetry
    {
        type            symmetry;
    }
}

// ************************************************************************* //


================================================
FILE: abruptContraction/interPhaseChangeFoam/0/k
================================================
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  4.1                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       volScalarField;
    object      k;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 2 -2 0 0 0 0];

internalField   uniform 0;

boundaryField
{
    inlet
    {
        type            fixedValue;
        value           uniform 2e-05;
    }

    outlet
    {
        type            inletOutlet;
        inletValue      uniform 0;
        value           uniform 0;
    }

    side
    {
        type            fixedValue;
        value           uniform 0;
    }

    walls
    {
        type            fixedValue;
        value           uniform 0;
    }

    symmetry
    {
        type            symmetry;
        value           uniform 0;
    }
}

// ************************************************************************* //


================================================
FILE: abruptContraction/interPhaseChangeFoam/0/nuTilda
================================================
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  4.1                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       volScalarField;
    object      nuTilda;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 2 -1 0 0 0 0];

internalField   uniform 0;

boundaryField
{
    inlet
    {
        type            fixedValue;
        value           uniform 0;
    }

    outlet
    {
        type            inletOutlet;
        inletValue      uniform 0;
        value           uniform 0;
    }

    side
    {
        type            fixedValue;
        value           uniform 0;
    }

    walls
    {
        type            fixedValue;
        value           uniform 0;
    }

    symmetry
    {
        type            fixedValue;
        value           uniform 0;
    }
}

// ************************************************************************* //


================================================
FILE: abruptContraction/interPhaseChangeFoam/0/nut
================================================
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  4.1                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       volScalarField;
    object      nut;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 2 -1 0 0 0 0];

internalField   uniform 0;

boundaryField
{
    inlet
    {
        type            zeroGradient;
    }

    outlet
    {
        type            zeroGradient;
    }

    side
    {
        type            zeroGradient;
    }

    walls
    {
        type            zeroGradient;
    }

    symmetry
    {
        type            symmetry;
    }
}

// ************************************************************************* //


================================================
FILE: abruptContraction/interPhaseChangeFoam/0/p_rgh
================================================
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  3.0.0                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       volScalarField;
    location    "0";
    object      p_rgh;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [1 -1 -2 0 0];

internalField   uniform 100952;

boundaryField
{
    inlet
    {
        type            zeroGradient;
    }

    outlet
    {
        type            fixedValue;
        value           72000;	//experimental value
    }

    walls
    {
        type            zeroGradient;
    }
    side
    {
        type            zeroGradient;
    }
    symmetry
    {
        type            symmetry;
    }
}

// ************************************************************************* //


================================================
FILE: abruptContraction/interPhaseChangeFoam/0/phi
================================================
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  4.1                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       surfaceScalarField;
    location    "0";
    object      phi;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 3 -1 0 0 0 0];

internalField   uniform 0;

boundaryField
{
    inlet
    {
        type            calculated;
        value           uniform 0;
    }
    outlet
    {
        type            calculated;
        value           uniform 0;
    }
    side
    {
        type            calculated;
        value           uniform 0;
    }
    walls
    {
        type            calculated;
        value           uniform 0;
    }
    symmetry
    {
        type            symmetry;
        value           uniform 0;
    }
}


// ************************************************************************* //


================================================
FILE: abruptContraction/interPhaseChangeFoam/0/s
================================================
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  4.1                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       volScalarField;
    object      s;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 0 0 0 0 0 0];

internalField   uniform 0;

boundaryField
{
    inlet
    {
        type            fixedValue;
        value           uniform 1;
    }

    outlet
    {
        type            inletOutlet;
        inletValue      uniform 0;
        value           uniform 0;
    }

    side
    {
        type            zeroGradient;
    }

    walls
    {
        type            zeroGradient;
    }

    symmetry
    {
        type            zeroGradient;
    }
}

// ************************************************************************* //


================================================
FILE: abruptContraction/interPhaseChangeFoam/Allclean
================================================
#!/bin/sh
cd ${0%/*} || exit 1    # Run from this directory

# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions

# Remove copy of 0.org
# rm -rf 0

cleanCase

# ----------------------------------------------------------------- end-of-file


================================================
FILE: abruptContraction/interPhaseChangeFoam/Allmesh
================================================
#!/bin/sh
cd ${0%/*} || exit 1    # Run from this directory

# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions

refineMeshByCellSet()
{
   while [ $# -ge 1 ]
   do
      if [ ! -e log.refineMesh.$1 ]
      then
          echo "Creating cell set for primary zone - $1"
          topoSet -dict system/topoSetDict.$1 > log.topoSet.$1 2>&1
          echo "Refining primary zone - $1"
          refineMesh -dict system/refineMeshDict.$1 -overwrite \
              > log.refineMesh.$1 2>&1
      fi
      shift
   done
}

runApplication blockMesh
refineMeshByCellSet 1
refineWallLayer -overwrite '(walls)' 0.2 >> log.refineWallLayer.1



#------------------------------------------------------------------------------


================================================
FILE: abruptContraction/interPhaseChangeFoam/Allrun
================================================
#!/bin/sh
cd ${0%/*} || exit 1    # Run from this directory

# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions

# Generate the base block mesh and refine
./Allmesh

# Run the solver in parallel
runApplication `getApplication`

# ----------------------------------------------------------------- end-of-file


================================================
FILE: abruptContraction/interPhaseChangeFoam/Allrun.parallel
================================================
#!/bin/sh
cd ${0%/*} || exit 1    # Run from this directory

# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions

# Generate the base block mesh and refine
./Allrun.mesh

# Decompose the mesh for parallel
runApplication decomposePar

# Run the solver in parallel
runParallel `getApplication`

# Reconstruct the decomposed mesh for postprocessing
runApplication reconstructPar

# ----------------------------------------------------------------- end-of-file


================================================
FILE: abruptContraction/interPhaseChangeFoam/constant/g
================================================
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  3.0.0                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       uniformDimensionedVectorField;
    location    "constant";
    object      g;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 1 -2 0 0 0 0];
value           (0 0 -9.81);


// ************************************************************************* //


================================================
FILE: abruptContraction/interPhaseChangeFoam/constant/transportProperties
================================================
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  3.0.0                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      transportProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

phases (water vapour);

phaseChangeTwoPhaseMixture SchnerrSauer;

pSat            [1 -1 -2 0 0 0 0] 2300;   // Saturation pressure

sigma           [1 0 -2 0 0 0 0]  0.07;

water
{
    transportModel Newtonian;
    nu              [0 2 -1 0 0 0 0] 9e-07;
    rho             [1 -3 0 0 0 0 0] 1000;
}

vapour
{
    transportModel Newtonian;
    nu              [0 2 -1 0 0 0 0] 4.273e-04;
    rho             [1 -3 0 0 0 0 0] 0.02308;
}

KunzCoeffs
{
    UInf            UInf   [0 1 -1 0 0 0 0]     20.0;
    tInf            tInf   [0 0 1 0 0 0 0]      0.005; // L = 0.1 m
    Cc              Cc     [0 0 0 0 0 0 0]      1000;
    Cv              Cv     [0 0 0 0 0 0 0]      1000;
}

MerkleCoeffs
{
    UInf            UInf   [0 1 -1 0 0 0 0]     20.0;
    tInf            tInf   [0 0 1 0 0 0 0]      0.005;  // L = 0.1 m
    Cc              Cc     [0 0 0 0 0 0 0]      80;
    Cv              Cv     [0 0 0 0 0 0 0]      1e-03;
}

SchnerrSauerCoeffs
{
    n               n      [0 -3 0 0 0 0 0]     1.6e+13;
    dNuc            dNuc   [0 1 0 0 0 0 0]      2.0e-07;
    Cc              Cc     [0 0 0 0 0 0 0]      1;
    Cv              Cv     [0 0 0 0 0 0 0]      1;
}


// ************************************************************************* //


================================================
FILE: abruptContraction/interPhaseChangeFoam/constant/turbulenceProperties
================================================
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  4.1                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "constant";
    object      turbulenceProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

simulationType  LES;
//simulationType  laminar;

LES
{
    LESModel        dynamicKEqn;

    turbulence      on;

    printCoeffs     on;

    delta           cubeRootVol;

    dynamicKEqnCoeffs
    {
        filter simple;
    }

    cubeRootVolCoeffs
    {
        deltaCoeff      1;
    }

    PrandtlCoeffs
    {
        delta           cubeRootVol;
        cubeRootVolCoeffs
        {
            deltaCoeff      1;
        }

        smoothCoeffs
        {
            delta           cubeRootVol;
            cubeRootVolCoeffs
            {
                deltaCoeff      1;
            }

            maxDeltaRatio   1.1;
        }

        Cdelta          0.158;
    }

    vanDriestCoeffs
    {
        delta           cubeRootVol;
        cubeRootVolCoeffs
        {
            deltaCoeff      1;
        }

        smoothCoeffs
        {
            delta           cubeRootVol;
            cubeRootVolCoeffs
            {
                deltaCoeff      1;
            }

            maxDeltaRatio   1.1;
        }

        Aplus           26;
        Cdelta          0.158;
    }

    smoothCoeffs
    {
        delta           cubeRootVol;
        cubeRootVolCoeffs
        {
            deltaCoeff      1;
        }

        maxDeltaRatio   1.1;
    }
}


// ************************************************************************* //


================================================
FILE: abruptContraction/interPhaseChangeFoam/system/blockMeshDict
================================================
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  4.1                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

convertToMeters 	0.01;

h1	18; //Height of the channel before contraction
h2	9;  //Height of the channel after contraction

l1 	40; //Length of the channel before contraction
l2 	40; //Length of the channel after contraction

w1	18; //Width of the channel

minX	0;
minY	-9;
minZ	0;

midX	#calc "$minX+$l1";
midZ	#calc "$minZ+$h2";

maxX	#calc "$midX+$l2";
maxY	#calc "$minY+$w1";
maxZ	#calc "$minZ+$h1";

vertices
(
    ($minX $minY $minZ)      //0
    ($midX $minY $minZ)
    ($maxX $minY $minZ)      //2
    ($minX $minY $midZ)
    ($midX $minY $midZ)	     //4
    ($maxX $minY $midZ)
    ($minX $minY $maxZ)      //6
    ($midX $minY $maxZ)

    ($minX $maxY $minZ)      //8
    ($midX $maxY $minZ)
    ($maxX $maxY $minZ)      //10
    ($minX $maxY $midZ)
    ($midX $maxY $midZ)	     //12
    ($maxX $maxY $midZ)
    ($minX $maxY $maxZ)      //14
    ($midX $maxY $maxZ)
);

blocks
(
    hex (0 1 9 8  3 4 12 11) (80 40 20) simpleGrading (0.5 1 0.5)
    hex (3 4 12 11  6 7 15 14) (80 40 20) simpleGrading (0.5 1 2)
    hex (1 2 10 9  4 5 13 12) (80 40 20) simpleGrading (2 1 0.5) 

);

edges
(
);

boundary
(
    inlet
    {
        type patch;
        faces
        (
            (0 3 11 8)
            (3 6 14 11)
        );
    }

    outlet
    {
        type patch;
        faces
        (
            (10 13 5 2)
        );
    }

    side
    {
        type patch;
        faces
        (
            (0 1 4 3)
            (1 2 5 4)
            (3 4 7 6)

            (11 12 9 8)
            (12 13 10 9)
            (14 15 12 11)
        );
    }


    walls
    {
        type wall;
        faces
        (
			(6 7 15 14)
			(4 12 15 7)
			(4 5 13 12)
        );
    }

	symmetry
	{
		type symmetry;
		faces
		(
            (0 8 9 1)
            (1 9 10 2)
		);
	}
);
// ************************************************************************* //


================================================
FILE: abruptContraction/interPhaseChangeFoam/system/controlDict
================================================
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  3.0.0                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

application             interPhaseChangeFoam;

startFrom               latestTime;

startTime               0;

stopAt                  endTime;

endTime                 1;

deltaT                  1e-5;

writeControl            adjustableRunTime;

writeInterval           0.001;

purgeWrite              1;

writeFormat             ascii;

writePrecision          6;

writeCompression        uncompressed;

timeFormat              general;

runTimeModifiable       yes;

adjustTimeStep          on;

maxCo                   1;

functions
{
    #includeFunc "surfaces"
    #includeFunc "probes"
    fieldAverage1
    {
        type            fieldAverage;
        libs            ("libfieldFunctionObjects.so");
        writeControl    writeTime;
        fields
        (
            U
            {
                mean        on;
                prime2Mean  on;
                base        time;
            }
            p_rgh
            {
                mean        on;
                prime2Mean  on;
                base        time;
            }
        );
    }
}

// ************************************************************************* //


================================================
FILE: abruptContraction/interPhaseChangeFoam/system/decomposeParDict
================================================
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  4.1                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    note        "mesh decomposition control dictionary";
    object      decomposeParDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

numberOfSubdomains 2;

method          simple;

simpleCoeffs
{
    n               (1 2 1);
    delta           0.001;
}


// ************************************************************************* //


================================================
FILE: abruptContraction/interPhaseChangeFoam/system/fvSchemes
================================================
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  3.0.0                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      fvSchemes;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

ddtSchemes
{
    default             Euler;
}

interpolationSchemes
{
    default             linear;
}

divSchemes
{
    default             none;
    div(rhoPhi,U)       Gauss linearUpwind grad(U);
    div(phi,omega)      Gauss linearUpwind grad(omega);
    div(phi,k)          Gauss linearUpwind grad(k);
    div(phi,alpha)      Gauss vanLeer;
    div(phirb,alpha)    Gauss linear;
    div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;
}

gradSchemes
{
    default             Gauss linear;
}

laplacianSchemes
{
    default             Gauss linear limited corrected 0.5;
}

snGradSchemes
{
    default             limited corrected 0.5;
}


// ************************************************************************* //


================================================
FILE: abruptContraction/interPhaseChangeFoam/system/fvSolution
================================================
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  3.0.0                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      fvSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

solvers
{
    "alpha.water.*"
    {
        cAlpha          0;
        nAlphaCorr      2;
        nAlphaSubCycles 1;

        MULESCorr       yes;
        nLimiterIter    5;

        solver          smoothSolver;
        smoother        symGaussSeidel;
        tolerance       1e-8;
        relTol          0;
        maxIter         10;
    };

    "U.*"
    {
        solver          smoothSolver;
        smoother        symGaussSeidel;
        tolerance       1e-6;
        relTol          0;
    };

    p_rgh
    {
        solver          GAMG;
        tolerance       1e-8;
        relTol          0.1;

        smoother        DICGaussSeidel;
        nPreSweeps      0;
        nPostSweeps     2;

        cacheAgglomeration true;

        nCellsInCoarsestLevel 10;
        agglomerator    faceAreaPair;
        mergeLevels     1;

        maxIter         50;
    };

    p_rghFinal
    {
        solver          PCG;
        preconditioner
        {
            preconditioner  GAMG;

            tolerance       1e-6;
            relTol          0;

            nVcycles        2;

            smoother        DICGaussSeidel;
            nPreSweeps      0;
            nPostSweeps     2;
            nFinestSweeps   2;

            cacheAgglomeration true;
            nCellsInCoarsestLevel 10;
            agglomerator    faceAreaPair;
            mergeLevels     1;
        };
        tolerance       1e-7;
        relTol          0;
        maxIter         50;
    };

    pcorr
    {
        $p_rgh;
        relTol          0;
    };

    Phi
    {
        $p_rgh;
        relTol          0;
    };

    "(U|k|B|nuTilda|s)"
    {
        solver          smoothSolver;
        smoother        GaussSeidel;
        tolerance       1e-05;
        relTol          0;
    };

    "(U|k|nuTilda)Final"
    {
        $U;
        tolerance       1e-05;
        relTol          0;
    };


}

potentialFlow
{
    nNonOrthogonalCorrectors   3;
}

PIMPLE
{
    momentumPredictor           no;
    nOuterCorrectors            1;
    nCorrectors                 3;
    nNonOrthogonalCorrectors    0;
}

relaxationFactors
{
    equations
    {
        "U.*"                   1;
    }
}


// ************************************************************************* //


================================================
FILE: abruptContraction/interPhaseChangeFoam/system/probes
================================================
/*--------------------------------*- C++ -*----------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     |
    \\  /    A nd           | Web:      www.OpenFOAM.org
     \\/     M anipulation  |
-------------------------------------------------------------------------------
Description
    Writes out values of fields from cells nearest to specified locations.

\*---------------------------------------------------------------------------*/

#includeEtc "caseDicts/postProcessing/probes/probes.cfg"

fields (p);
probeLocations
(
    (0.1 0 0.09)
    (0.15 0 0.09)
    (0.215 0 0)
    (0.245 0 0)
    (0.275 0 0)
    (0.375 0 0)
    (0.555 0 0)
);

// ************************************************************************* //


================================================
FILE: abruptContraction/interPhaseChangeFoam/system/refineMeshDict.1
================================================
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  5                                     |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "system";
    object      refineMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

set             c0;

coordinateSystem global;

globalCoeffs
{
    tan1            (1 0 0);
    tan2            (0 0 1);
}

directions      ( tan2 );

useHexTopology  yes;

geometricCut    no;

writeMesh       no;


// ************************************************************************* //


================================================
FILE: abruptContraction/interPhaseChangeFoam/system/refineMeshDict.2
================================================
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  5                                     |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "system";
    object      refineMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

set             c0;

coordinateSystem global;

globalCoeffs
{
    tan1            (1 0 0);
    tan2            (0 0 1);
}

directions      ( tan2 );

useHexTopology  yes;

geometricCut    no;

writeMesh       no;


// ************************************************************************* //


================================================
FILE: abruptContraction/interPhaseChangeFoam/system/surfaces
================================================
/*--------------------------------*- C++ -*----------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     |
    \\  /    A nd           | Web:      www.OpenFOAM.org
     \\/     M anipulation  |
-------------------------------------------------------------------------------
Description
    Writes out surface files with interpolated field data in VTK format, e.g.
    cutting planes, iso-surfaces and patch boundary surfaces.

    This file includes a selection of example surfaces, each of which the user
    should configure and/or remove.

\*---------------------------------------------------------------------------*/

#includeEtc "caseDicts/postProcessing/visualization/surfaces.cfg"

fields       (p U alpha.water);

surfaces
(

    yNormal
    {
        $cuttingPlane;
        pointAndNormalDict
        {
            normalVector $y;      // Overrides default normalVector (1 0 0)
        }                         // $y: macro for (0 1 0)
    }

    waterSurface
    {
        $isosurface;
        isoField    alpha.water;
        isoValue    0.50;
    }

);

// ************************************************************************* //


================================================
FILE: abruptContraction/interPhaseChangeFoam/system/topoSetDict.1
================================================
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  5                                     |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "system";
    object      topoSetDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

actions
(
    {
        name    c0;
        type    cellSet;
        action  new;
        source  boxToCell;
        sourceInfo
        {
            box (0.3 -0.09 0.01) (0.6 0.9 0.17);
        }
    }
);

// ************************************************************************* //


================================================
FILE: abruptContraction/interPhaseChangeFoam/system/topoSetDict.2
================================================
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  5                                     |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "system";
    object      topoSetDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

actions
(
    {
        name    c0;
        type    cellSet;
        action  new;
        source  boxToCell;
        sourceInfo
        {
            box (0.35 -0.09 0.01) (0.8 0.9 0.14);
        }
    }
);

// ************************************************************************* //


================================================
FILE: abruptContraction/pimpleFoam/0/U
================================================
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  4.1                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       volVectorField;
    object      U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 1 -1 0 0 0 0];

internalField   uniform (0 0 0);

boundaryField
{
    inlet
    {
        type            fixedValue;
        value           uniform (5 0 0);
    }

    outlet
    {
        type            zeroGradient;
    }

    side
    {
        type            noSlip;
    }

    walls
    {
        type            noSlip;
    }

    symmetry
    {
        type		noSlip;
    }
}

// ************************************************************************* //


================================================
FILE: abruptContraction/pimpleFoam/0/epsilon
================================================
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  4.1                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       volScalarField;
    location    "0";
    object      epsilon;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 2 -3 0 0 0 0];

internalField   uniform 14.855;

boundaryField
{
    inlet
    {
        type            fixedValue;
        value           uniform 14.855;
    }
    outlet
    {
        type            zeroGradient;
    }
    side
    {
        type            epsilonWallFunction;
        value           uniform 14.855;
    }
    walls
    {
        type            epsilonWallFunction;
        value           uniform 14.855;
    }
    symmetry
    {
        type            epsilonWallFunction;
	value		uniform 14.855;
    }
}


// ************************************************************************* //


================================================
FILE: abruptContraction/pimpleFoam/0/k
================================================
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  4.1                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       volScalarField;
    location    "0";
    object      k;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 2 -2 0 0 0 0];

internalField   uniform 0.375;

boundaryField
{
    inlet
    {
        type            fixedValue;
        value           uniform 0.375;
    }
    outlet
    {
        type            zeroGradient;
    }
    side
    {
        type            kqRWallFunction;
        value           uniform 0.375;
    }
    walls
    {
        type            kqRWallFunction;
        value           uniform 0.375;
    }
    symmetry
    {
        type            kqRWallFunction;
	value		uniform 0.375;
    }
}


// ************************************************************************* //


================================================
FILE: abruptContraction/pimpleFoam/0/nuTilda
================================================
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  4.1                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       volScalarField;
    object      nuTilda;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 2 -1 0 0 0 0];

internalField   uniform 0;

boundaryField
{
    inlet
    {
        type            fixedValue;
        value           uniform 0;
    }

    outlet
    {
        type            zeroGradient;
    }

    side
    {
        type            zeroGradient;
    }

    walls
    {
        type            zeroGradient;
    }

    symmetry
    {
        type            zeroGradient;
    }
}

// ************************************************************************* //


================================================
FILE: abruptContraction/pimpleFoam/0/nut
================================================
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  4.1                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       volScalarField;
    location    "0";
    object      nut;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 2 -1 0 0 0 0];

internalField   uniform 0;

boundaryField
{
    inlet
    {
        type            calculated;
        value           uniform 0;
    }
    outlet
    {
        type            calculated;
        value           uniform 0;
    }
    side
    {
        type            nutkWallFunction;
        value           uniform 0;
    }
    walls
    {
        type            nutkWallFunction;
        value           uniform 0;
    }
    symmetry
    {
        type            nutkWallFunction;
	value		uniform 0;
    }
}


// ************************************************************************* //


================================================
FILE: abruptContraction/pimpleFoam/0/p
================================================
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  4.1                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       volScalarField;
    object      p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 2 -2 0 0 0 0];

internalField   uniform 0;

boundaryField
{
    inlet
    {
        type            zeroGradient;
    }

    outlet
    {
        type            fixedValue;
	value		72;
    }

    side
    {
        type            zeroGradient;
    }

    walls
    {
        type            zeroGradient;
    }

    symmetry
    {
        type            zeroGradient;
    }
}

// ************************************************************************* //


================================================
FILE: abruptContraction/pimpleFoam/Allclean
================================================
#!/bin/sh
cd ${0%/*} || exit 1    # Run from this directory

# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions

cleanCase

# ----------------------------------------------------------------- end-of-file


================================================
FILE: abruptContraction/pimpleFoam/Allrun
================================================
#!/bin/sh
cd ${0%/*} || exit 1    # Run from this directory

# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions

# Generate the base block mesh
runApplication blockMesh

# Run the solver
runApplication `getApplication`

# ----------------------------------------------------------------- end-of-file


================================================
FILE: abruptContraction/pimpleFoam/Allrun.parallel
================================================
#!/bin/sh
cd ${0%/*} || exit 1    # Run from this directory

# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions

# Generate the base block mesh
runApplication blockMesh

# Decompose the mesh for parallel
runApplication decomposePar

# Run the solver in parallel
runParallel `getApplication`

# Reconstruct the decomposed mesh for postprocessing
runApplication reconstructPar

# ----------------------------------------------------------------- end-of-file


================================================
FILE: abruptContraction/pimpleFoam/constant/transportProperties
================================================
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  4.1                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "constant";
    object      transportProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

transportModel  Newtonian;

nu              [0 2 -1 0 0 0 0] 9e-07;
//rho		[1 -3 0 0 0 0 0] 1000;

// ************************************************************************* //


================================================
FILE: abruptContraction/pimpleFoam/constant/turbulenceProperties
================================================
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  4.1                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "constant";
    object      turbulenceProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

simulationType laminar;

RAS
{
    RASModel        kEpsilon;

    turbulence      off;

    printCoeffs     off;
}

// ************************************************************************* //


================================================
FILE: abruptContraction/pimpleFoam/system/blockMeshDict
================================================
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  4.1                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

convertToMeters 	0.01;

h1	18; //Height of the channel before contraction
h2	9;  //Height of the channel after contraction

l1 	20; //Length of the channel before contraction
l2 	40; //Length of the channel after contraction

w1	18; //Width of the channel

minX	0;
minY	-9;
minZ	0;

midX	#calc "$minX+$l1";
midZ	#calc "$minZ+$h2";

maxX	#calc "$midX+$l2";
maxY	#calc "$minY+$w1";
maxZ	#calc "$minZ+$h1";

vertices
(
    ($minX $minY $minZ)      //0
    ($midX $minY $minZ)
    ($maxX $minY $minZ)      //2
    ($minX $minY $midZ)
    ($midX $minY $midZ)	     //4
    ($maxX $minY $midZ)
    ($minX $minY $maxZ)      //6
    ($midX $minY $maxZ)

    ($minX $maxY $minZ)      //8
    ($midX $maxY $minZ)
    ($maxX $maxY $minZ)      //10
    ($minX $maxY $midZ)
    ($midX $maxY $midZ)	     //12
    ($maxX $maxY $midZ)
    ($minX $maxY $maxZ)      //14
    ($midX $maxY $maxZ)
);

blocks
(
    hex (0 1 9 8  3 4 12 11) (75 40 60) simpleGrading (0.25 1 0.25)
    hex (3 4 12 11  6 7 15 14) (75 40 60) simpleGrading (0.25 1 4)
    hex (1 2 10 9  4 5 13 12) (200 40 60) simpleGrading (2 1 0.25)

);

edges
(
);

boundary
(
    inlet
    {
        type patch;
        faces
        (
            (0 3 11 8)
            (3 6 14 11)
        );
    }

    outlet
    {
        type patch;
        faces
        (
            (10 13 5 2)
        );
    }

    side
    {
        type wall;
        faces
        (
            (0 1 4 3)
            (1 2 5 4)
            (3 4 7 6)

            (11 12 9 8)
            (12 13 10 9)
            (14 15 12 11)
        );
    }


    walls
    {
        type wall;
        faces
        (
		(6 7 15 14)
		(4 12 15 7)
		(4 5 13 12)
        );
    }

	symmetry
	{
	type wall;
	faces
	(
            (0 8 9 1)
            (1 9 10 2)
	);
	}
);
// ************************************************************************* //


================================================
FILE: abruptContraction/pimpleFoam/system/controlDict
================================================
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  4.1                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "system";
    object      controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

application     pimpleFoam;

startFrom       latestTime;

startTime       0;

stopAt          endTime;

endTime         0.1;

deltaT          5e-6;

writeControl    runTime;

writeInterval   0.01;

purgeWrite      0;

writeFormat     ascii;

writePrecision  6;

writeCompression off;

timeFormat      general;

timePrecision   6;

runTimeModifiable yes;

adjustTimeStep  no;

maxCo           5;

functions
{
    #includeFunc	"probes"
    #includeFunc	"surfaces"
}
// ************************************************************************* //


================================================
FILE: abruptContraction/pimpleFoam/system/decomposeParDict
================================================
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  4.1                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    note        "mesh decomposition control dictionary";
    object      decomposeParDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

numberOfSubdomains 2;

method          simple;

simpleCoeffs
{
    n               (1 2 1);
    delta           0.001;
}


// ************************************************************************* //


================================================
FILE: abruptContraction/pimpleFoam/system/fvSchemes
================================================
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  4.1                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "system";
    object      fvSchemes;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

ddtSchemes
{
    default         Euler;
}

gradSchemes
{
    default         Gauss linear;
}

divSchemes
{
    default         none;
    div(phi,U)      bounded Gauss linearUpwind grad(U);
    div(phi,k)      bounded Gauss upwind;
    div(phi,epsilon) bounded Gauss upwind;
    div(phi,R)      bounded Gauss upwind;
    div(R)          Gauss linear;
    div(phi,nuTilda) bounded Gauss upwind;
    div((nuEff*dev2(T(grad(U))))) Gauss linear;
}

laplacianSchemes
{
    default         Gauss linear corrected;
}

interpolationSchemes
{
    default         linear;
}

snGradSchemes
{
    default         corrected;
}


// ************************************************************************* //


================================================
FILE: abruptContraction/pimpleFoam/system/fvSolution
================================================
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  4.1                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "system";
    object      fvSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

solvers
{
    p
    {
        solver           GAMG;
        tolerance        1e-7;
        relTol           0.01;

        smoother         DICGaussSeidel;

    }

    pFinal
    {
        $p;
        relTol          0;
    }

    "(U|k|epsilon)"
    {
        solver          smoothSolver;
        smoother        symGaussSeidel;
        tolerance       1e-05;
        relTol          0.1;
    }

    "(U|k|epsilon)Final"
    {
        $U;
        relTol          0;
    }
}

PIMPLE
{
    nNonOrthogonalCorrectors 0;
    nCorrectors         2;
}


// ************************************************************************* //


================================================
FILE: abruptContraction/pimpleFoam/system/probes
================================================
/*--------------------------------*- C++ -*----------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     |
    \\  /    A nd           | Web:      www.OpenFOAM.org
     \\/     M anipulation  |
-------------------------------------------------------------------------------
Description
    Writes out values of fields from cells nearest to specified locations.

\*---------------------------------------------------------------------------*/

#includeEtc "caseDicts/postProcessing/probes/probes.cfg"

fields (p);
probeLocations
(
    (0.1 0 0.09)
    (0.15 0 0.09)
    (0.215 0 0)
    (0.245 0 0)
    (0.275 0 0)
    (0.375 0 0)
    (0.555 0 0)
);

// ************************************************************************* //


================================================
FILE: abruptContraction/pimpleFoam/system/surfaces
================================================
/*--------------------------------*- C++ -*----------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     |
    \\  /    A nd           | Web:      www.OpenFOAM.org
     \\/     M anipulation  |
-------------------------------------------------------------------------------
Description
    Writes out surface files with interpolated field data in VTK format, e.g.
    cutting planes, iso-surfaces and patch boundary surfaces.

    This file includes a selection of example surfaces, each of which the user
    should configure and/or remove.

\*---------------------------------------------------------------------------*/

#includeEtc "caseDicts/postProcessing/visualization/surfaces.cfg"

fields       (p U);

surfaces
(

    yNormal
    {
        $cuttingPlane;
        pointAndNormalDict
        {
            normalVector $y;      // Overrides default normalVector (1 0 0)
        }                         // $y: macro for (0 1 0)
    }

);

// ************************************************************************* //


================================================
FILE: abruptContraction/pisoFoam/0/U
================================================
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  4.1                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       volVectorField;
    object      U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 1 -1 0 0 0 0];

internalField   uniform (0 0 0);

boundaryField
{
    inlet
    {
        type            turbulentInlet;
        referenceField  uniform (5 0 0);
        fluctuationScale (0.02 0.01 0.01);
        value           uniform (5 0 0);
    }

    outlet
    {
        type            inletOutlet;
        inletValue      uniform (0 0 0);
        value           uniform (0 0 0);
    }

    side
    {
        type            noSlip;
    }

    walls
    {
        type            noSlip;
    }

    symmetry
    {
        type            noSlip;
    }
}

// ************************************************************************* //


================================================
FILE: abruptContraction/pisoFoam/0/k
================================================
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  4.1                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       volScalarField;
    object      k;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 2 -2 0 0 0 0];

internalField   uniform 0;

boundaryField
{
    inlet
    {
        type            fixedValue;
        value           uniform 2e-05;
    }

    outlet
    {
        type            inletOutlet;
        inletValue      uniform 0;
        value           uniform 0;
    }

    side
    {
        type            fixedValue;
        value           uniform 0;
    }

    walls
    {
        type            fixedValue;
        value           uniform 0;
    }

    symmetry
    {
        type            fixedValue;
        value           uniform 0;
    }
}

// ************************************************************************* //


================================================
FILE: abruptContraction/pisoFoam/0/nuTilda
================================================
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  4.1                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       volScalarField;
    object      nuTilda;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 2 -1 0 0 0 0];

internalField   uniform 0;

boundaryField
{
    inlet
    {
        type            fixedValue;
        value           uniform 0;
    }

    outlet
    {
        type            inletOutlet;
        inletValue      uniform 0;
        value           uniform 0;
    }

    side
    {
        type            fixedValue;
        value           uniform 0;
    }

    walls
    {
        type            fixedValue;
        value           uniform 0;
    }

    symmetry
    {
        type            fixedValue;
        value           uniform 0;
    }
}

// ************************************************************************* //


================================================
FILE: abruptContraction/pisoFoam/0/nut
================================================
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  4.1                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       volScalarField;
    object      nut;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 2 -1 0 0 0 0];

internalField   uniform 0;

boundaryField
{
    inlet
    {
        type            zeroGradient;
    }

    outlet
    {
        type            zeroGradient;
    }

    side
    {
        type            zeroGradient;
    }

    walls
    {
        type            zeroGradient;
    }

    symmetry
    {
        type            zeroGradient;
    }
}

// ************************************************************************* //


================================================
FILE: abruptContraction/pisoFoam/0/p
================================================
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  4.1                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       volScalarField;
    object      p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 2 -2 0 0 0 0];

internalField   uniform 0;

boundaryField
{
    inlet
    {
        type            zeroGradient;
    }

    outlet
    {
        type            fixedValue;
        value           uniform 72;
    }

    walls
    {
        type            zeroGradient;
    }

    side
    {
        type            zeroGradient;
    }

    symmetry
    {
        type            zeroGradient;
    }
}

// ************************************************************************* //


================================================
FILE: abruptContraction/pisoFoam/0/s
================================================
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  4.1                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       volScalarField;
    object      s;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 0 0 0 0 0 0];

internalField   uniform 0;

boundaryField
{
    inlet
    {
        type            fixedValue;
        value           uniform 1;
    }

    outlet
    {
        type            inletOutlet;
        inletValue      uniform 0;
        value           uniform 0;
    }

    side
    {
        type            zeroGradient;
    }

    walls
    {
        type            zeroGradient;
    }

    symmetry
    {
        type            zeroGradient;
    }
}

// ************************************************************************* //


================================================
FILE: abruptContraction/pisoFoam/Allclean
================================================
#!/bin/sh
cd ${0%/*} || exit 1    # Run from this directory

# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions

cleanCase

# ----------------------------------------------------------------- end-of-file


================================================
FILE: abruptContraction/pisoFoam/Allrun
================================================
#!/bin/sh
cd ${0%/*} || exit 1    # Run from this directory

# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions

# Generate the base block mesh
runApplication blockMesh

# Run the solver
runApplication `getApplication`

# ----------------------------------------------------------------- end-of-file


================================================
FILE: abruptContraction/pisoFoam/Allrun.parallel
================================================
#!/bin/sh
cd ${0%/*} || exit 1    # Run from this directory

# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions

# Generate the base block mesh
runApplication blockMesh

# Decompose the mesh for parallel
runApplication decomposePar

# Run the solver in parallel
runParallel `getApplication`

# Reconstruct the decomposed mesh for postprocessing
runApplication reconstructPar

# ----------------------------------------------------------------- end-of-file


================================================
FILE: abruptContraction/pisoFoam/constant/transportProperties
================================================
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  4.1                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "constant";
    object      transportProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

transportModel  Newtonian;

nu              [0 2 -1 0 0 0 0] 9e-07;

// ************************************************************************* //


================================================
FILE: abruptContraction/pisoFoam/constant/turbulenceProperties
================================================
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  4.1                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "constant";
    object      turbulenceProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

simulationType  LES;

LES
{
    LESModel        dynamicKEqn;

    turbulence      on;

    printCoeffs     on;

    delta           cubeRootVol;

    dynamicKEqnCoeffs
    {
        filter simple;
    }

    cubeRootVolCoeffs
    {
        deltaCoeff      1;
    }

    PrandtlCoeffs
    {
        delta           cubeRootVol;
        cubeRootVolCoeffs
        {
            deltaCoeff      1;
        }

        smoothCoeffs
        {
            delta           cubeRootVol;
            cubeRootVolCoeffs
            {
                deltaCoeff      1;
            }

            maxDeltaRatio   1.1;
        }

        Cdelta          0.158;
    }

    vanDriestCoeffs
    {
        delta           cubeRootVol;
        cubeRootVolCoeffs
        {
            deltaCoeff      1;
        }

        smoothCoeffs
        {
            delta           cubeRootVol;
            cubeRootVolCoeffs
            {
                deltaCoeff      1;
            }

            maxDeltaRatio   1.1;
        }

        Aplus           26;
        Cdelta          0.158;
    }

    smoothCoeffs
    {
        delta           cubeRootVol;
        cubeRootVolCoeffs
        {
            deltaCoeff      1;
        }

        maxDeltaRatio   1.1;
    }
}


// ************************************************************************* //


================================================
FILE: abruptContraction/pisoFoam/system/blockMeshDict
================================================
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  4.1                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

convertToMeters 	0.01;

h1	18; //Height of the channel before contraction
h2	9;  //Height of the channel after contraction

l1 	20; //Length of the channel before contraction
l2 	40; //Length of the channel after contraction

w1	18; //Width of the channel

minX	0;
minY	-9;
minZ	0;

midX	#calc "$minX+$l1";
midZ	#calc "$minZ+$h2";

maxX	#calc "$midX+$l2";
maxY	#calc "$minY+$w1";
maxZ	#calc "$minZ+$h1";

vertices
(
    ($minX $minY $minZ)      //0
    ($midX $minY $minZ)
    ($maxX $minY $minZ)      //2
    ($minX $minY $midZ)
    ($midX $minY $midZ)	     //4
    ($maxX $minY $midZ)
    ($minX $minY $maxZ)      //6
    ($midX $minY $maxZ)

    ($minX $maxY $minZ)      //8
    ($midX $maxY $minZ)
    ($maxX $maxY $minZ)      //10
    ($minX $maxY $midZ)
    ($midX $maxY $midZ)	     //12
    ($maxX $maxY $midZ)
    ($minX $maxY $maxZ)      //14
    ($midX $maxY $maxZ)
);

blocks
(
    hex (0 1 9 8  3 4 12 11) (75 40 60) simpleGrading (0.25 1 0.25)
    hex (3 4 12 11  6 7 15 14) (75 40 60) simpleGrading (0.25 1 4)
    hex (1 2 10 9  4 5 13 12) (200 40 60) simpleGrading (2 1 0.25)

);

edges
(
);

boundary
(
    inlet
    {
        type patch;
        faces
        (
            (0 3 11 8)
            (3 6 14 11)
        );
    }

    outlet
    {
        type patch;
        faces
        (
            (10 13 5 2)
        );
    }

    side
    {
        type wall;
        faces
        (
            (0 1 4 3)
            (1 2 5 4)
            (3 4 7 6)

            (11 12 9 8)
            (12 13 10 9)
            (14 15 12 11)
        );
    }


    walls
    {
        type wall;
        faces
        (
		(6 7 15 14)
		(4 12 15 7)
		(4 5 13 12)
        );
    }

	symmetry
	{
	type wall;
	faces
	(
            (0 8 9 1)
            (1 9 10 2)
	);
	}
);
// ************************************************************************* //


================================================
FILE: abruptContraction/pisoFoam/system/controlDict
================================================
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  4.1                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "system";
    object      controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

application     pisoFoam;

startFrom       latestTime;

startTime       0;

stopAt          endTime;

endTime         0.1;

deltaT          1e-05;

writeControl    runTime;

writeInterval   0.01;

purgeWrite      0;

writeFormat     ascii;

writePrecision  6;

writeCompression off;

timeFormat      general;

timePrecision   6;

runTimeModifiable true;

functions
{
    #includeFunc "surfaces"
    #includeFunc "probes"
}

// ************************************************************************* //


================================================
FILE: abruptContraction/pisoFoam/system/decomposeParDict
================================================
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  4.1                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    note        "mesh decomposition control dictionary";
    object      decomposeParDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

numberOfSubdomains 2;

method          simple;

simpleCoeffs
{
    n               (1 2 1);
    delta           0.001;
}


// ************************************************************************* //


================================================
FILE: abruptContraction/pisoFoam/system/fvSchemes
================================================
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  4.1                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "system";
    object      fvSchemes;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

ddtSchemes
{
    default         backward;
}

gradSchemes
{
    default         Gauss linear;
}

divSchemes
{
    default         none;
    div(phi,U)      Gauss LUST grad(U);
    div(phi,k)      Gauss limitedLinear 1;
    div(phi,s)      bounded Gauss limitedLinear 1;
    div((nuEff*dev2(T(grad(U))))) Gauss linear;
}

laplacianSchemes
{
    default         Gauss linear corrected;
}

interpolationSchemes
{
    default         linear;
}

snGradSchemes
{
    default         corrected;
}


// ************************************************************************* //


================================================
FILE: abruptContraction/pisoFoam/system/fvSolution
================================================
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  4.1                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "system";
    object      fvSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

solvers
{
    p
    {
        solver          GAMG;
        tolerance       1e-06;
        relTol          0.1;
        smoother        GaussSeidel;
    }

    pFinal
    {
        $p;
        smoother        DICGaussSeidel;
        tolerance       1e-06;
        relTol          0;
    }

    "(U|k|B|nuTilda|s)"
    {
        solver          smoothSolver;
        smoother        GaussSeidel;
        tolerance       1e-05;
        relTol          0;
    }
}

PISO
{
    nCorrectors     2;
    nNonOrthogonalCorrectors 0;
}


// ************************************************************************* //


================================================
FILE: abruptContraction/pisoFoam/system/probes
================================================
/*--------------------------------*- C++ -*----------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     |
    \\  /    A nd           | Web:      www.OpenFOAM.org
     \\/     M anipulation  |
-------------------------------------------------------------------------------
Description
    Writes out values of fields from cells nearest to specified locations.

\*---------------------------------------------------------------------------*/

#includeEtc "caseDicts/postProcessing/probes/probes.cfg"

fields (p);
probeLocations
(
    (0.1 0 0.09)
    (0.15 0 0.09)
    (0.215 0 0)
    (0.245 0 0)
    (0.275 0 0)
    (0.375 0 0)
    (0.555 0 0)
);

// ************************************************************************* //


================================================
FILE: abruptContraction/pisoFoam/system/surfaces
================================================
/*--------------------------------*- C++ -*----------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     |
    \\  /    A nd           | Web:      www.OpenFOAM.org
     \\/     M anipulation  |
-------------------------------------------------------------------------------
Description
    Writes out surface files with interpolated field data in VTK format, e.g.
    cutting planes, iso-surfaces and patch boundary surfaces.

    This file includes a selection of example surfaces, each of which the user
    should configure and/or remove.

\*---------------------------------------------------------------------------*/

#includeEtc "caseDicts/postProcessing/visualization/surfaces.cfg"

fields       (p U);

surfaces
(

    yNormal
    {
        $cuttingPlane;
        pointAndNormalDict
        {
            normalVector $y;      // Overrides default normalVector (1 0 0)
        }                         // $y: macro for (0 1 0)
    }

);

// ************************************************************************* //


================================================
FILE: abruptContraction/simpleFoam/0/U
================================================
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  4.1                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     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
{
    inlet
    {
        type            fixedValue;
        value           uniform (5 0 0);
 
    }
    outlet
    {
        type            zeroGradient;
 
    }
    side
    {
        type            noSlip;
    }
    walls
    {
        type            noSlip;
    }
    symmetry
    {
        type            symmetry;
    }
}


// ************************************************************************* //


================================================
FILE: abruptContraction/simpleFoam/0/epsilon
================================================
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  5                                     |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       volScalarField;
    location    "0";
    object      epsilon;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 2 -3 0 0 0 0];

internalField   uniform 14.855;

boundaryField
{
    inlet
    {
        type            fixedValue;
        value           uniform 14.855;
    }
    outlet
    {
        type            zeroGradient;
    }
    walls
    {
        type            epsilonWallFunction;
        value           uniform 14.855;
    }
    side
    {
        type            epsilonWallFunction;
        value           uniform 14.855;
    }
    symmetry
    {
        type            symmetry;
    }
}


// ************************************************************************* //


================================================
FILE: abruptContraction/simpleFoam/0/k
================================================
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  4.1                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       volScalarField;
    object      k;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 2 -2 0 0 0 0];

internalField   uniform 0;

boundaryField
{
    inlet
    {
        type            fixedValue;
        value           uniform 2e-05;
    }

    outlet
    {
        type            inletOutlet;
        inletValue      uniform 0;
        value           uniform 0;
    }

    side
    {
        type            fixedValue;
        value           uniform 0;
    }

    walls
    {
        type            fixedValue;
        value           uniform 0;
    }

    symmetry
    {
        type            symmetry;
    }
}

// ************************************************************************* //


================================================
FILE: abruptContraction/simpleFoam/0/nut
================================================
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  4.1                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       volScalarField;
    object      nut;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 2 -1 0 0 0 0];

internalField   uniform 0;

boundaryField
{
    inlet
    {
        type            zeroGradient;
    }

    outlet
    {
        type            zeroGradient;
    }

    side
    {
        type            zeroGradient;
    }

    walls
    {
        type            zeroGradient;
    }

    symmetry
    {
        type            symmetry;
    }
}

// ************************************************************************* //


================================================
FILE: abruptContraction/simpleFoam/0/p
================================================
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  3.0.0                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       volScalarField;
    location    "0";
    object      p_rgh;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 2 -2 0 0];

internalField   uniform 72;

boundaryField
{
    inlet
    {
        type            zeroGradient;
    }

    outlet
    {
        type            fixedValue;
        value           uniform 72;	//experimental value
    }

    walls
    {
        type            zeroGradient;
    }
    side
    {
        type            zeroGradient;
    }
    symmetry
    {
        type            symmetry;
    }
}

// ************************************************************************* //


================================================
FILE: abruptContraction/simpleFoam/Allclean
================================================
#!/bin/sh
cd ${0%/*} || exit 1    # Run from this directory

# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions

# Remove copy of 0.org
# rm -rf 0

cleanCase

# ----------------------------------------------------------------- end-of-file


================================================
FILE: abruptContraction/simpleFoam/Allrun
================================================
#!/bin/sh
cd ${0%/*} || exit 1    # Run from this directory

# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions

# Generate the base block mesh and refine
runApplication blockMesh

# Run the solver in parallel
runApplication `getApplication`

# ----------------------------------------------------------------- end-of-file


================================================
FILE: abruptContraction/simpleFoam/constant/transportProperties
================================================
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  4.1                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "constant";
    object      transportProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

transportModel  Newtonian;

nu              [0 2 -1 0 0 0 0] 9e-07;

// ************************************************************************* //


================================================
FILE: abruptContraction/simpleFoam/constant/turbulenceProperties
================================================
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  5                                     |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "constant";
    object      turbulenceProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

simulationType RAS;

RAS
{
    RASModel        kEpsilon;

    turbulence      on;

    printCoeffs     on;
}


// ************************************************************************* //


================================================
FILE: abruptContraction/simpleFoam/system/blockMeshDict
================================================
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  4.1                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

convertToMeters 	0.01;

h1	18; //Height of the channel before contraction
h2	9;  //Height of the channel after contraction

l1 	40; //Length of the channel before contraction
l2 	40; //Length of the channel after contraction

w1	18; //Width of the channel

minX	0;
minY	-9;
minZ	0;

midX	#calc "$minX+$l1";
midZ	#calc "$minZ+$h2";

maxX	#calc "$midX+$l2";
maxY	#calc "$minY+$w1";
maxZ	#calc "$minZ+$h1";

vertices
(
    ($minX $minY $minZ)      //0
    ($midX $minY $minZ)
    ($maxX $minY $minZ)      //2
    ($minX $minY $midZ)
    ($midX $minY $midZ)	     //4
    ($maxX $minY $midZ)
    ($minX $minY $maxZ)      //6
    ($midX $minY $maxZ)

    ($minX $maxY $minZ)      //8
    ($midX $maxY $minZ)
    ($maxX $maxY $minZ)      //10
    ($minX $maxY $midZ)
    ($midX $maxY $midZ)	     //12
    ($maxX $maxY $midZ)
    ($minX $maxY $maxZ)      //14
    ($midX $maxY $maxZ)
);

blocks
(
    hex (0 1 9 8  3 4 12 11) (40 20 10) simpleGrading (0.5 1 0.5)
    hex (3 4 12 11  6 7 15 14) (40 20 10) simpleGrading (0.5 1 2)
    hex (1 2 10 9  4 5 13 12) (40 20 10) simpleGrading (2 1 0.5) 

);

edges
(
);

boundary
(
    inlet
    {
        type patch;
        faces
        (
            (0 3 11 8)
            (3 6 14 11)
        );
    }

    outlet
    {
        type patch;
        faces
        (
            (10 13 5 2)
        );
    }

    side
    {
        type wall;
        faces
        (
            (0 1 4 3)
            (1 2 5 4)
            (3 4 7 6)

            (11 12 9 8)
            (12 13 10 9)
            (14 15 12 11)
        );
    }


    walls
    {
        type wall;
        faces
        (
			(6 7 15 14)
			(4 12 15 7)
			(4 5 13 12)
        );
    }

	symmetry
	{
		type symmetry;
		faces
		(
            (0 8 9 1)
            (1 9 10 2)
		);
	}
);
// ************************************************************************* //


================================================
FILE: abruptContraction/simpleFoam/system/controlDict
================================================
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  5                                     |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "system";
    object      controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

application     simpleFoam;

startFrom       startTime;

startTime       0;

stopAt          endTime;

endTime         2000;

deltaT          1;

writeControl    timeStep;

writeInterval   100;

purgeWrite      1;

writeFormat     ascii;

writePrecision  6;

writeCompression off;

timeFormat      general;

timePrecision   6;

runTimeModifiable true;


// ************************************************************************* //


================================================
FILE: abruptContraction/simpleFoam/system/fvSchemes
================================================
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  5                                     |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "system";
    object      fvSchemes;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

ddtSchemes
{
    default         steadyState;
}

gradSchemes
{
    default         Gauss linear;
}

divSchemes
{
    default         none;
    div(phi,U)      bounded Gauss linearUpwind grad(U);
    div(phi,k)      bounded Gauss limitedLinear 1;
    div(phi,epsilon) bounded Gauss limitedLinear 1;
    div(phi,omega)  bounded Gauss limitedLinear 1;
    div(phi,v2)     bounded Gauss limitedLinear 1;
    div((nuEff*dev2(T(grad(U))))) Gauss linear;
    div(nonlinearStress) Gauss linear;
}

laplacianSchemes
{
    default         Gauss linear corrected;
}

interpolationSchemes
{
    default         linear;
}

snGradSchemes
{
    default         corrected;
}

wallDist
{
    method meshWave;
}


// ************************************************************************* //


================================================
FILE: abruptContraction/simpleFoam/system/fvSolution
================================================
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  5                                     |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "system";
    object      fvSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

solvers
{
    p
    {
        solver          GAMG;
        tolerance       1e-06;
        relTol          0.1;
        smoother        GaussSeidel;
    }

    "(U|k|epsilon|omega|f|v2)"
    {
        solver          smoothSolver;
        smoother        symGaussSeidel;
        tolerance       1e-05;
        relTol          0.1;
    }
}

SIMPLE
{
    nNonOrthogonalCorrectors 0;
    consistent      yes;

    residualControl
    {
        p               1e-2;
        U               1e-3;
        "(k|epsilon|omega|f|v2)" 1e-3;
    }
}

relaxationFactors
{
    equations
    {
        U               0.1; // 0.9 is more stable but 0.95 more convergent
        ".*"            0.1; // 0.9 is more stable but 0.95 more convergent
    }
}


// ************************************************************************* //


================================================
FILE: cavitatingBullet/0/U
================================================
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  5                                     |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       volVectorField;
    location    "0";
    object      U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 1 -1 0 0];

internalField   uniform (0 0 20);

boundaryField
{
    inlet
    {
        type            fixedValue;
        value           $internalField;
    }

    outlet
    {
        type            pressureInletOutletVelocity;
        value           $internalField;
    }

    walls
    {
        type            symmetry;
    }

    bullet
    {
        type            noSlip;
    }
}

// ************************************************************************* //


================================================
FILE: cavitatingBullet/0/alpha.water
================================================
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  5                                     |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       volScalarField;
    location    "0";
    object      alpha.water;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 0 0 0 0];

internalField   uniform 1;

boundaryField
{
    inlet
    {
        type            fixedValue;
        value           $internalField;
    }

    outlet
    {
        type            inletOutlet;
        inletValue      $internalField;
    }

    walls
    {
        type            symmetry;
    }

    bullet
    {
        type            zeroGradient;
    }
}

// ************************************************************************* //


================================================
FILE: cavitatingBullet/0/p_rgh
================================================
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  5                                     |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       volScalarField;
    location    "0";
    object      p_rgh;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [1 -1 -2 0 0];

internalField   uniform 100000;

boundaryField
{
    inlet
    {
        type            zeroGradient;
    }

    outlet
    {
        type            fixedValue;
        value           $internalField;
    }

    walls
    {
        type            symmetry;
    }

    bullet
    {
        type            fixedFluxPressure;
    }
}

// ************************************************************************* //


================================================
FILE: cavitatingBullet/Allclean
================================================
#!/bin/sh
cd ${0%/*} || exit 1    # Run from this directory

# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions

# Remove surface
rm -f constant/triSurface/bullet.stl.gz

cleanCase

#------------------------------------------------------------------------------


================================================
FILE: cavitatingBullet/Allrun
================================================
#!/bin/sh
cd ${0%/*} || exit 1    # Run from this directory

# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions

# Copy bullet surface from resources directory
cp $FOAM_TUTORIALS/resources/geometry/bullet.stl.gz constant/triSurface/

# Generate the base block mesh
runApplication blockMesh

# Generate the snappy mesh
runApplication snappyHexMesh -overwrite

# Run the solver
runApplication `getApplication`

#------------------------------------------------------------------------------


================================================
FILE: cavitatingBullet/constant/g
================================================
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  5                                     |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       uniformDimensionedVectorField;
    location    "constant";
    object      g;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 1 -2 0 0 0 0];
value           (0 -9.81 0);


// ************************************************************************* //


================================================
FILE: cavitatingBullet/constant/transportProperties
================================================
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  5                                     |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      transportProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

phases (water vapour);

phaseChangeTwoPhaseMixture SchnerrSauer;

pSat            2300;   // Saturation pressure

sigma           0.07;

water
{
    transportModel  Newtonian;
    nu              9e-07;
    rho             1000;
}

vapour
{
    transportModel  Newtonian;
    nu              4.273e-04;
    rho             0.02308;
}

KunzCoeffs
{
    UInf            U20.0;
    tInf            t0.005; // L = 0.1 m
    Cc              C1000;
    Cv              C1000;
}

MerkleCoeffs
{
    UInf            20.0;
    tInf            0.005;  // L = 0.1 m
    Cc              80;
    Cv              1e-03;
}

SchnerrSauerCoeffs
{
    n               1.6e+13;
    dNuc            2.0e-06;
    Cc              1;
    Cv              1;
}


// ************************************************************************* //


================================================
FILE: cavitatingBullet/constant/triSurface/README
================================================
Directory to house tri-surfaces

The Allrun script copies the surface from the $FOAM_TUTORIALS/resources/geometry
directory


================================================
FILE: cavitatingBullet/constant/turbulenceProperties
================================================
/*--------------------------------*- C++ -*----------------------------------* \
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  5                                     |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      turbulenceProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

simulationType laminar;


// ************************************************************************* //


================================================
FILE: cavitatingBullet/system/blockMeshDict
================================================
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  5                                     |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

convertToMeters 1e-3;

vertices
(
    (-15 -15 -15)
    (15 -15 -15)
    (15  15 -15)
    (-15  15 -15)
    (-15 -15 100)
    (15 -15 100)
    (15  15 100)
    (-15  15 100)
);

blocks
(
    hex (0 1 2 3 4 5 6 7) (15 15 50) simpleGrading (1 1 1)
);

boundary
(
    inlet
    {
        type patch;
        faces
        (
            (0 3 2 1)
        );
    }
    outlet
    {
        type patch;
        faces
        (
            (4 5 6 7)
        );
    }
    walls
    {
        type symmetry;
        faces
        (
            (0 4 7 3)
            (2 6 5 1)
            (1 5 4 0)
            (3 7 6 2)
        );
    }
);


// ************************************************************************* //


================================================
FILE: cavitatingBullet/system/controlDict
================================================
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  5                                     |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

application             interPhaseChangeFoam;

startFrom               latestTime;

startTime               0;

stopAt                  endTime;

endTime                 0.05;

deltaT                  1e-8;

writeControl            adjustableRunTime;

writeInterval           0.001;

purgeWrite              0;

writeFormat             ascii;

writePrecision          6;

writeCompression        uncompressed;

timeFormat              general;

runTimeModifiable       yes;

adjustTimeStep          on;

maxCo                   5;


// ************************************************************************* //


================================================
FILE: cavitatingBullet/system/decomposeParDict
================================================
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  5                                     |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "system";
    object      decomposeParDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

numberOfSubdomains 4;

method          simple;

simpleCoeffs
{
    n               (2 2 1);
    delta           0.001;
}

hierarchicalCoeffs
{
    n               (1 1 1);
    delta           0.001;
    order           xyz;
}

manualCoeffs
{
    dataFile        "";
}

distributed     no;

roots           ( );


// ************************************************************************* //


================================================
FILE: cavitatingBullet/system/fvSchemes
================================================
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  5                                     |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      fvSchemes;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

ddtSchemes
{
    default             Euler;
}

interpolationSchemes
{
    default             linear;
}

divSchemes
{
    default             none;
    div(rhoPhi,U)       Gauss linearUpwind grad(U);
    div(phi,omega)      Gauss linearUpwind grad(omega);
    div(phi,k)          Gauss linearUpwind grad(k);
    div(phi,alpha)      Gauss vanLeer;
    div(phirb,alpha)    Gauss linear;
    div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;
}

gradSchemes
{
    default             Gauss linear;
}

laplacianSchemes
{
    default             Gauss linear limited corrected 0.5;
}

snGradSchemes
{
    default             limited corrected 0.5;
}


// ************************************************************************* //


================================================
FILE: cavitatingBullet/system/fvSolution
================================================
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  5                                     |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      fvSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

solvers
{
    "alpha.water.*"
    {
        cAlpha          0;
        nAlphaCorr      2;
        nAlphaSubCycles 1;

        MULESCorr       yes;
        nLimiterIter    5;

        solver          smoothSolver;
        smoother        symGaussSeidel;
        tolerance       1e-8;
        relTol          0;
        maxIter         10;
    };

    "U.*"
    {
        solver          smoothSolver;
        smoother        symGaussSeidel;
        tolerance       1e-6;
        relTol          0;
    };

    p_rgh
    {
        solver          GAMG;
        tolerance       1e-8;
        relTol          0.1;

        smoother        DICGaussSeidel;



        maxIter         50;
    };

    p_rghFinal
    {
        solver          PCG;
        preconditioner
        {
            preconditioner  GAMG;

            tolerance       1e-6;
            relTol          0;

            nVcycles        2;

            smoother        DICGaussSeidel;

        };
        tolerance       1e-7;
        relTol          0;
        maxIter         50;
    };

    "pcorr.*"
    {
        $p_rgh;
        relTol          0;
    };

    Phi
    {
        $p_rgh;
        relTol          0;
    };
}

potentialFlow
{
    nNonOrthogonalCorrectors   3;
}

PIMPLE
{
    momentumPredictor           no;
    nOuterCorrectors            1;
    nCorrectors                 3;
    nNonOrthogonalCorrectors    0;
}

relaxationFactors
{
    equations
    {
        "U.*"                   1;
    }
}


// ************************************************************************* //


================================================
FILE: cavitatingBullet/system/snappyHexMeshDict
================================================
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  5                                     |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      snappyHexMeshDict;
}

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

// Which of the steps to run
castellatedMesh true;
snap            true;
addLayers       true;


// Geometry. Definition of all surfaces. All surfaces are of class
// searchableSurface.
// Surfaces are used
// - to specify refinement for any mesh cell intersecting it
// - to specify refinement for any mesh cell inside/outside/near
// - to 'snap' the mesh boundary to the surface
geometry
{
    bullet
    {
        type triSurfaceMesh;
        file "bullet.stl";

        regions
        {
            bullet
            {
                name bullet;
            }
        }
    }

    refinement1
    {
        type searchableSphere;
        centre (0 0 0.0025);
        radius 0.0075;
    }

    refinement2
    {
        type searchableCylinder;
        point1 (0 0 0);
        point2 (0 0 0.03);
        radius 0.0075;
    }
};



// Settings for the castellatedMesh generation.
castellatedMeshControls
{

    // Refinement parameters
    // ~~~~~~~~~~~~~~~~~~~~~

    // If local number of cells is >= maxLocalCells on any processor
    // switches from from refinement followed by balancing
    // (current method) to (weighted) balancing before refinement.
    maxLocalCells 100000;

    // Overall cell limit (approximately). Refinement will stop immediately
    // upon reaching this number so a refinement level might not complete.
    // Note that this is the number of cells before removing the part which
    // is not 'visible' from the keepPoint. The final number of cells might
    // actually be a lot less.
    maxGlobalCells 2000000;

    // The surface refinement loop might spend lots of iterations refining just a
    // few cells. This setting will cause refinement to stop if <= minimumRefine
    // are selected for refinement. Note: it will at least do one iteration
    // (unless the number of cells to refine is 0)
    minRefinementCells 10;

    // Number of buffer layers between different levels.
    // 1 means normal 2:1 refinement restriction, larger means slower
    // refinement.
    nCellsBetweenLevels 2;



    // Explicit feature edge refinement
    // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    // Specifies a level for any cell intersected by its edges.
    // This is a featureEdgeMesh, read from constant/triSurface for now.
    features
    (
        //{
        //    file "someLine.eMesh";
        //    level 2;
        //}
    );



    // Surface based refinement
    // ~~~~~~~~~~~~~~~~~~~~~~~~

    // Specifies two levels for every surface. The first is the minimum level,
    // every cell intersecting a surface gets refined up to the minimum level.
    // The second level is the maximum level. Cells that 'see' multiple
    // intersections where the intersections make an
    // angle > resolveFeatureAngle get refined up to the maximum level.

    refinementSurfaces
    {
        bullet
        {
            // Surface-wise min and max refinement level
            level (4 4);
        }
    }

    // Resolve sharp angles
    resolveFeatureAngle -1;


    // Region-wise refinement
    // ~~~~~~~~~~~~~~~~~~~~~~

    // Specifies refinement level for cells in relation to a surface. One of
    // three modes
    // - distance. 'levels' specifies per distance to the surface the
    //   wanted refinement level. The distances need to be specified in
    //   descending order.
    // - inside. 'levels' is only one entry and only the level is used. All
    //   cells inside the surface get refined up to the level. The surface
    //   needs to be closed for this to be possible.
    // - outside. Same but cells outside.

    refinementRegions
    {
        refinement1
        {
            mode inside;
            levels ((0.0 3));
        }
        refinement2
        {
            mode inside;
            levels ((0.0 3));
        }
    }


    // Mesh selection
    // ~~~~~~~~~~~~~~

    // After refinement patches get added for all refinementSurfaces and
    // all cells intersecting the surfaces get put into these patches. The
    // section reachable from the locationInMesh is kept.
    // NOTE: This point should never be on a face, always inside a cell, even
    // after refinement.
    locationInMesh (0 0 -10e-3);

    allowFreeStandingZoneFaces false;
}



// Settings for the snapping.
snapControls
{
    //- Number of patch smoothing iterations before finding correspondence
    //  to surface
    nSmoothPatch 3;

    //- Relative distance for points to be attracted by surface feature point
    //  or edge. True distance is this factor times local
    //  maximum edge length.
    tolerance 4.0;

    //- Number of mesh displacement relaxation iterations.
    nSolveIter 30;

    //- Maximum number of snapping relaxation iterations. Should stop
    //  before upon reaching a correct mesh.
    nRelaxIter 5;
}



// Settings for the layer addition.
addLayersControls
{
    // Are the thickness parameters below relative to the undistorted
    // size of the refined cell outside layer (true) or absolute sizes (false).
    relativeSizes true;

    // Per final patch (so not geometry!) the layer information
    layers
    {
    }

    // Expansion factor for layer mesh
    expansionRatio 1.0;

    // Wanted thickness of final added cell layer. If multiple layers
    // is the thickness of the layer furthest away from the wall.
    // Relative to undistorted size of cell outside layer.
    // See relativeSizes parameter.
    finalLayerThickness 0.3;

    // Minimum thickness of cell layer. If for any reason layer
    // cannot be above minThickness do not add layer.
    // Relative to undistorted size of cell outside layer.
    minThickness 0.1;

    // If points get not extruded do nGrow layers of connected faces that are
    // also not grown. This helps convergence of the layer addition process
    // close to features.
    // Note: changed(corrected) w.r.t 17x! (didn't do anything in 17x)
    nGrow 0;


    // Advanced settings

    // When not to extrude surface. 0 is flat surface, 90 is when two faces
    // are perpendicular
    featureAngle 30;

    // Maximum number of snapping relaxation iterations. Should stop
    // before upon reaching a correct mesh.
    nRelaxIter 3;

    // Number of smoothing iterations of surface normals
    nSmoothSurfaceNormals 1;

    // Number of smoothing iterations of interior mesh movement direction
    nSmoothNormals 3;

    // Smooth layer thickness over surface patches
    nSmoothThickness 10;

    // Stop layer growth on highly warped cells
    maxFaceThicknessRatio 0.5;

    // Reduce layer growth where ratio thickness to medial
    // distance is large
    maxThicknessToMedialRatio 0.3;

    // Angle used to pick up medial axis points
    // Note: changed(corrected) w.r.t 17x! 90 degrees corresponds to 130 in 17x.
    minMedianAxisAngle 90;

    // Create buffer region for new layer terminations
    nBufferCellsNoExtrude 0;

    // Overall max number of layer addition iterations. The mesher will exit
    // if it reaches this number of iterations; possibly with an illegal
    // mesh.
    nLayerIter 50;

    // Max number of iterations after which relaxed meshQuality controls
    // get used. Up to nRelaxIter it uses the settings in meshQualityControls,
    // after nRelaxIter it uses the values in meshQualityControls::relaxed.
    nRelaxedIter 20;
}



// Generic mesh quality settings. At any undoable phase these determine
// where to undo.
meshQualityControls
{
    //- Maximum non-orthogonality allowed. Set to 180 to disable.
    maxNonOrtho 65;

    //- Max skewness allowed. Set to <0 to disable.
    maxBoundarySkewness 20;
    maxInternalSkewness 4;

    //- Max concaveness allowed. Is angle (in degrees) below which concavity
    //  is allowed. 0 is straight face, <0 would be convex face.
    //  Set to 180 to disable.
    maxConcave 80;

    //- Minimum pyramid volume. Is absolute volume of cell pyramid.
    //  Set to very negative number (e.g. -1E30) to disable.
    minVol 1e-20;

    //- Minimum quality of the tet formed by the face-centre
    //  and variable base point minimum decomposition triangles and
    //  the cell centre.  Set to very negative number (e.g. -1E30) to
    //  disable.
    //     <0 = inside out tet,
    //      0 = flat tet
    //      1 = regular tet
    minTetQuality 1e-30;

    //- Minimum face area. Set to <0 to disable.
    minArea -1;

    //- Minimum face twist. Set to <-1 to disable. dot product of face normal
    //  and face centre triangles normal
    minTwist 0.02;

    //- Minimum normalised cell determinant
    //  1 = hex, <= 0 = folded or flattened illegal cell
    minDeterminant 0.001;

    //- minFaceWeight (0 -> 0.5)
    minFaceWeight 0.02;

    //- minVolRatio (0 -> 1)
    minVolRatio 0.01;

    //must be >0 for Fluent compatibility
    minTriangleTwist -1;


    // Advanced

    //- Number of error distribution iterations
    nSmoothScale 4;
    //- Amount to scale back displacement at error points
    errorReduction 0.75;
}


// Advanced

// Merge tolerance. Is fraction of overall bounding box of initial mesh.
// Note: the write tolerance needs to be higher than this.
mergeTolerance 1e-6;


// ************************************************************************* //


================================================
FILE: fishChannel/0/alpha.water.orig
================================================
/*--------------------------------*- C++ -*----------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     | Website:  https://openfoam.org
    \\  /    A nd           | Version:  7
     \\/     M anipulation  |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       volScalarField;
    object      alpha.water;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 0 0 0 0 0 0];

internalField   uniform 0;

boundaryField
{
    inlet
    {
        type            fixedValue;
        value           uniform 1;
    }

    walls
    {
        type            zeroGradient;
    }

    "baffle.*"
    {
        type            zeroGradient;
    }

   outlet
    {
        type            zeroGradient;
        value           uniform 0;
    }

   outlet2
    {
        type            zeroGradient;
        value           uniform 0;
    }

    atmosphere
    {
        type            inletOutlet;
        inletValue      uniform 0;
        value           uniform 0;
    }
}

// ************************************************************************* //


================================================
FILE: fishChannel/0/epsilon
================================================
/*--------------------------------*- C++ -*----------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     | Website:  https://openfoam.org
    \\  /    A nd           | Version:  7
     \\/     M anipulation  |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      binary;
    class       volScalarField;
    location    "0";
    object      epsilon;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 2 -3 0 0 0 0];

internalField   uniform 0.001;

boundaryField
{
    inlet
    {
        type            turbulentMixingLengthDissipationRateInlet;
        mixingLength    0.001;
        value           uniform 0;
    }
    walls
    {
        type            epsilonWallFunction;
        value           uniform 0;
    }
    outlet
    {
        type            zeroGradient;
    }
    atmosphere
    {
        type            zeroGradient;
    }
    outlet2
    {
        type            zeroGradient;
    }
    baffle1
    {
        type            epsilonWallFunction;
        value           uniform 0;
    }
    baffle2
    {
        type            epsilonWallFunction;
        value           uniform 0;
    }
    baffle3
    {
        type            epsilonWallFunction;
        value           uniform 0;
    }
    baffle4
    {
        type            epsilonWallFunction;
        value           uniform 0;
    }
    baffle5
    {
        type            epsilonWallFunction;
        value           uniform 0;
    }
    baffle6
    {
        type            epsilonWallFunction;
        value           uniform 0;
    }
    baffle7
    {
        type            epsilonWallFunction;
        value           uniform 0;
    }
    baffle8
    {
        type            epsilonWallFunction;
        value           uniform 0;
    }
    baffle9
    {
        type            epsilonWallFunction;
        value           uniform 0;
    }
    baffle10
    {
        type            epsilonWallFunction;
        value           uniform 0;
    }
    baffle11
    {
        type            epsilonWallFunction;
        value           uniform 0;
    }
    baffle12
    {
        type            epsilonWallFunction;
        value           uniform 0;
    }
    baffle13
    {
        type            epsilonWallFunction;
        value           uniform 0;
    }
    baffle14
    {
        type            epsilonWallFunction;
        value           uniform 0;
    }
    baffle15
    {
        type            epsilonWallFunction;
        value           uniform 0;
    }
    baffle16
    {
        type            epsilonWallFunction;
        value           uniform 0;
    }
    baffle17
    {
        type            epsilonWallFunction;
        value           uniform 0;
    }
    baffle18
    {
        type            epsilonWallFunction;
        value           uniform 0;
    }
    baffle19
    {
        type            epsilonWallFunction;
        value           uniform 0;
    }
    baffle20
    {
        type            epsilonWallFunction;
        value           uniform 0;
    }
    baffle21
    {
        type            epsilonWallFunction;
        value           uniform 0;
    }
    baffle22
    {
        type            epsilonWallFunction;
        value           uniform 0;
    }
    baffle23
    {
        type            epsilonWallFunction;
        value           uniform 0;
    }
    baffle24
    {
        type            epsilonWallFunction;
        value           uniform 0;
    }
    baffle25
    {
        type            epsilonWallFunction;
        value           uniform 0;
    }
}


// ************************************************************************* //


================================================
FILE: fishChannel/0/k
================================================
/*--------------------------------*- C++ -*----------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     | Website:  https://openfoam.org
    \\  /    A nd           | Version:  7
     \\/     M anipulation  |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      binary;
    class       volScalarField;
    location    "0";
    object      k;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 2 -2 0 0 0 0];

internalField   uniform 0.0001;

boundaryField
{
    inlet
    {
        type            fixedValue;
        value           uniform 0.0001;
    }
    walls
    {
        type            kqRWallFunction;
        value           uniform 0.0001;
    }
    outlet
    {
        type            inletOutlet;
        inletValue      uniform 0.0001;
        value           uniform 0.0001;
    }
    atmosphere
    {
        type            inletOutlet;
        inletValue      uniform 0.0001;
        value           uniform 0.0001;
    }
    outlet2
    {
        type            inletOutlet;
        inletValue      uniform 0.0001;
        value           uniform 0.0001;
    }
    baffle1
    {
        type            inletOutlet;
        inletValue      uniform 0.0001;
        value           uniform 0.0001;
    }
    baffle2
    {
        type            inletOutlet;
        inletValue      uniform 0.0001;
        value           uniform 0.0001;
    }
    baffle3
    {
        type            inletOutlet;
        inletValue      uniform 0.0001;
        value           uniform 0.0001;
    }
    baffle4
    {
        type            inletOutlet;
        inletValue      uniform 0.0001;
        value           uniform 0.0001;
    }
    baffle5
    {
        type            inletOutlet;
        inletValue      uniform 0.0001;
        value           uniform 0.0001;
    }
    baffle6
    {
        type            inletOutlet;
        inletValue      uniform 0.0001;
        value           uniform 0.0001;
    }
    baffle7
    {
        type            inletOutlet;
        inletValue      uniform 0.0001;
        value           uniform 0.0001;
    }
    baffle8
    {
        type            inletOutlet;
        inletValue      uniform 0.0001;
        value           uniform 0.0001;
    }
    baffle9
    {
        type            inletOutlet;
        inletValue      uniform 0.0001;
        value           uniform 0.0001;
    }
    baffle10
    {
        type            inletOutlet;
        inletValue      uniform 0.0001;
        value           uniform 0.0001;
    }
    baffle11
    {
        type            inletOutlet;
        inletValue      uniform 0.0001;
        value           uniform 0.0001;
    }
    baffle12
    {
        type            inletOutlet;
        inletValue      uniform 0.0001;
        value           uniform 0.0001;
    }
    baffle13
    {
        type            inletOutlet;
        inletValue      uniform 0.0001;
        value           uniform 0.0001;
    }
    baffle14
    {
        type            inletOutlet;
        inletValue      uniform 0.0001;
        value           uniform 0.0001;
    }
    baffle15
    {
        type            inletOutlet;
        inletValue      uniform 0.0001;
        value           uniform 0.0001;
    }
    baffle16
    {
        type            inletOutlet;
        inletValue      uniform 0.0001;
        value           uniform 0.0001;
    }
    baffle17
    {
        type            inletOutlet;
        inletValue      uniform 0.0001;
        value           uniform 0.0001;
    }
    baffle18
    {
        type            inletOutlet;
        inletValue      uniform 0.0001;
        value           uniform 0.0001;
    }
    baffle19
    {
        type            inletOutlet;
        inletValue      uniform 0.0001;
        value           uniform 0.0001;
    }
    baffle20
    {
        type            inletOutlet;
        inletValue      uniform 0.0001;
        value           uniform 0.0001;
    }
    baffle21
    {
        type            inletOutlet;
        inletValue      uniform 0.0001;
        value           uniform 0.0001;
    }
    baffle22
    {
        type            inletOutlet;
        inletValue      uniform 0.0001;
        value           uniform 0.0001;
    }
    baffle23
    {
        type            inletOutlet;
        inletValue      uniform 0.0001;
        value           uniform 0.0001;
    }
    baffle24
    {
        type            inletOutlet;
        inletValue      uniform 0.0001;
        value           uniform 0.0001;
    }
    baffle25
    {
        type            inletOutlet;
        inletValue      uniform 0.0001;
        value           uniform 0.0001;
    }
}


// ************************************************************************* //


================================================
FILE: fishChannel/0/nut
================================================
/*--------------------------------*- C++ -*----------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     | Website:  https://openfoam.org
    \\  /    A nd           | Version:  7
     \\/     M anipulation  |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      binary;
    class       volScalarField;
    location    "0";
    object      nut;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 2 -1 0 0 0 0];

internalField   uniform 0;

boundaryField
{
    inlet
    {
        type            calculated;
        value           uniform 0;
    }
    walls
    {
        type            nutLowReWallFunction;
        value           uniform 0;
    }
    outlet
    {
        type            calculated;
        value           uniform 0;
    }
    atmosphere
    {
        type            calculated;
        value           uniform 0;
    }
    outlet2
    {
        type            calculated;
        value           uniform 0;
    }
    baffle1
    {
        type            calculated;
        value           uniform 0;
    }
    baffle2
    {
        type            calculated;
        value           uniform 0;
    }
    baffle3
    {
        type            calculated;
        value           uniform 0;
    }
    baffle4
    {
        type            calculated;
        value           uniform 0;
    }
    baffle5
    {
        type            calculated;
        value           uniform 0;
    }
    baffle6
    {
        type            calculated;
        value           uniform 0;
    }
    baffle7
    {
        type            calculated;
        value           uniform 0;
    }
    baffle8
    {
        type            calculated;
        value           uniform 0;
    }
    baffle9
    {
        type            calculated;
        value           uniform 0;
    }
    baffle10
    {
        type            calculated;
        value           uniform 0;
    }
    baffle11
    {
        type            calculated;
        value           uniform 0;
    }
    baffle12
    {
        type            calculated;
        value           uniform 0;
    }
    baffle13
    {
        type            calculated;
        value           uniform 0;
    }
    baffle14
    {
        type            calculated;
        value           uniform 0;
    }
    baffle15
    {
        type            calculated;
        value           uniform 0;
    }
    baffle16
    {
        type            calculated;
        value           uniform 0;
    }
    baffle17
    {
        type            calculated;
        value           uniform 0;
    }
    baffle18
    {
        type            calculated;
        value           uniform 0;
    }
    baffle19
    {
        type            calculated;
        value           uniform 0;
    }
    baffle20
    {
        type            calculated;
        value           uniform 0;
    }
    baffle21
    {
        type            calculated;
        value           uniform 0;
    }
    baffle22
    {
        type            calculated;
        value           uniform 0;
    }
    baffle23
    {
        type            calculated;
        value           uniform 0;
    }
    baffle24
    {
        type            calculated;
        value           uniform 0;
    }
    baffle25
    {
        type            calculated;
        value           uniform 0;
    }
}


// ************************************************************************* //


================================================
FILE: fishChannel/0/omega
================================================
/*--------------------------------*- C++ -*----------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     | Website:  https://openfoam.org
    \\  /    A nd           | Version:  7
     \\/     M anipulation  |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      binary;
    class       volScalarField;
    location    "0";
    object      omega;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 0 -1 0 0 0 0];

internalField   uniform 0.003;

boundaryField
{
    inlet
    {
        type            fixedValue;
        value           uniform 0.003;
    }
    walls
    {
        type            omegaWallFunction;
        value           uniform 0.003;
    }
    outlet
    {
        type            inletOutlet;
        inletValue      uniform 0.003;
        value           uniform 0.003;
    }
    atmosphere
    {
        type            inletOutlet;
        inletValue      uniform 0.003;
        value           uniform 0.003;
    }
    outlet2
    {
        type            inletOutlet;
        inletValue      uniform 0.003;
        value           uniform 0.003;
    }
    baffle1
    {
        type            inletOutlet;
        inletValue      uniform 0.003;
        value           uniform 0.003;
    }
    baffle2
    {
        type            inletOutlet;
        inletValue      uniform 0.003;
        value           uniform 0.003;
    }
    baffle3
    {
        type            inletOutlet;
        inletValue      uniform 0.003;
        value           uniform 0.003;
    }
    baffle4
    {
        type            inletOutlet;
        inletValue      uniform 0.003;
        value           uniform 0.003;
    }
    baffle5
    {
        type            inletOutlet;
        inletValue      uniform 0.003;
        value           uniform 0.003;
    }
    baffle6
    {
        type            inletOutlet;
        inletValue      uniform 0.003;
        value           uniform 0.003;
    }
    baffle7
    {
        type            inletOutlet;
        inletValue      uniform 0.003;
        value           uniform 0.003;
    }
    baffle8
    {
        type            inletOutlet;
        inletValue      uniform 0.003;
        value           uniform 0.003;
    }
    baffle9
    {
        type            inletOutlet;
        inletValue      uniform 0.003;
        value           uniform 0.003;
    }
    baffle10
    {
        type            inletOutlet;
        inletValue      uniform 0.003;
        value           uniform 0.003;
    }
    baffle11
    {
        type            inletOutlet;
        inletValue      uniform 0.003;
        value           uniform 0.003;
    }
    baffle12
    {
        type            inletOutlet;
        inletValue      uniform 0.003;
        value           uniform 0.003;
    }
    baffle13
    {
        type            inletOutlet;
        inletValue      uniform 0.003;
        value           uniform 0.003;
    }
    baffle14
    {
        type            inletOutlet;
        inletValue      uniform 0.003;
        value           uniform 0.003;
    }
    baffle15
    {
        type            inletOutlet;
        inletValue      uniform 0.003;
        value           uniform 0.003;
    }
    baffle16
    {
        type            inletOutlet;
        inletValue      uniform 0.003;
        value           uniform 0.003;
    }
    baffle17
    {
        type            inletOutlet;
        inletValue      uniform 0.003;
        value           uniform 0.003;
    }
    baffle18
    {
        type            inletOutlet;
        inletValue      uniform 0.003;
        value           uniform 0.003;
    }
    baffle19
    {
        type            inletOutlet;
        inletValue      uniform 0.003;
        value           uniform 0.003;
    }
    baffle20
    {
        type            inletOutlet;
        inletValue      uniform 0.003;
        value           uniform 0.003;
    }
    baffle21
    {
        type            inletOutlet;
        inletValue      uniform 0.003;
        value           uniform 0.003;
    }
    baffle22
    {
        type            inletOutlet;
        inletValue      uniform 0.003;
        value           uniform 0.003;
    }
    baffle23
    {
        type            inletOutlet;
        inletValue      uniform 0.003;
        value           uniform 0.003;
    }
    baffle24
    {
        type            inletOutlet;
        inletValue      uniform 0.003;
        value           uniform 0.003;
    }
    baffle25
    {
        type            inletOutlet;
        inletValue      uniform 0.003;
        value           uniform 0.003;
    }
}


// ************************************************************************* //


================================================
FILE: fishChannel/0/p_rgh
================================================
/*--------------------------------*- C++ -*----------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     | Website:  https://openfoam.org
    \\  /    A nd           | Version:  7
     \\/     M anipulation  |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      binary;
    class       volScalarField;
    location    "0";
    object      p_rgh;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [1 -1 -2 0 0 0 0];

internalField   uniform 0;

boundaryField
{
    inlet
    {
        type            fixedFluxPressure;
        gradient        uniform 0;
        value           uniform 0;
    }
    walls
    {
        type            fixedFluxPressure;
        gradient        uniform 0;
        value           uniform 0;
    }
    outlet
    {
        type            fixedFluxPressure;
        gradient        uniform 0;
        value           uniform 0;
    }
    atmosphere
    {
        type            totalPressure;
        rho             rho;
        psi             none;
        gamma           1;
        p0              uniform 0;
        value           uniform 0;
    }
    outlet2
    {
        type            fixedFluxPressure;
        gradient        uniform 0;
        value           uniform 0;
    }
    baffle1
    {
        type            fixedFluxPressure;
        gradient        uniform 0;
        value           uniform 0;
    }
    baffle2
    {
        type            fixedFluxPressure;
        gradient        uniform 0;
        value           uniform 0;
    }
    baffle3
    {
        type            fixedFluxPressure;
        gradient        uniform 0;
        value           uniform 0;
    }
    baffle4
    {
        type            fixedFluxPressure;
        gradient        uniform 0;
        value           uniform 0;
    }
    baffle5
    {
        type            fixedFluxPressure;
        gradient        uniform 0;
        value           uniform 0;
    }
    baffle6
    {
        type            fixedFluxPressure;
        gradient        uniform 0;
        value           uniform 0;
    }
    baffle7
    {
        type            fixedFluxPressure;
        gradient        uniform 0;
        value           uniform 0;
    }
    baffle8
    {
        type            fixedFluxPressure;
        gradient        uniform 0;
        value           uniform 0;
    }
    baffle9
    {
        type            fixedFluxPressure;
        gradient        uniform 0;
        value           uniform 0;
    }
    baffle10
    {
        type            fixedFluxPressure;
        gradient        uniform 0;
        value           uniform 0;
    }
    baffle11
    {
        type            fixedFluxPressure;
        gradient        uniform 0;
        value           uniform 0;
    }
    baffle12
    {
        type            fixedFluxPressure;
        gradient        uniform 0;
        value           uniform 0;
    }
    baffle13
    {
        type            fixedFluxPressure;
        gradient        uniform 0;
        value           uniform 0;
    }
    baffle14
    {
        type            fixedFluxPressure;
        gradient        uniform 0;
        value           uniform 0;
    }
    baffle15
    {
        type            fixedFluxPressure;
        gradient        uniform 0;
        value           uniform 0;
    }
    baffle16
    {
        type            fixedFluxPressure;
        gradient        uniform 0;
        value           uniform 0;
    }
    baffle17
    {
        type            fixedFluxPressure;
        gradient        uniform 0;
        value           uniform 0;
    }
    baffle18
    {
        type            fixedFluxPressure;
        gradient        uniform 0;
        value           uniform 0;
    }
    baffle19
    {
        type            fixedFluxPressure;
        gradient        uniform 0;
        value           uniform 0;
    }
    baffle20
    {
        type            fixedFluxPressure;
        gradient        uniform 0;
        value           uniform 0;
    }
    baffle21
    {
        type            fixedFluxPressure;
        gradient        uniform 0;
        value           uniform 0;
    }
    baffle22
    {
        type            fixedFluxPressure;
        gradient        uniform 0;
        value           uniform 0;
    }
    baffle23
    {
        type            fixedFluxPressure;
        gradient        uniform 0;
        value           uniform 0;
    }
    baffle24
    {
        type            fixedFluxPressure;
        gradient        uniform 0;
        value           uniform 0;
    }
    baffle25
    {
        type            fixedFluxPressure;
        gradient        uniform 0;
        value           uniform 0;
    }
}


// ************************************************************************* //


================================================
FILE: fishChannel/Allclean
================================================
#!/bin/sh
cd ${0%/*} || exit 1    # Run from this directory

# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions

# rm 0/alpha.water.gz 0/alpha.water 2>/dev/null
# rm -rf *Flux

cleanCase


================================================
FILE: fishChannel/Allmesh
================================================
#!/bin/sh
cd ${0%/*} || exit 1    # run from this directory

# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions

runApplication blockMesh

# Refine Mesh Near Outlet Section
i=1
while [ "$i" -lt 3 ] ; do # refine each baffle
    echo "Refine outlet section mesh." ${i}
    cp system/topoSetDict.section${i} system/topoSetDict
    cp system/refineMeshDict.section${i} system/refineMeshDict
    runApplication topoSet
    runApplication refineMesh -overwrite
    mv log.topoSet log.topoSet.section${i}
    mv log.refineMesh log.refineMesh.section${i}
    i=$((i + 1))
done

# Create Outlet2
cp system/topoSetDict.outlet2 system/topoSetDict
runApplication topoSet
runApplication createPatch -overwrite
mv log.topoSet log.topoSet.outlet2

# Clean up
rm system/topoSetDict

# Create Baffles
runApplication createBaffles -overwrite

# Refine Boundary Layer Mesh
runApplication refineWallLayer -overwrite "(walls)" 0.3
mv log.refineWallLayer log.refineWallLayer.walls
i=1
while [ "$i" -lt 26 ] ; do # refine each baffle
    echo "Refine baffle mesh." ${i}
    refineWallLayer -overwrite "(baffle${i})" 0.3 >> log.refineWallLayer.baffle${i}
    refineWallLayer -overwrite "(baffle${i})" 0.3 >> log.refineWallLayer.baffle${i}
    i=$((i + 1))
done

# Renumber Mesh
runApplication renumberMesh -overwrite
#------------------------------------------------------------------------------


================================================
FILE: fishChannel/Allrun
================================================
#!/bin/sh
cd ${0%/*} || exit 1    # Run from this directory

# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions

application=$(getApplication)

./Allmesh
runApplication setFields
runApplication $application

#------------------------------------------------------------------------------


================================================
FILE: fishChannel/constant/g
================================================
/*--------------------------------*- C++ -*----------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     | Website:  https://openfoam.org
    \\  /    A nd           | Version:  7
     \\/     M anipulation  |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       uniformDimensionedVectorField;
    location    "constant";
    object      g;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 1 -2 0 0 0 0];
value           (0 0 -9.81);

// ************************************************************************* //


================================================
FILE: fishChannel/constant/transportProperties
================================================
/*--------------------------------*- C++ -*----------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     | Website:  https://openfoam.org
    \\  /    A nd           | Version:  7
     \\/     M anipulation  |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "constant";
    object      transportProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

phases (water air);

water
{
    transportModel  Newtonian;
    nu              1e-06;
    rho             1000;
}

air
{
    transportModel  Newtonian;
    nu              1.48e-05;
    rho             1;
}

sigma           0.07;


// ************************************************************************* //


================================================
FILE: fishChannel/constant/turbulenceProperties
================================================
/*--------------------------------*- C++ -*----------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     | Website:  https://openfoam.org
    \\  /    A nd           | Version:  7
     \\/     M anipulation  |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "constant";
    object      turbulenceProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

simulationType  RAS;

RAS
{
    RASModel        kOmegaSST;
//    RASModel        RNGkEpsilon;

    turbulence      on;

    printCoeffs     on;
}


// ************************************************************************* //


================================================
FILE: fishChannel/showCase.pvsm
================================================
<ParaView>
  <ServerManagerState version="5.9.1">
    <Proxy group="animation" type="AnimationScene" id="263" servers="16">
      <Property name="AnimationTime" id="263.AnimationTime" number_of_elements="1">
        <Element index="0" value="150"/>
      </Property>
      <Property name="Cues" id="263.Cues" number_of_elements="1">
        <Proxy value="265"/>
        <Domain name="groups" id="263.Cues.groups"/>
      </Property>
      <Property name="Duration" id="263.Duration" number_of_elements="1">
        <Element index="0" value="10"/>
      </Property>
      <Property name="EndTime" i
Download .txt
gitextract_re6asacm/

├── .gitignore
├── LICENSE
├── README.md
├── _config.yml
├── abruptContraction/
│   ├── interPhaseChangeFoam/
│   │   ├── 0/
│   │   │   ├── U
│   │   │   ├── alpha.water
│   │   │   ├── k
│   │   │   ├── nuTilda
│   │   │   ├── nut
│   │   │   ├── p_rgh
│   │   │   ├── phi
│   │   │   └── s
│   │   ├── Allclean
│   │   ├── Allmesh
│   │   ├── Allrun
│   │   ├── Allrun.parallel
│   │   ├── constant/
│   │   │   ├── g
│   │   │   ├── transportProperties
│   │   │   └── turbulenceProperties
│   │   └── system/
│   │       ├── blockMeshDict
│   │       ├── controlDict
│   │       ├── decomposeParDict
│   │       ├── fvSchemes
│   │       ├── fvSolution
│   │       ├── probes
│   │       ├── refineMeshDict.1
│   │       ├── refineMeshDict.2
│   │       ├── surfaces
│   │       ├── topoSetDict.1
│   │       └── topoSetDict.2
│   ├── pimpleFoam/
│   │   ├── 0/
│   │   │   ├── U
│   │   │   ├── epsilon
│   │   │   ├── k
│   │   │   ├── nuTilda
│   │   │   ├── nut
│   │   │   └── p
│   │   ├── Allclean
│   │   ├── Allrun
│   │   ├── Allrun.parallel
│   │   ├── constant/
│   │   │   ├── transportProperties
│   │   │   └── turbulenceProperties
│   │   └── system/
│   │       ├── blockMeshDict
│   │       ├── controlDict
│   │       ├── decomposeParDict
│   │       ├── fvSchemes
│   │       ├── fvSolution
│   │       ├── probes
│   │       └── surfaces
│   ├── pisoFoam/
│   │   ├── 0/
│   │   │   ├── U
│   │   │   ├── k
│   │   │   ├── nuTilda
│   │   │   ├── nut
│   │   │   ├── p
│   │   │   └── s
│   │   ├── Allclean
│   │   ├── Allrun
│   │   ├── Allrun.parallel
│   │   ├── constant/
│   │   │   ├── transportProperties
│   │   │   └── turbulenceProperties
│   │   └── system/
│   │       ├── blockMeshDict
│   │       ├── controlDict
│   │       ├── decomposeParDict
│   │       ├── fvSchemes
│   │       ├── fvSolution
│   │       ├── probes
│   │       └── surfaces
│   └── simpleFoam/
│       ├── 0/
│       │   ├── U
│       │   ├── epsilon
│       │   ├── k
│       │   ├── nut
│       │   └── p
│       ├── Allclean
│       ├── Allrun
│       ├── constant/
│       │   ├── transportProperties
│       │   └── turbulenceProperties
│       └── system/
│           ├── blockMeshDict
│           ├── controlDict
│           ├── fvSchemes
│           └── fvSolution
├── cavitatingBullet/
│   ├── 0/
│   │   ├── U
│   │   ├── alpha.water
│   │   └── p_rgh
│   ├── Allclean
│   ├── Allrun
│   ├── constant/
│   │   ├── g
│   │   ├── transportProperties
│   │   ├── triSurface/
│   │   │   └── README
│   │   └── turbulenceProperties
│   └── system/
│       ├── blockMeshDict
│       ├── controlDict
│       ├── decomposeParDict
│       ├── fvSchemes
│       ├── fvSolution
│       └── snappyHexMeshDict
├── fishChannel/
│   ├── 0/
│   │   ├── U
│   │   ├── alpha.water.orig
│   │   ├── epsilon
│   │   ├── k
│   │   ├── nut
│   │   ├── omega
│   │   └── p_rgh
│   ├── Allclean
│   ├── Allmesh
│   ├── Allrun
│   ├── constant/
│   │   ├── g
│   │   ├── transportProperties
│   │   └── turbulenceProperties
│   ├── showCase.pvsm
│   └── system/
│       ├── blockMeshDict
│       ├── controlDict
│       ├── createBafflesDict
│       ├── createPatchDict
│       ├── decomposeParDict
│       ├── fvSchemes
│       ├── fvSolution
│       ├── refineMeshDict
│       ├── refineMeshDict.section1
│       ├── refineMeshDict.section2
│       ├── setFieldsDict
│       ├── topoSetDict.outlet2
│       ├── topoSetDict.section1
│       └── topoSetDict.section2
├── flatPlate/
│   ├── 0/
│   │   ├── U
│   │   ├── U~
│   │   ├── epsilon
│   │   ├── k
│   │   ├── nut
│   │   └── p
│   ├── Allclean
│   ├── Allrun
│   ├── constant/
│   │   ├── transportProperties
│   │   └── turbulenceProperties
│   └── system/
│       ├── blockMeshDict
│       ├── controlDict
│       ├── fvSchemes
│       └── fvSolution
├── linuxCheatSheet/
│   ├── Common linux command in OpenFoam.md
│   └── linuxCheatSheet.docx
├── magnusEffect/
│   ├── 0/
│   │   ├── .svn/
│   │   │   ├── all-wcprops
│   │   │   ├── entries
│   │   │   └── text-base/
│   │   │       ├── U.svn-base
│   │   │       └── p.svn-base
│   │   ├── U
│   │   ├── epsilon
│   │   ├── k
│   │   ├── nuTilda
│   │   ├── nut
│   │   └── p
│   ├── Allclean
│   ├── Allrun
│   ├── README.md
│   ├── constant/
│   │   ├── transportProperties
│   │   └── turbulenceProperties
│   ├── magnus.geo
│   └── system/
│       ├── controlDict
│       ├── fvSchemes
│       └── fvSolution
├── mpiTest/
│   ├── Alltest
│   └── damBreak4phaseFine/
│       ├── 0/
│       │   ├── U
│       │   ├── U.air
│       │   ├── U.mercury
│       │   ├── U.oil
│       │   ├── U.water
│       │   ├── alpha.air.orig
│       │   ├── alpha.mercury.orig
│       │   ├── alpha.oil.orig
│       │   ├── alpha.water.orig
│       │   └── p_rgh
│       ├── Allclean
│       ├── Allsbatch
│       ├── constant/
│       │   ├── g
│       │   ├── motionProperties
│       │   ├── transportProperties
│       │   └── turbulenceProperties
│       └── system/
│           ├── blockMeshDict
│           ├── controlDict
│           ├── decomposeParDict
│           ├── fvSchemes
│           ├── fvSolution
│           └── setFieldsDict
├── programmingTutorials/
│   ├── .gitignore
│   ├── LICENSE
│   ├── OFtutorial00_helloWorld/
│   │   ├── Allwclean
│   │   ├── Allwmake
│   │   ├── Make/
│   │   │   ├── files
│   │   │   └── options
│   │   ├── OFtutorial0.C
│   │   └── testCase/
│   │       ├── 0/
│   │       │   ├── U
│   │       │   └── p
│   │       ├── Allclean
│   │       ├── Allrun
│   │       ├── constant/
│   │       │   └── transportProperties
│   │       └── system/
│   │           ├── blockMeshDict
│   │           ├── controlDict
│   │           ├── fvSchemes
│   │           └── fvSolution
│   ├── OFtutorial01_inputOutput/
│   │   ├── Allwclean
│   │   ├── Allwmake
│   │   ├── Make/
│   │   │   ├── files
│   │   │   └── options
│   │   ├── OFtutorial1.C
│   │   └── testCase/
│   │       ├── 0/
│   │       │   ├── U
│   │       │   └── p
│   │       ├── Allclean
│   │       ├── Allrun
│   │       ├── constant/
│   │       │   ├── customProperties
│   │       │   └── transportProperties
│   │       └── system/
│   │           ├── blockMeshDict
│   │           ├── controlDict
│   │           ├── fvSchemes
│   │           └── fvSolution
│   ├── OFtutorial02_commandLineArgumentsAndOptions/
│   │   ├── Allwclean
│   │   ├── Allwmake
│   │   ├── Make/
│   │   │   ├── files
│   │   │   └── options
│   │   ├── OFtutorial2.C
│   │   └── testCase/
│   │       ├── 0/
│   │       │   ├── U
│   │       │   └── p
│   │       ├── Allclean
│   │       ├── Allrun
│   │       ├── constant/
│   │       │   └── transportProperties
│   │       └── system/
│   │           ├── blockMeshDict
│   │           ├── controlDict
│   │           ├── fvSchemes
│   │           └── fvSolution
│   ├── OFtutorial03_understandingTheMesh/
│   │   ├── Allwclean
│   │   ├── Allwmake
│   │   ├── Make/
│   │   │   ├── files
│   │   │   └── options
│   │   ├── OFtutorial3.C
│   │   └── testCase/
│   │       ├── 0/
│   │       │   ├── U
│   │       │   └── p
│   │       ├── Allclean
│   │       ├── Allrun
│   │       ├── constant/
│   │       │   └── transportProperties
│   │       └── system/
│   │           ├── blockMeshDict
│   │           ├── controlDict
│   │           ├── fvSchemes
│   │           └── fvSolution
│   ├── OFtutorial04_basicFieldOperations/
│   │   ├── Allwclean
│   │   ├── Allwmake
│   │   ├── Make/
│   │   │   ├── files
│   │   │   └── options
│   │   ├── OFtutorial4.C
│   │   └── testCase/
│   │       ├── 0/
│   │       │   ├── U
│   │       │   └── p
│   │       ├── Allclean
│   │       ├── Allrun
│   │       ├── constant/
│   │       │   └── transportProperties
│   │       └── system/
│   │           ├── blockMeshDict
│   │           ├── controlDict
│   │           ├── fvSchemes
│   │           └── fvSolution
│   ├── OFtutorial05_basicParallelComputing/
│   │   ├── Allwclean
│   │   ├── Allwmake
│   │   ├── Make/
│   │   │   ├── files
│   │   │   └── options
│   │   ├── OFtutorial5.C
│   │   ├── createFields.H
│   │   └── testCase/
│   │       ├── 0/
│   │       │   ├── U
│   │       │   └── p
│   │       ├── Allclean
│   │       ├── Allrun
│   │       ├── constant/
│   │       │   └── transportProperties
│   │       └── system/
│   │           ├── blockMeshDict
│   │           ├── controlDict
│   │           ├── decomposeParDict
│   │           ├── fvSchemes
│   │           └── fvSolution
│   ├── OFtutorial06_customClasses/
│   │   ├── Allwclean
│   │   ├── Allwmake
│   │   ├── Make/
│   │   │   ├── files
│   │   │   └── options
│   │   ├── OFtutorial6.C
│   │   ├── customClass.C
│   │   ├── customClass.H
│   │   ├── derivedClass.C
│   │   ├── derivedClass.H
│   │   └── testCase/
│   │       ├── 0/
│   │       │   ├── U
│   │       │   └── p
│   │       ├── Allclean
│   │       ├── Allrun
│   │       ├── constant/
│   │       │   └── transportProperties
│   │       └── system/
│   │           ├── blockMeshDict
│   │           ├── controlDict
│   │           ├── decomposeParDict
│   │           ├── fvSchemes
│   │           └── fvSolution
│   ├── OFtutorial07_customLibraries/
│   │   ├── Allwclean
│   │   ├── Allwmake
│   │   ├── Make/
│   │   │   ├── files
│   │   │   └── options
│   │   ├── OFtutorial7.C
│   │   ├── createFields.H
│   │   ├── customLibrary/
│   │   │   ├── Make/
│   │   │   │   ├── files
│   │   │   │   └── options
│   │   │   ├── customLibrary.C
│   │   │   └── customLibrary.H
│   │   └── testCase/
│   │       ├── 0/
│   │       │   ├── U
│   │       │   └── p
│   │       ├── Allclean
│   │       ├── Allrun
│   │       ├── constant/
│   │       │   └── transportProperties
│   │       └── system/
│   │           ├── blockMeshDict
│   │           ├── controlDict
│   │           ├── decomposeParDict
│   │           ├── fvSchemes
│   │           └── fvSolution
│   ├── OFtutorial08_customBC/
│   │   ├── Allwclean
│   │   ├── Allwmake
│   │   ├── Make/
│   │   │   ├── files
│   │   │   └── options
│   │   ├── prescribedPipeInletFvPatchVectorField.C
│   │   ├── prescribedPipeInletFvPatchVectorField.H
│   │   └── testCase/
│   │       ├── 0.org/
│   │       │   ├── U
│   │       │   ├── k
│   │       │   ├── nut
│   │       │   ├── omega
│   │       │   └── p
│   │       ├── Allclean
│   │       ├── Allrun
│   │       ├── Allrun.mesh
│   │       ├── constant/
│   │       │   ├── transportProperties
│   │       │   └── turbulenceProperties
│   │       └── system/
│   │           ├── blockMeshDict
│   │           ├── controlDict
│   │           ├── decomposeParDict
│   │           ├── fvSchemes
│   │           ├── fvSolution
│   │           ├── mirrorMeshDict
│   │           ├── runConditions
│   │           └── sampleDict
│   ├── OFtutorial09_runtimePostprocessingUtility/
│   │   ├── Allwclean
│   │   ├── Allwmake
│   │   ├── Make/
│   │   │   ├── files
│   │   │   └── options
│   │   ├── pipeCalc.C
│   │   ├── pipeCalc.H
│   │   └── testCase/
│   │       ├── 0.org/
│   │       │   ├── U
│   │       │   ├── k
│   │       │   ├── nut
│   │       │   ├── omega
│   │       │   └── p
│   │       ├── Allclean
│   │       ├── Allrun
│   │       ├── Allrun.mesh
│   │       ├── constant/
│   │       │   ├── transportProperties
│   │       │   └── turbulenceProperties
│   │       └── system/
│   │           ├── blockMeshDict
│   │           ├── controlDict
│   │           ├── decomposeParDict
│   │           ├── fvSchemes
│   │           ├── fvSolution
│   │           ├── mirrorMeshDict
│   │           ├── runConditions
│   │           ├── sampleDict
│   │           └── topoSetDict
│   ├── OFtutorial10_transportEquation/
│   │   ├── Allwclean
│   │   ├── Allwmake
│   │   ├── Make/
│   │   │   ├── files
│   │   │   └── options
│   │   ├── OFtutorial10.C
│   │   └── testCase/
│   │       ├── 0/
│   │       │   ├── U
│   │       │   └── beta
│   │       ├── Allclean
│   │       ├── Allrun
│   │       ├── constant/
│   │       │   └── transportProperties
│   │       ├── system/
│   │       │   ├── blockMeshDict
│   │       │   ├── controlDict
│   │       │   ├── fvSchemes
│   │       │   └── fvSolution
│   │       └── viewData.pvsm
│   ├── OFtutorial11_modifyingTheMesh/
│   │   ├── Allwclean
│   │   ├── Allwmake
│   │   ├── Make/
│   │   │   ├── files
│   │   │   └── options
│   │   ├── OFtutorial11.C
│   │   ├── meshPoints.geo
│   │   └── testCase/
│   │       ├── Allclean
│   │       ├── Allrun
│   │       ├── constant/
│   │       │   └── transportProperties
│   │       ├── system/
│   │       │   ├── blockMeshDict
│   │       │   ├── controlDict
│   │       │   ├── fvSchemes
│   │       │   └── fvSolution
│   │       └── viewGrid.pvsm
│   ├── OFtutorial12_momentumSource/
│   │   ├── Allwclean
│   │   ├── Allwmake
│   │   ├── Make/
│   │   │   ├── files
│   │   │   └── options
│   │   ├── customActuationDiskSource.C
│   │   ├── customActuationDiskSource.H
│   │   ├── customActuationDiskSourceTemplates.C
│   │   └── testCase/
│   │       ├── 0/
│   │       │   ├── U
│   │       │   ├── k
│   │       │   ├── nut
│   │       │   ├── omega
│   │       │   └── p
│   │       ├── Allclean
│   │       ├── Allrun
│   │       ├── constant/
│   │       │   ├── fvOptions
│   │       │   ├── transportProperties
│   │       │   └── turbulenceProperties
│   │       ├── system/
│   │       │   ├── blockMeshDict
│   │       │   ├── controlDict
│   │       │   ├── fvSchemes
│   │       │   └── fvSolution
│   │       └── viewData.pvsm
│   ├── OldReleases/
│   │   └── OF301/
│   │       ├── OFtutorial0_helloWorld/
│   │       │   ├── Make/
│   │       │   │   ├── files
│   │       │   │   └── options
│   │       │   ├── OFtutorial0.C
│   │       │   └── testCase/
│   │       │       ├── 0/
│   │       │       │   ├── U
│   │       │       │   └── p
│   │       │       ├── Allclean
│   │       │       ├── Allrun
│   │       │       ├── constant/
│   │       │       │   └── transportProperties
│   │       │       └── system/
│   │       │           ├── blockMeshDict
│   │       │           ├── controlDict
│   │       │           ├── fvSchemes
│   │       │           └── fvSolution
│   │       ├── OFtutorial1_inputOutput/
│   │       │   ├── Make/
│   │       │   │   ├── files
│   │       │   │   └── options
│   │       │   ├── OFtutorial1.C
│   │       │   └── testCase/
│   │       │       ├── 0/
│   │       │       │   ├── U
│   │       │       │   └── p
│   │       │       ├── Allclean
│   │       │       ├── Allrun
│   │       │       ├── constant/
│   │       │       │   ├── customProperties
│   │       │       │   └── transportProperties
│   │       │       └── system/
│   │       │           ├── blockMeshDict
│   │       │           ├── controlDict
│   │       │           ├── fvSchemes
│   │       │           └── fvSolution
│   │       ├── OFtutorial2_understandingTheMesh/
│   │       │   ├── Make/
│   │       │   │   ├── files
│   │       │   │   └── options
│   │       │   ├── OFtutorial2.C
│   │       │   └── testCase/
│   │       │       ├── 0/
│   │       │       │   ├── U
│   │       │       │   └── p
│   │       │       ├── Allclean
│   │       │       ├── Allrun
│   │       │       ├── constant/
│   │       │       │   └── transportProperties
│   │       │       └── system/
│   │       │           ├── blockMeshDict
│   │       │           ├── controlDict
│   │       │           ├── fvSchemes
│   │       │           └── fvSolution
│   │       ├── OFtutorial3_basicFieldOperations/
│   │       │   ├── Make/
│   │       │   │   ├── files
│   │       │   │   └── options
│   │       │   ├── OFtutorial3.C
│   │       │   └── testCase/
│   │       │       ├── 0/
│   │       │       │   ├── U
│   │       │       │   └── p
│   │       │       ├── Allclean
│   │       │       ├── Allrun
│   │       │       ├── constant/
│   │       │       │   └── transportProperties
│   │       │       └── system/
│   │       │           ├── blockMeshDict
│   │       │           ├── controlDict
│   │       │           ├── fvSchemes
│   │       │           └── fvSolution
│   │       ├── OFtutorial4_basicParallelComputing/
│   │       │   ├── Make/
│   │       │   │   ├── files
│   │       │   │   └── options
│   │       │   ├── OFtutorial4.C
│   │       │   ├── createFields.H
│   │       │   └── testCase/
│   │       │       ├── 0/
│   │       │       │   ├── U
│   │       │       │   └── p
│   │       │       ├── Allclean
│   │       │       ├── Allrun
│   │       │       ├── constant/
│   │       │       │   └── transportProperties
│   │       │       └── system/
│   │       │           ├── blockMeshDict
│   │       │           ├── controlDict
│   │       │           ├── decomposeParDict
│   │       │           ├── fvSchemes
│   │       │           └── fvSolution
│   │       ├── OFtutorial5_customClasses/
│   │       │   ├── Make/
│   │       │   │   ├── files
│   │       │   │   └── options
│   │       │   ├── OFtutorial5.C
│   │       │   ├── customClass.C
│   │       │   ├── customClass.H
│   │       │   ├── derivedClass.C
│   │       │   ├── derivedClass.H
│   │       │   └── testCase/
│   │       │       ├── 0/
│   │       │       │   ├── U
│   │       │       │   └── p
│   │       │       ├── Allclean
│   │       │       ├── Allrun
│   │       │       ├── constant/
│   │       │       │   └── transportProperties
│   │       │       └── system/
│   │       │           ├── blockMeshDict
│   │       │           ├── controlDict
│   │       │           ├── decomposeParDict
│   │       │           ├── fvSchemes
│   │       │           └── fvSolution
│   │       ├── OFtutorial6_customLibraries/
│   │       │   ├── Allwclean
│   │       │   ├── Allwmake
│   │       │   ├── Make/
│   │       │   │   ├── files
│   │       │   │   └── options
│   │       │   ├── OFtutorial6.C
│   │       │   ├── createFields.H
│   │       │   ├── customLibrary/
│   │       │   │   ├── Make/
│   │       │   │   │   ├── files
│   │       │   │   │   └── options
│   │       │   │   ├── customLibrary.C
│   │       │   │   └── customLibrary.H
│   │       │   └── testCase/
│   │       │       ├── 0/
│   │       │       │   ├── U
│   │       │       │   └── p
│   │       │       ├── Allclean
│   │       │       ├── Allrun
│   │       │       ├── constant/
│   │       │       │   └── transportProperties
│   │       │       └── system/
│   │       │           ├── blockMeshDict
│   │       │           ├── controlDict
│   │       │           ├── decomposeParDict
│   │       │           ├── fvSchemes
│   │       │           └── fvSolution
│   │       ├── OFtutorial7_customBC/
│   │       │   ├── Allwclean
│   │       │   ├── Allwmake
│   │       │   ├── Make/
│   │       │   │   ├── files
│   │       │   │   └── options
│   │       │   ├── prescribedPipeInletFvPatchVectorField.C
│   │       │   ├── prescribedPipeInletFvPatchVectorField.H
│   │       │   └── testCase/
│   │       │       ├── 0.org/
│   │       │       │   ├── U
│   │       │       │   ├── k
│   │       │       │   ├── nut
│   │       │       │   ├── omega
│   │       │       │   └── p
│   │       │       ├── Allclean
│   │       │       ├── Allrun
│   │       │       ├── Allrun.mesh
│   │       │       ├── constant/
│   │       │       │   ├── transportProperties
│   │       │       │   └── turbulenceProperties
│   │       │       └── system/
│   │       │           ├── blockMeshDict
│   │       │           ├── controlDict
│   │       │           ├── decomposeParDict
│   │       │           ├── fvSchemes
│   │       │           ├── fvSolution
│   │       │           ├── mirrorMeshDict
│   │       │           ├── runConditions
│   │       │           └── sampleDict
│   │       ├── OFtutorial8_runtimePostprocessingUtility/
│   │       │   ├── IOpipeCalc.H
│   │       │   ├── Make/
│   │       │   │   ├── files
│   │       │   │   └── options
│   │       │   ├── pipeCalc.C
│   │       │   ├── pipeCalc.H
│   │       │   ├── pipeCalcFunctionObject.C
│   │       │   ├── pipeCalcFunctionObject.H
│   │       │   └── testCase/
│   │       │       ├── 0.org/
│   │       │       │   ├── U
│   │       │       │   ├── k
│   │       │       │   ├── nut
│   │       │       │   ├── omega
│   │       │       │   └── p
│   │       │       ├── Allclean
│   │       │       ├── Allrun
│   │       │       ├── Allrun.mesh
│   │       │       ├── constant/
│   │       │       │   ├── transportProperties
│   │       │       │   └── turbulenceProperties
│   │       │       └── system/
│   │       │           ├── blockMeshDict
│   │       │           ├── controlDict
│   │       │           ├── decomposeParDict
│   │       │           ├── fvSchemes
│   │       │           ├── fvSolution
│   │       │           ├── mirrorMeshDict
│   │       │           ├── runConditions
│   │       │           ├── sampleDict
│   │       │           └── topoSetDict
│   │       ├── OFtutorial9_transportEquation/
│   │       │   ├── Make/
│   │       │   │   ├── files
│   │       │   │   └── options
│   │       │   ├── OFtutorial9.C
│   │       │   └── testCase/
│   │       │       ├── 0/
│   │       │       │   ├── U
│   │       │       │   └── beta
│   │       │       ├── Allclean
│   │       │       ├── Allrun
│   │       │       ├── constant/
│   │       │       │   └── transportProperties
│   │       │       └── system/
│   │       │           ├── blockMeshDict
│   │       │           ├── controlDict
│   │       │           ├── fvSchemes
│   │       │           └── fvSolution
│   │       └── README.md
│   ├── README.md
│   └── testAll
└── waterChannel/
    ├── 0/
    │   ├── U
    │   ├── alpha.water.orig
    │   ├── k
    │   ├── nut
    │   ├── omega
    │   └── p_rgh
    ├── Allclean
    ├── Allmesh
    ├── Allrun
    ├── constant/
    │   ├── g
    │   ├── transportProperties
    │   └── turbulenceProperties
    └── system/
        ├── blockMeshDict
        ├── controlDict
        ├── extrudeMeshDict
        ├── extrudeMeshDict.1
        ├── extrudeMeshDict.2
        ├── fvSchemes
        ├── fvSolution
        ├── setFieldsDict
        └── surfaces
Download .txt
SYMBOL INDEX (64 symbols across 39 files)

FILE: programmingTutorials/OFtutorial00_helloWorld/OFtutorial0.C
  function main (line 28) | int main(int argc, char *argv[])

FILE: programmingTutorials/OFtutorial01_inputOutput/OFtutorial1.C
  function main (line 28) | int main(int argc, char *argv[])

FILE: programmingTutorials/OFtutorial02_commandLineArgumentsAndOptions/OFtutorial2.C
  function main (line 28) | int main(int argc, char *argv[])

FILE: programmingTutorials/OFtutorial03_understandingTheMesh/OFtutorial3.C
  function main (line 28) | int main(int argc, char *argv[])

FILE: programmingTutorials/OFtutorial04_basicFieldOperations/OFtutorial4.C
  function main (line 34) | int main(int argc, char *argv[])
  function scalar (line 164) | scalar calculatePressure(scalar t, vector x, vector x0, scalar scale)

FILE: programmingTutorials/OFtutorial05_basicParallelComputing/OFtutorial5.C
  function main (line 28) | int main(int argc, char *argv[])

FILE: programmingTutorials/OFtutorial06_customClasses/OFtutorial6.C
  function main (line 35) | int main(int argc, char *argv[])

FILE: programmingTutorials/OFtutorial06_customClasses/customClass.C
  function meshOpFunction (line 17) | void customClass::meshOpFunction(fvMesh& mesh)

FILE: programmingTutorials/OFtutorial06_customClasses/customClass.H
  function class (line 6) | class customClass

FILE: programmingTutorials/OFtutorial06_customClasses/derivedClass.H
  function class (line 11) | class myDict : public IOdictionary

FILE: programmingTutorials/OFtutorial07_customLibraries/OFtutorial7.C
  function main (line 36) | int main(int argc, char *argv[])

FILE: programmingTutorials/OFtutorial07_customLibraries/customLibrary/customLibrary.C
  function scalar (line 3) | scalar computeR(const fvMesh& mesh, volScalarField& r, dimensionedVector...
  function computeU (line 9) | void computeU(const fvMesh& mesh, volVectorField& U, word pName)

FILE: programmingTutorials/OFtutorial08_customBC/prescribedPipeInletFvPatchVectorField.C
  function rmap (line 140) | void Foam::prescribedPipeInletFvPatchVectorField::rmap
  function updateCoeffs (line 151) | void Foam::prescribedPipeInletFvPatchVectorField::updateCoeffs()
  function write (line 207) | void Foam::prescribedPipeInletFvPatchVectorField::write(Ostream& os) const
  function namespace (line 222) | namespace Foam

FILE: programmingTutorials/OFtutorial08_customBC/prescribedPipeInletFvPatchVectorField.H
  function namespace (line 88) | namespace Foam

FILE: programmingTutorials/OFtutorial09_runtimePostprocessingUtility/pipeCalc.C
  function namespace (line 30) | namespace Foam
  function writeFileHeader (line 64) | void Foam::functionObjects::pipeCalc::writeFileHeader(const label i)
  function read (line 131) | bool Foam::functionObjects::pipeCalc::read(const dictionary& dict)
  function execute (line 140) | bool Foam::functionObjects::pipeCalc::execute()
  function end (line 150) | bool Foam::functionObjects::pipeCalc::end()
  function timeSet (line 159) | void Foam::functionObjects::pipeCalc::timeSet()
  function write (line 162) | bool Foam::functionObjects::pipeCalc::write()

FILE: programmingTutorials/OFtutorial09_runtimePostprocessingUtility/pipeCalc.H
  function namespace (line 48) | namespace Foam

FILE: programmingTutorials/OFtutorial10_transportEquation/OFtutorial10.C
  function main (line 29) | int main(int argc, char *argv[])

FILE: programmingTutorials/OFtutorial11_modifyingTheMesh/OFtutorial11.C
  function main (line 30) | int main(int argc, char *argv[])

FILE: programmingTutorials/OFtutorial12_momentumSource/customActuationDiskSource.C
  function namespace (line 30) | namespace Foam
  function addSup (line 153) | void Foam::fv::customActuationDiskSource::addSup
  function addSup (line 176) | void Foam::fv::customActuationDiskSource::addSup
  function read (line 200) | bool Foam::fv::customActuationDiskSource::read(const dictionary& dict)

FILE: programmingTutorials/OFtutorial12_momentumSource/customActuationDiskSource.H
  function namespace (line 82) | namespace Foam

FILE: programmingTutorials/OldReleases/OF301/OFtutorial0_helloWorld/OFtutorial0.C
  function main (line 28) | int main(int argc, char *argv[])

FILE: programmingTutorials/OldReleases/OF301/OFtutorial1_inputOutput/OFtutorial1.C
  function main (line 28) | int main(int argc, char *argv[])

FILE: programmingTutorials/OldReleases/OF301/OFtutorial2_understandingTheMesh/OFtutorial2.C
  function main (line 28) | int main(int argc, char *argv[])

FILE: programmingTutorials/OldReleases/OF301/OFtutorial3_basicFieldOperations/OFtutorial3.C
  function main (line 37) | int main(int argc, char *argv[])
  function scalar (line 167) | scalar calculatePressure(scalar t, vector x, vector x0, scalar scale)

FILE: programmingTutorials/OldReleases/OF301/OFtutorial4_basicParallelComputing/OFtutorial4.C
  function main (line 28) | int main(int argc, char *argv[])

FILE: programmingTutorials/OldReleases/OF301/OFtutorial5_customClasses/OFtutorial5.C
  function main (line 35) | int main(int argc, char *argv[])

FILE: programmingTutorials/OldReleases/OF301/OFtutorial5_customClasses/customClass.C
  function meshOpFunction (line 17) | void customClass::meshOpFunction(fvMesh& mesh)

FILE: programmingTutorials/OldReleases/OF301/OFtutorial5_customClasses/customClass.H
  function class (line 6) | class customClass

FILE: programmingTutorials/OldReleases/OF301/OFtutorial5_customClasses/derivedClass.H
  function class (line 11) | class myDict : public IOdictionary

FILE: programmingTutorials/OldReleases/OF301/OFtutorial6_customLibraries/OFtutorial6.C
  function main (line 36) | int main(int argc, char *argv[])

FILE: programmingTutorials/OldReleases/OF301/OFtutorial6_customLibraries/customLibrary/customLibrary.C
  function scalar (line 3) | scalar computeR(const fvMesh& mesh, scalarField& r, dimensionedVector x0)
  function computeU (line 9) | void computeU(const fvMesh& mesh, volVectorField& U, word pName)

FILE: programmingTutorials/OldReleases/OF301/OFtutorial7_customBC/prescribedPipeInletFvPatchVectorField.C
  function rmap (line 140) | void Foam::prescribedPipeInletFvPatchVectorField::rmap
  function updateCoeffs (line 151) | void Foam::prescribedPipeInletFvPatchVectorField::updateCoeffs()
  function write (line 207) | void Foam::prescribedPipeInletFvPatchVectorField::write(Ostream& os) const
  function namespace (line 222) | namespace Foam

FILE: programmingTutorials/OldReleases/OF301/OFtutorial7_customBC/prescribedPipeInletFvPatchVectorField.H
  function namespace (line 88) | namespace Foam

FILE: programmingTutorials/OldReleases/OF301/OFtutorial8_runtimePostprocessingUtility/IOpipeCalc.H
  function namespace (line 40) | namespace Foam

FILE: programmingTutorials/OldReleases/OF301/OFtutorial8_runtimePostprocessingUtility/pipeCalc.C
  function namespace (line 30) | namespace Foam
  function writeFileHeader (line 41) | void Foam::pipeCalc::writeFileHeader(const label i)
  function read (line 114) | void Foam::pipeCalc::read(const dictionary& dict)
  function execute (line 122) | void Foam::pipeCalc::execute()
  function end (line 131) | void Foam::pipeCalc::end()
  function timeSet (line 139) | void Foam::pipeCalc::timeSet()
  function write (line 142) | void Foam::pipeCalc::write()

FILE: programmingTutorials/OldReleases/OF301/OFtutorial8_runtimePostprocessingUtility/pipeCalc.H
  function namespace (line 55) | namespace Foam

FILE: programmingTutorials/OldReleases/OF301/OFtutorial8_runtimePostprocessingUtility/pipeCalcFunctionObject.C
  function namespace (line 30) | namespace Foam

FILE: programmingTutorials/OldReleases/OF301/OFtutorial8_runtimePostprocessingUtility/pipeCalcFunctionObject.H
  function namespace (line 44) | namespace Foam

FILE: programmingTutorials/OldReleases/OF301/OFtutorial9_transportEquation/OFtutorial9.C
  function main (line 29) | int main(int argc, char *argv[])
Condensed preview — 594 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (3,000K chars).
[
  {
    "path": ".gitignore",
    "chars": 144,
    "preview": "*.grf\n*.gz\nlog.*\npostProcessing\n*~\nprocessor*\n[0-9]*\n[0-9]*.[0-9]*\n!0\n!0.org\n!0.orig\n!0/\n*.eMesh\npolyMesh/\n*.OpenFOAM\ndy"
  },
  {
    "path": "LICENSE",
    "chars": 35141,
    "preview": "                    GNU GENERAL PUBLIC LICENSE\n                       Version 3, 29 June 2007\n\n Copyright (C) 2007 Free "
  },
  {
    "path": "README.md",
    "chars": 1800,
    "preview": "# OpenFOAM Tutorials Plus\nThis repository contains several OpenFOAM tutorials, cases and notes.\n\nHere's a brief descript"
  },
  {
    "path": "_config.yml",
    "chars": 26,
    "preview": "theme: jekyll-theme-cayman"
  },
  {
    "path": "abruptContraction/interPhaseChangeFoam/0/U",
    "chars": 1434,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "abruptContraction/interPhaseChangeFoam/0/alpha.water",
    "chars": 1300,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "abruptContraction/interPhaseChangeFoam/0/k",
    "chars": 1421,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "abruptContraction/interPhaseChangeFoam/0/nuTilda",
    "chars": 1425,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "abruptContraction/interPhaseChangeFoam/0/nut",
    "chars": 1216,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "abruptContraction/interPhaseChangeFoam/0/p_rgh",
    "chars": 1289,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "abruptContraction/interPhaseChangeFoam/0/phi",
    "chars": 1405,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "abruptContraction/interPhaseChangeFoam/0/s",
    "chars": 1319,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "abruptContraction/interPhaseChangeFoam/Allclean",
    "chars": 265,
    "preview": "#!/bin/sh\ncd ${0%/*} || exit 1    # Run from this directory\n\n# Source tutorial clean functions\n. $WM_PROJECT_DIR/bin/too"
  },
  {
    "path": "abruptContraction/interPhaseChangeFoam/Allmesh",
    "chars": 735,
    "preview": "#!/bin/sh\ncd ${0%/*} || exit 1    # Run from this directory\n\n# Source tutorial run functions\n. $WM_PROJECT_DIR/bin/tools"
  },
  {
    "path": "abruptContraction/interPhaseChangeFoam/Allrun",
    "chars": 330,
    "preview": "#!/bin/sh\ncd ${0%/*} || exit 1    # Run from this directory\n\n# Source tutorial run functions\n. $WM_PROJECT_DIR/bin/tools"
  },
  {
    "path": "abruptContraction/interPhaseChangeFoam/Allrun.parallel",
    "chars": 478,
    "preview": "#!/bin/sh\ncd ${0%/*} || exit 1    # Run from this directory\n\n# Source tutorial run functions\n. $WM_PROJECT_DIR/bin/tools"
  },
  {
    "path": "abruptContraction/interPhaseChangeFoam/constant/g",
    "chars": 937,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "abruptContraction/interPhaseChangeFoam/constant/transportProperties",
    "chars": 2015,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "abruptContraction/interPhaseChangeFoam/constant/turbulenceProperties",
    "chars": 2146,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "abruptContraction/interPhaseChangeFoam/system/blockMeshDict",
    "chars": 2620,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "abruptContraction/interPhaseChangeFoam/system/controlDict",
    "chars": 1912,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "abruptContraction/interPhaseChangeFoam/system/decomposeParDict",
    "chars": 1020,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "abruptContraction/interPhaseChangeFoam/system/fvSchemes",
    "chars": 1479,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "abruptContraction/interPhaseChangeFoam/system/fvSolution",
    "chars": 3023,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "abruptContraction/interPhaseChangeFoam/system/probes",
    "chars": 830,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n  =========                 |\n  \\\\      "
  },
  {
    "path": "abruptContraction/interPhaseChangeFoam/system/refineMeshDict.1",
    "chars": 1079,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "abruptContraction/interPhaseChangeFoam/system/refineMeshDict.2",
    "chars": 1079,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "abruptContraction/interPhaseChangeFoam/system/surfaces",
    "chars": 1251,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n  =========                 |\n  \\\\      "
  },
  {
    "path": "abruptContraction/interPhaseChangeFoam/system/topoSetDict.1",
    "chars": 1068,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "abruptContraction/interPhaseChangeFoam/system/topoSetDict.2",
    "chars": 1069,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "abruptContraction/pimpleFoam/0/U",
    "chars": 1235,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "abruptContraction/pimpleFoam/0/epsilon",
    "chars": 1410,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "abruptContraction/pimpleFoam/0/k",
    "chars": 1387,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "abruptContraction/pimpleFoam/0/nuTilda",
    "chars": 1257,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "abruptContraction/pimpleFoam/0/nut",
    "chars": 1405,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "abruptContraction/pimpleFoam/0/p",
    "chars": 1228,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "abruptContraction/pimpleFoam/Allclean",
    "chars": 230,
    "preview": "#!/bin/sh\ncd ${0%/*} || exit 1    # Run from this directory\n\n# Source tutorial clean functions\n. $WM_PROJECT_DIR/bin/too"
  },
  {
    "path": "abruptContraction/pimpleFoam/Allrun",
    "chars": 322,
    "preview": "#!/bin/sh\ncd ${0%/*} || exit 1    # Run from this directory\n\n# Source tutorial run functions\n. $WM_PROJECT_DIR/bin/tools"
  },
  {
    "path": "abruptContraction/pimpleFoam/Allrun.parallel",
    "chars": 478,
    "preview": "#!/bin/sh\ncd ${0%/*} || exit 1    # Run from this directory\n\n# Source tutorial run functions\n. $WM_PROJECT_DIR/bin/tools"
  },
  {
    "path": "abruptContraction/pimpleFoam/constant/transportProperties",
    "chars": 970,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "abruptContraction/pimpleFoam/constant/turbulenceProperties",
    "chars": 988,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "abruptContraction/pimpleFoam/system/blockMeshDict",
    "chars": 2612,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "abruptContraction/pimpleFoam/system/controlDict",
    "chars": 1325,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "abruptContraction/pimpleFoam/system/decomposeParDict",
    "chars": 1020,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "abruptContraction/pimpleFoam/system/fvSchemes",
    "chars": 1474,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "abruptContraction/pimpleFoam/system/fvSolution",
    "chars": 1410,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "abruptContraction/pimpleFoam/system/probes",
    "chars": 830,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n  =========                 |\n  \\\\      "
  },
  {
    "path": "abruptContraction/pimpleFoam/system/surfaces",
    "chars": 1129,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n  =========                 |\n  \\\\      "
  },
  {
    "path": "abruptContraction/pisoFoam/0/U",
    "chars": 1414,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "abruptContraction/pisoFoam/0/k",
    "chars": 1423,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "abruptContraction/pisoFoam/0/nuTilda",
    "chars": 1425,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "abruptContraction/pisoFoam/0/nut",
    "chars": 1220,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "abruptContraction/pisoFoam/0/p",
    "chars": 1252,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "abruptContraction/pisoFoam/0/s",
    "chars": 1319,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "abruptContraction/pisoFoam/Allclean",
    "chars": 230,
    "preview": "#!/bin/sh\ncd ${0%/*} || exit 1    # Run from this directory\n\n# Source tutorial clean functions\n. $WM_PROJECT_DIR/bin/too"
  },
  {
    "path": "abruptContraction/pisoFoam/Allrun",
    "chars": 322,
    "preview": "#!/bin/sh\ncd ${0%/*} || exit 1    # Run from this directory\n\n# Source tutorial run functions\n. $WM_PROJECT_DIR/bin/tools"
  },
  {
    "path": "abruptContraction/pisoFoam/Allrun.parallel",
    "chars": 478,
    "preview": "#!/bin/sh\ncd ${0%/*} || exit 1    # Run from this directory\n\n# Source tutorial run functions\n. $WM_PROJECT_DIR/bin/tools"
  },
  {
    "path": "abruptContraction/pisoFoam/constant/transportProperties",
    "chars": 940,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "abruptContraction/pisoFoam/constant/turbulenceProperties",
    "chars": 2119,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "abruptContraction/pisoFoam/system/blockMeshDict",
    "chars": 2612,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "abruptContraction/pisoFoam/system/controlDict",
    "chars": 1285,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "abruptContraction/pisoFoam/system/decomposeParDict",
    "chars": 1020,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "abruptContraction/pisoFoam/system/fvSchemes",
    "chars": 1351,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "abruptContraction/pisoFoam/system/fvSolution",
    "chars": 1388,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "abruptContraction/pisoFoam/system/probes",
    "chars": 830,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n  =========                 |\n  \\\\      "
  },
  {
    "path": "abruptContraction/pisoFoam/system/surfaces",
    "chars": 1129,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n  =========                 |\n  \\\\      "
  },
  {
    "path": "abruptContraction/simpleFoam/0/U",
    "chars": 1269,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "abruptContraction/simpleFoam/0/epsilon",
    "chars": 1375,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "abruptContraction/simpleFoam/0/k",
    "chars": 1386,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "abruptContraction/simpleFoam/0/nut",
    "chars": 1216,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "abruptContraction/simpleFoam/0/p",
    "chars": 1289,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "abruptContraction/simpleFoam/Allclean",
    "chars": 265,
    "preview": "#!/bin/sh\ncd ${0%/*} || exit 1    # Run from this directory\n\n# Source tutorial clean functions\n. $WM_PROJECT_DIR/bin/too"
  },
  {
    "path": "abruptContraction/simpleFoam/Allrun",
    "chars": 345,
    "preview": "#!/bin/sh\ncd ${0%/*} || exit 1    # Run from this directory\n\n# Source tutorial run functions\n. $WM_PROJECT_DIR/bin/tools"
  },
  {
    "path": "abruptContraction/simpleFoam/constant/transportProperties",
    "chars": 940,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "abruptContraction/simpleFoam/constant/turbulenceProperties",
    "chars": 983,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "abruptContraction/simpleFoam/system/blockMeshDict",
    "chars": 2619,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "abruptContraction/simpleFoam/system/controlDict",
    "chars": 1215,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "abruptContraction/simpleFoam/system/fvSchemes",
    "chars": 1555,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "abruptContraction/simpleFoam/system/fvSolution",
    "chars": 1603,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "cavitatingBullet/0/U",
    "chars": 1263,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "cavitatingBullet/0/alpha.water",
    "chars": 1255,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "cavitatingBullet/0/p_rgh",
    "chars": 1222,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "cavitatingBullet/Allclean",
    "chars": 288,
    "preview": "#!/bin/sh\ncd ${0%/*} || exit 1    # Run from this directory\n\n# Source tutorial clean functions\n. $WM_PROJECT_DIR/bin/too"
  },
  {
    "path": "cavitatingBullet/Allrun",
    "chars": 511,
    "preview": "#!/bin/sh\ncd ${0%/*} || exit 1    # Run from this directory\n\n# Source tutorial run functions\n. $WM_PROJECT_DIR/bin/tools"
  },
  {
    "path": "cavitatingBullet/constant/g",
    "chars": 937,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "cavitatingBullet/constant/transportProperties",
    "chars": 1581,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "cavitatingBullet/constant/triSurface/README",
    "chars": 124,
    "preview": "Directory to house tri-surfaces\n\nThe Allrun script copies the surface from the $FOAM_TUTORIALS/resources/geometry\ndirect"
  },
  {
    "path": "cavitatingBullet/constant/turbulenceProperties",
    "chars": 871,
    "preview": "/*--------------------------------*- C++ -*----------------------------------* \\\n| =========                 |          "
  },
  {
    "path": "cavitatingBullet/system/blockMeshDict",
    "chars": 1470,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "cavitatingBullet/system/controlDict",
    "chars": 1368,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "cavitatingBullet/system/decomposeParDict",
    "chars": 1179,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "cavitatingBullet/system/fvSchemes",
    "chars": 1479,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "cavitatingBullet/system/fvSolution",
    "chars": 2318,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "cavitatingBullet/system/snappyHexMeshDict",
    "chars": 10006,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "fishChannel/0/alpha.water.orig",
    "chars": 1299,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n  =========                 |\n  \\\\      "
  },
  {
    "path": "fishChannel/0/epsilon",
    "chars": 3836,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n  =========                 |\n  \\\\      "
  },
  {
    "path": "fishChannel/0/k",
    "chars": 4937,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n  =========                 |\n  \\\\      "
  },
  {
    "path": "fishChannel/0/nut",
    "chars": 3641,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n  =========                 |\n  \\\\      "
  },
  {
    "path": "fishChannel/0/omega",
    "chars": 4884,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n  =========                 |\n  \\\\      "
  },
  {
    "path": "fishChannel/0/p_rgh",
    "chars": 4976,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n  =========                 |\n  \\\\      "
  },
  {
    "path": "fishChannel/Allclean",
    "chars": 213,
    "preview": "#!/bin/sh\ncd ${0%/*} || exit 1    # Run from this directory\n\n# Source tutorial clean functions\n. $WM_PROJECT_DIR/bin/too"
  },
  {
    "path": "fishChannel/Allmesh",
    "chars": 1396,
    "preview": "#!/bin/sh\ncd ${0%/*} || exit 1    # run from this directory\n\n# Source tutorial run functions\n. $WM_PROJECT_DIR/bin/tools"
  },
  {
    "path": "fishChannel/Allrun",
    "chars": 310,
    "preview": "#!/bin/sh\ncd ${0%/*} || exit 1    # Run from this directory\n\n# Source tutorial run functions\n. $WM_PROJECT_DIR/bin/tools"
  },
  {
    "path": "fishChannel/constant/g",
    "chars": 767,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n  =========                 |\n  \\\\      "
  },
  {
    "path": "fishChannel/constant/transportProperties",
    "chars": 935,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n  =========                 |\n  \\\\      "
  },
  {
    "path": "fishChannel/constant/turbulenceProperties",
    "chars": 851,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n  =========                 |\n  \\\\      "
  },
  {
    "path": "fishChannel/showCase.pvsm",
    "chars": 717096,
    "preview": "<ParaView>\r\n  <ServerManagerState version=\"5.9.1\">\r\n    <Proxy group=\"animation\" type=\"AnimationScene\" id=\"263\" servers="
  },
  {
    "path": "fishChannel/system/blockMeshDict",
    "chars": 3246,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n  =========                 |\n  \\\\      "
  },
  {
    "path": "fishChannel/system/controlDict",
    "chars": 1806,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n  =========                 |\n  \\\\      "
  },
  {
    "path": "fishChannel/system/createBafflesDict",
    "chars": 14627,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n  =========                 |\n  \\\\      "
  },
  {
    "path": "fishChannel/system/createPatchDict",
    "chars": 858,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n  =========                 |\n  \\\\      "
  },
  {
    "path": "fishChannel/system/decomposeParDict",
    "chars": 1172,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n  =========                 |\n  \\\\      "
  },
  {
    "path": "fishChannel/system/fvSchemes",
    "chars": 1267,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n  =========                 |\n  \\\\      "
  },
  {
    "path": "fishChannel/system/fvSolution",
    "chars": 1976,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n  =========                 |\n  \\\\      "
  },
  {
    "path": "fishChannel/system/refineMeshDict",
    "chars": 915,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n  =========                 |\n  \\\\      "
  },
  {
    "path": "fishChannel/system/refineMeshDict.section1",
    "chars": 914,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n  =========                 |\n  \\\\      "
  },
  {
    "path": "fishChannel/system/refineMeshDict.section2",
    "chars": 915,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n  =========                 |\n  \\\\      "
  },
  {
    "path": "fishChannel/system/setFieldsDict",
    "chars": 939,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n  =========                 |\n  \\\\      "
  },
  {
    "path": "fishChannel/system/topoSetDict.outlet2",
    "chars": 883,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n  =========                 |\n  \\\\      "
  },
  {
    "path": "fishChannel/system/topoSetDict.section1",
    "chars": 875,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n  =========                 |\n  \\\\      "
  },
  {
    "path": "fishChannel/system/topoSetDict.section2",
    "chars": 876,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n  =========                 |\n  \\\\      "
  },
  {
    "path": "flatPlate/0/U",
    "chars": 1307,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "flatPlate/0/U~",
    "chars": 1307,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "flatPlate/0/epsilon",
    "chars": 1337,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "flatPlate/0/k",
    "chars": 1324,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "flatPlate/0/nut",
    "chars": 1348,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "flatPlate/0/p",
    "chars": 1257,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "flatPlate/Allclean",
    "chars": 230,
    "preview": "#!/bin/sh\ncd ${0%/*} || exit 1    # Run from this directory\n\n# Source tutorial clean functions\n. $WM_PROJECT_DIR/bin/too"
  },
  {
    "path": "flatPlate/Allrun",
    "chars": 322,
    "preview": "#!/bin/sh\ncd ${0%/*} || exit 1    # Run from this directory\n\n# Source tutorial run functions\n. $WM_PROJECT_DIR/bin/tools"
  },
  {
    "path": "flatPlate/constant/transportProperties",
    "chars": 939,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "flatPlate/constant/turbulenceProperties",
    "chars": 983,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "flatPlate/system/blockMeshDict",
    "chars": 1629,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "flatPlate/system/controlDict",
    "chars": 1134,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "flatPlate/system/fvSchemes",
    "chars": 1555,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "flatPlate/system/fvSolution",
    "chars": 1765,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "linuxCheatSheet/Common linux command in OpenFoam.md",
    "chars": 1665,
    "preview": "# OpenFOAM Linux Cheat Sheet\n\n## contents\n1. File & Directory\n2. Text\n3. Binary & Package\n4. Process & Environment\n5. Re"
  },
  {
    "path": "magnusEffect/0/.svn/all-wcprops",
    "chars": 427,
    "preview": "K 25\nsvn:wc:ra_dav:version-url\nV 98\n/svnroot/openfoam-extend/!svn/ver/1160/trunk/Core/OpenFOAM-1.5-dev/tutorials/icoDyMF"
  },
  {
    "path": "magnusEffect/0/.svn/entries",
    "chars": 585,
    "preview": "10\n\ndir\n1824\nhttps://openfoam-extend.svn.sourceforge.net/svnroot/openfoam-extend/trunk/Core/OpenFOAM-1.5-dev/tutorials/i"
  },
  {
    "path": "magnusEffect/0/.svn/text-base/U.svn-base",
    "chars": 1416,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "magnusEffect/0/.svn/text-base/p.svn-base",
    "chars": 1312,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "magnusEffect/0/U",
    "chars": 1281,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "magnusEffect/0/epsilon",
    "chars": 1221,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "magnusEffect/0/k",
    "chars": 1209,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "magnusEffect/0/nuTilda",
    "chars": 1165,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "magnusEffect/0/nut",
    "chars": 1203,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "magnusEffect/0/p",
    "chars": 1126,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "magnusEffect/Allclean",
    "chars": 230,
    "preview": "#!/bin/sh\ncd ${0%/*} || exit 1    # Run from this directory\n\n# Source tutorial clean functions\n. $WM_PROJECT_DIR/bin/too"
  },
  {
    "path": "magnusEffect/Allrun",
    "chars": 496,
    "preview": "#!/bin/sh\ncd ${0%/*} || exit 1    # Run from this directory\n\n# Source tutorial run functions\n. $WM_PROJECT_DIR/bin/tools"
  },
  {
    "path": "magnusEffect/README.md",
    "chars": 594,
    "preview": "**Magnus Effect Simulation in OpenFOAM**\n\nForked from [openfoamtutorials/openfoam_tutorials](https://github.com/openfoam"
  },
  {
    "path": "magnusEffect/constant/transportProperties",
    "chars": 1370,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "magnusEffect/constant/turbulenceProperties",
    "chars": 983,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "magnusEffect/magnus.geo",
    "chars": 2674,
    "preview": "//Inputs (units are metric)\ncylinder_radius = 0.1;\nboundarylayer_height = 0.2*cylinder_radius;\nboundarylayer_cells = 10;"
  },
  {
    "path": "magnusEffect/system/controlDict",
    "chars": 1300,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "magnusEffect/system/fvSchemes",
    "chars": 1238,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n  =========                 |\n  \\\\      "
  },
  {
    "path": "magnusEffect/system/fvSolution",
    "chars": 2083,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "mpiTest/Alltest",
    "chars": 972,
    "preview": "#!/bin/sh\nmpiCase (){\n    cp -r damBreak4phaseFine damBreak4phaseFine$1 \\\n        >> /dev/null\n    sed -i '18cnumberOfSu"
  },
  {
    "path": "mpiTest/damBreak4phaseFine/0/U",
    "chars": 1119,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n  =========                 |\n  \\\\      "
  },
  {
    "path": "mpiTest/damBreak4phaseFine/0/U.air",
    "chars": 1122,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n  =========                 |\n  \\\\      "
  },
  {
    "path": "mpiTest/damBreak4phaseFine/0/U.mercury",
    "chars": 1126,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n  =========                 |\n  \\\\      "
  },
  {
    "path": "mpiTest/damBreak4phaseFine/0/U.oil",
    "chars": 1122,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n  =========                 |\n  \\\\      "
  },
  {
    "path": "mpiTest/damBreak4phaseFine/0/U.water",
    "chars": 1123,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n  =========                 |\n  \\\\      "
  },
  {
    "path": "mpiTest/damBreak4phaseFine/0/alpha.air.orig",
    "chars": 2059,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n  =========                 |\n  \\\\      "
  },
  {
    "path": "mpiTest/damBreak4phaseFine/0/alpha.mercury.orig",
    "chars": 1160,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n  =========                 |\n  \\\\      "
  },
  {
    "path": "mpiTest/damBreak4phaseFine/0/alpha.oil.orig",
    "chars": 1156,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n  =========                 |\n  \\\\      "
  },
  {
    "path": "mpiTest/damBreak4phaseFine/0/alpha.water.orig",
    "chars": 1158,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n  =========                 |\n  \\\\      "
  },
  {
    "path": "mpiTest/damBreak4phaseFine/0/p_rgh",
    "chars": 1223,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n  =========                 |\n  \\\\      "
  },
  {
    "path": "mpiTest/damBreak4phaseFine/Allclean",
    "chars": 233,
    "preview": "#!/bin/sh\ncd ${0%/*} || exit 1    # Run from this directory\n\n# Source tutorial clean functions\n. $WM_PROJECT_DIR/bin/too"
  },
  {
    "path": "mpiTest/damBreak4phaseFine/Allsbatch",
    "chars": 369,
    "preview": "#!/bin/sh\n\n#SBATCH --ntasks=2\n#SBATCH --time=03:00:00\n#SBATCH --mem-per-cpu=0\n#SBATCH --job-name=mpiTest\n#SBATCH --outpu"
  },
  {
    "path": "mpiTest/damBreak4phaseFine/constant/g",
    "chars": 768,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n  =========                 |\n  \\\\      "
  },
  {
    "path": "mpiTest/damBreak4phaseFine/constant/motionProperties",
    "chars": 731,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n  =========                 |\n  \\\\      "
  },
  {
    "path": "mpiTest/damBreak4phaseFine/constant/transportProperties",
    "chars": 4330,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n  =========                 |\n  \\\\      "
  },
  {
    "path": "mpiTest/damBreak4phaseFine/constant/turbulenceProperties",
    "chars": 730,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n  =========                 |\n  \\\\      "
  },
  {
    "path": "mpiTest/damBreak4phaseFine/system/blockMeshDict",
    "chars": 2093,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n  =========                 |\n  \\\\      "
  },
  {
    "path": "mpiTest/damBreak4phaseFine/system/controlDict",
    "chars": 1151,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n  =========                 |\n  \\\\      "
  },
  {
    "path": "mpiTest/damBreak4phaseFine/system/decomposeParDict",
    "chars": 745,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n  =========                 |\n  \\\\      "
  },
  {
    "path": "mpiTest/damBreak4phaseFine/system/fvSchemes",
    "chars": 1211,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n  =========                 |\n  \\\\      "
  },
  {
    "path": "mpiTest/damBreak4phaseFine/system/fvSolution",
    "chars": 1754,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n  =========                 |\n  \\\\      "
  },
  {
    "path": "mpiTest/damBreak4phaseFine/system/setFieldsDict",
    "chars": 1785,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n  =========                 |\n  \\\\      "
  },
  {
    "path": "programmingTutorials/.gitignore",
    "chars": 1345,
    "preview": "# git-ls-files --others --exclude-from=.git/info/exclude\n# Lines that start with '#' are comments.\n\n# Editor and misc ba"
  },
  {
    "path": "programmingTutorials/LICENSE",
    "chars": 35141,
    "preview": "                    GNU GENERAL PUBLIC LICENSE\n                       Version 3, 29 June 2007\n\n Copyright (C) 2007 Free "
  },
  {
    "path": "programmingTutorials/OFtutorial00_helloWorld/Allwclean",
    "chars": 20,
    "preview": "#!/bin/bash\n\nwclean\n"
  },
  {
    "path": "programmingTutorials/OFtutorial00_helloWorld/Allwmake",
    "chars": 19,
    "preview": "#!/bin/bash\n\nwmake\n"
  },
  {
    "path": "programmingTutorials/OFtutorial00_helloWorld/Make/files",
    "chars": 53,
    "preview": "OFtutorial0.C\n\nEXE = $(FOAM_USER_APPBIN)/ofTutorial0\n"
  },
  {
    "path": "programmingTutorials/OFtutorial00_helloWorld/Make/options",
    "chars": 142,
    "preview": "EXE_INC = \\\n    -I$(LIB_SRC)/finiteVolume/lnInclude \\\n    -I$(LIB_SRC)/meshTools/lnInclude\n\nEXE_LIBS = \\\n    -lfiniteVol"
  },
  {
    "path": "programmingTutorials/OFtutorial00_helloWorld/OFtutorial0.C",
    "chars": 2280,
    "preview": "/*---------------------------------------------------------------------------*\\\n  =========                 |\n  \\\\      "
  },
  {
    "path": "programmingTutorials/OFtutorial00_helloWorld/testCase/0/U",
    "chars": 1187,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "programmingTutorials/OFtutorial00_helloWorld/testCase/0/p",
    "chars": 1103,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "programmingTutorials/OFtutorial00_helloWorld/testCase/Allclean",
    "chars": 99,
    "preview": "#!/bin/bash\n\nrm -r 1* 2* 3* 4* 5* 6* 7* 8* 9* 0.* constant/polyMesh/* processor* log.* 2>/dev/null\n"
  },
  {
    "path": "programmingTutorials/OFtutorial00_helloWorld/testCase/Allrun",
    "chars": 25,
    "preview": "#!/bin/bash\n\nofTutorial0\n"
  },
  {
    "path": "programmingTutorials/OFtutorial00_helloWorld/testCase/constant/transportProperties",
    "chars": 912,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "programmingTutorials/OFtutorial00_helloWorld/testCase/system/blockMeshDict",
    "chars": 1476,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "programmingTutorials/OFtutorial00_helloWorld/testCase/system/controlDict",
    "chars": 1214,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "programmingTutorials/OFtutorial00_helloWorld/testCase/system/fvSchemes",
    "chars": 1236,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "programmingTutorials/OFtutorial00_helloWorld/testCase/system/fvSolution",
    "chars": 1274,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  },
  {
    "path": "programmingTutorials/OFtutorial01_inputOutput/Allwclean",
    "chars": 20,
    "preview": "#!/bin/bash\n\nwclean\n"
  },
  {
    "path": "programmingTutorials/OFtutorial01_inputOutput/Allwmake",
    "chars": 19,
    "preview": "#!/bin/bash\n\nwmake\n"
  },
  {
    "path": "programmingTutorials/OFtutorial01_inputOutput/Make/files",
    "chars": 53,
    "preview": "OFtutorial1.C\n\nEXE = $(FOAM_USER_APPBIN)/ofTutorial1\n"
  },
  {
    "path": "programmingTutorials/OFtutorial01_inputOutput/Make/options",
    "chars": 142,
    "preview": "EXE_INC = \\\n    -I$(LIB_SRC)/finiteVolume/lnInclude \\\n    -I$(LIB_SRC)/meshTools/lnInclude\n\nEXE_LIBS = \\\n    -lfiniteVol"
  },
  {
    "path": "programmingTutorials/OFtutorial01_inputOutput/OFtutorial1.C",
    "chars": 4669,
    "preview": "/*---------------------------------------------------------------------------*\\\n  =========                 |\n  \\\\      "
  },
  {
    "path": "programmingTutorials/OFtutorial01_inputOutput/testCase/0/U",
    "chars": 1187,
    "preview": "/*--------------------------------*- C++ -*----------------------------------*\\\n| =========                 |           "
  }
]

// ... and 394 more files (download for full content)

About this extraction

This page contains the full source code of the phresher/OpenFOAM_Tutorials_Plus GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 594 files (2.6 MB), approximately 715.6k tokens, and a symbol index with 64 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.

Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.

Copied to clipboard!