From dc28dbc3ad6a57dcb9c900f87fb4c61f8f5708cf Mon Sep 17 00:00:00 2001 From: Mark Olesen Date: Tue, 20 Sep 2022 10:41:51 +0200 Subject: [PATCH] TUT: add multi-patch versions using regionFaModels --- .../hotRoomWithThermalShell/0/T | 6 +- .../hotRoomWithThermalShell/0/p | 6 +- .../hotRoomWithThermalShell/0/p_rgh | 12 +- .../hotRoomWithThermalShell/Allrun | 4 + .../hotRoomWithThermalShell/Allrun-parallel | 4 + .../system/blockMeshDict | 7 +- .../system/createPatchDict | 41 +++++ .../system/decomposeParDict | 8 +- .../system/faMeshDefinition | 9 +- .../hotRoomWithThermalShell/system/faOptions | 39 ++--- .../system/topoSetDict | 38 ++++ .../splashPanelFilm/0.orig/H2O | 37 ++++ .../splashPanelFilm/0.orig/N2 | 37 ++++ .../splashPanelFilm/0.orig/O2 | 37 ++++ .../splashPanelFilm/0.orig/T | 38 ++++ .../splashPanelFilm/0.orig/Tf_film | 30 ++++ .../splashPanelFilm/0.orig/U | 85 +++++++++ .../splashPanelFilm/0.orig/Uf_film | 32 ++++ .../splashPanelFilm/0.orig/hf_film | 30 ++++ .../splashPanelFilm/0.orig/p | 39 +++++ .../splashPanelFilm/0.orig/p_rgh | 38 ++++ .../splashPanelFilm/Allclean | 10 ++ .../reactingParcelFoam/splashPanelFilm/Allrun | 10 ++ .../splashPanelFilm/Allrun.pre | 16 ++ .../constant/chemistryProperties | 27 +++ .../constant/combustionProperties | 20 +++ .../splashPanelFilm/constant/foam.dat | 81 +++++++++ .../splashPanelFilm/constant/foam.inp | 10 ++ .../splashPanelFilm/constant/g | 21 +++ .../constant/parcelInjectionProperties | 23 +++ .../constant/radiationProperties | 22 +++ .../constant/reactingCloud1Properties | 165 ++++++++++++++++++ .../constant/surfaceFilmProperties.remove | 76 ++++++++ .../constant/thermophysicalProperties | 45 +++++ .../constant/turbulenceProperties | 20 +++ .../splashPanelFilm/system/blockMeshDict | 76 ++++++++ .../splashPanelFilm/system/controlDict | 54 ++++++ .../splashPanelFilm/system/createPatchDict | 41 +++++ .../splashPanelFilm/system/faMeshDefinition | 29 +++ .../splashPanelFilm/system/fvSchemes | 57 ++++++ .../splashPanelFilm/system/fvSolution | 99 +++++++++++ .../splashPanelFilm/system/topoSetDict | 38 ++++ 42 files changed, 1478 insertions(+), 39 deletions(-) create mode 100644 tutorials/heatTransfer/buoyantPimpleFoam/hotRoomWithThermalShell/system/createPatchDict create mode 100644 tutorials/heatTransfer/buoyantPimpleFoam/hotRoomWithThermalShell/system/topoSetDict create mode 100644 tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/0.orig/H2O create mode 100644 tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/0.orig/N2 create mode 100644 tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/0.orig/O2 create mode 100644 tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/0.orig/T create mode 100644 tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/0.orig/Tf_film create mode 100644 tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/0.orig/U create mode 100644 tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/0.orig/Uf_film create mode 100644 tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/0.orig/hf_film create mode 100644 tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/0.orig/p create mode 100644 tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/0.orig/p_rgh create mode 100755 tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/Allclean create mode 100755 tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/Allrun create mode 100755 tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/Allrun.pre create mode 100644 tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/constant/chemistryProperties create mode 100644 tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/constant/combustionProperties create mode 100644 tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/constant/foam.dat create mode 100644 tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/constant/foam.inp create mode 100644 tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/constant/g create mode 100644 tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/constant/parcelInjectionProperties create mode 100644 tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/constant/radiationProperties create mode 100644 tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/constant/reactingCloud1Properties create mode 100644 tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/constant/surfaceFilmProperties.remove create mode 100644 tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/constant/thermophysicalProperties create mode 100644 tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/constant/turbulenceProperties create mode 100644 tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/system/blockMeshDict create mode 100644 tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/system/controlDict create mode 100644 tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/system/createPatchDict create mode 100644 tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/system/faMeshDefinition create mode 100644 tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/system/fvSchemes create mode 100644 tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/system/fvSolution create mode 100644 tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/system/topoSetDict diff --git a/tutorials/heatTransfer/buoyantPimpleFoam/hotRoomWithThermalShell/0/T b/tutorials/heatTransfer/buoyantPimpleFoam/hotRoomWithThermalShell/0/T index 46f458e740..d519e31773 100644 --- a/tutorials/heatTransfer/buoyantPimpleFoam/hotRoomWithThermalShell/0/T +++ b/tutorials/heatTransfer/buoyantPimpleFoam/hotRoomWithThermalShell/0/T @@ -1,7 +1,7 @@ /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: v2206 | +| \\ / O peration | Version: v2212 | | \\ / A nd | Website: www.openfoam.com | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ @@ -20,13 +20,13 @@ internalField uniform 300; boundaryField { - floor + "floor.*" { type fixedValue; value uniform 700; } - ceiling + "ceiling.*" { type compressible::thermalShell; active true; diff --git a/tutorials/heatTransfer/buoyantPimpleFoam/hotRoomWithThermalShell/0/p b/tutorials/heatTransfer/buoyantPimpleFoam/hotRoomWithThermalShell/0/p index 2c5eeb4edc..c7609b355c 100644 --- a/tutorials/heatTransfer/buoyantPimpleFoam/hotRoomWithThermalShell/0/p +++ b/tutorials/heatTransfer/buoyantPimpleFoam/hotRoomWithThermalShell/0/p @@ -1,7 +1,7 @@ /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: v2206 | +| \\ / O peration | Version: v2212 | | \\ / A nd | Website: www.openfoam.com | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ @@ -20,13 +20,13 @@ internalField uniform 1e5; boundaryField { - floor + "floor.*" { type calculated; value $internalField; } - ceiling + "ceiling.*" { type calculated; value $internalField; diff --git a/tutorials/heatTransfer/buoyantPimpleFoam/hotRoomWithThermalShell/0/p_rgh b/tutorials/heatTransfer/buoyantPimpleFoam/hotRoomWithThermalShell/0/p_rgh index 28b42b31ff..118d32f7e2 100644 --- a/tutorials/heatTransfer/buoyantPimpleFoam/hotRoomWithThermalShell/0/p_rgh +++ b/tutorials/heatTransfer/buoyantPimpleFoam/hotRoomWithThermalShell/0/p_rgh @@ -1,7 +1,7 @@ /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: v2206 | +| \\ / O peration | Version: v2212 | | \\ / A nd | Website: www.openfoam.com | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ @@ -20,22 +20,22 @@ internalField uniform 1e5; boundaryField { - floor + "floor.*" { type fixedFluxPressure; - value uniform 1e5; + value $internalField; } - ceiling + "ceiling.*" { type fixedFluxPressure; - value uniform 1e5; + value $internalField; } "fixedWall.*" { type fixedFluxPressure; - value uniform 1e5; + value $internalField; } } diff --git a/tutorials/heatTransfer/buoyantPimpleFoam/hotRoomWithThermalShell/Allrun b/tutorials/heatTransfer/buoyantPimpleFoam/hotRoomWithThermalShell/Allrun index 85eceb74ad..753e85f94e 100755 --- a/tutorials/heatTransfer/buoyantPimpleFoam/hotRoomWithThermalShell/Allrun +++ b/tutorials/heatTransfer/buoyantPimpleFoam/hotRoomWithThermalShell/Allrun @@ -5,6 +5,10 @@ cd "${0%/*}" || exit # Run from this directory runApplication blockMesh +runApplication topoSet + +runApplication createPatch -overwrite + runApplication makeFaMesh runApplication $(getApplication) diff --git a/tutorials/heatTransfer/buoyantPimpleFoam/hotRoomWithThermalShell/Allrun-parallel b/tutorials/heatTransfer/buoyantPimpleFoam/hotRoomWithThermalShell/Allrun-parallel index b5e535e97e..9efd5de941 100755 --- a/tutorials/heatTransfer/buoyantPimpleFoam/hotRoomWithThermalShell/Allrun-parallel +++ b/tutorials/heatTransfer/buoyantPimpleFoam/hotRoomWithThermalShell/Allrun-parallel @@ -5,6 +5,10 @@ cd "${0%/*}" || exit # Run from this directory runApplication blockMesh +runApplication topoSet + +runApplication createPatch -overwrite + runParallel -s decompose redistributePar -decompose runParallel makeFaMesh diff --git a/tutorials/heatTransfer/buoyantPimpleFoam/hotRoomWithThermalShell/system/blockMeshDict b/tutorials/heatTransfer/buoyantPimpleFoam/hotRoomWithThermalShell/system/blockMeshDict index f374a56e5d..eb48498005 100644 --- a/tutorials/heatTransfer/buoyantPimpleFoam/hotRoomWithThermalShell/system/blockMeshDict +++ b/tutorials/heatTransfer/buoyantPimpleFoam/hotRoomWithThermalShell/system/blockMeshDict @@ -1,7 +1,7 @@ /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: v2206 | +| \\ / O peration | Version: v2212 | | \\ / A nd | Website: www.openfoam.com | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ @@ -55,6 +55,11 @@ boundary (3 7 6 2) ); } + ceiling2 + { + type wall; + faces (); + } fixedWall1 { type wall; diff --git a/tutorials/heatTransfer/buoyantPimpleFoam/hotRoomWithThermalShell/system/createPatchDict b/tutorials/heatTransfer/buoyantPimpleFoam/hotRoomWithThermalShell/system/createPatchDict new file mode 100644 index 0000000000..f650b677b7 --- /dev/null +++ b/tutorials/heatTransfer/buoyantPimpleFoam/hotRoomWithThermalShell/system/createPatchDict @@ -0,0 +1,41 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2212 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object createPatchDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +pointSync false; + +// Patches to create. +patches +( + { + // Name of new patch + name ceiling2; + + // Type of new patch + patchInfo + { + type patch; + } + + // How to construct: either from 'patches' or 'set' + constructFrom set; + + // If constructFrom = set : name of faceSet + set f0; + } +); + + +// ************************************************************************* // diff --git a/tutorials/heatTransfer/buoyantPimpleFoam/hotRoomWithThermalShell/system/decomposeParDict b/tutorials/heatTransfer/buoyantPimpleFoam/hotRoomWithThermalShell/system/decomposeParDict index 5e4391e4e2..dbce94389b 100644 --- a/tutorials/heatTransfer/buoyantPimpleFoam/hotRoomWithThermalShell/system/decomposeParDict +++ b/tutorials/heatTransfer/buoyantPimpleFoam/hotRoomWithThermalShell/system/decomposeParDict @@ -1,7 +1,7 @@ /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: v2206 | +| \\ / O peration | Version: v2212 | | \\ / A nd | Website: www.openfoam.com | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ @@ -14,13 +14,13 @@ FoamFile } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -numberOfSubdomains 2; +numberOfSubdomains 4; -method hierarchical; +method hierarchical; coeffs { - n (2 1 1); + n (2 1 2); } diff --git a/tutorials/heatTransfer/buoyantPimpleFoam/hotRoomWithThermalShell/system/faMeshDefinition b/tutorials/heatTransfer/buoyantPimpleFoam/hotRoomWithThermalShell/system/faMeshDefinition index 98516add1c..41900408d3 100644 --- a/tutorials/heatTransfer/buoyantPimpleFoam/hotRoomWithThermalShell/system/faMeshDefinition +++ b/tutorials/heatTransfer/buoyantPimpleFoam/hotRoomWithThermalShell/system/faMeshDefinition @@ -1,7 +1,7 @@ /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: v2206 | +| \\ / O peration | Version: v2212 | | \\ / A nd | Website: www.openfoam.com | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ @@ -14,7 +14,7 @@ FoamFile } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -polyMeshPatches ( ceiling ); +polyMeshPatches ( "ceiling.*" ); boundary { @@ -43,5 +43,10 @@ boundary } } +// defaultPatch +// { +// type patch; +// name side; +// } // ************************************************************************** // diff --git a/tutorials/heatTransfer/buoyantPimpleFoam/hotRoomWithThermalShell/system/faOptions b/tutorials/heatTransfer/buoyantPimpleFoam/hotRoomWithThermalShell/system/faOptions index 0ee7f3de81..02f27e011b 100644 --- a/tutorials/heatTransfer/buoyantPimpleFoam/hotRoomWithThermalShell/system/faOptions +++ b/tutorials/heatTransfer/buoyantPimpleFoam/hotRoomWithThermalShell/system/faOptions @@ -1,7 +1,7 @@ /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: v2206 | +| \\ / O peration | Version: v2212 | | \\ / A nd | Website: www.openfoam.com | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ @@ -16,34 +16,33 @@ FoamFile topSide { - type externalHeatFluxSource; - active true; - region ceilingShell; - T Ts_ceilingShell; - selectionMode all; - mode coefficient; - Ta constant 290; - h 10; + type externalHeatFluxSource; + active true; + region ceilingShell; + selectionMode all; + + mode coefficient; + T Ts_ceilingShell; + Ta constant 290; + h 10; } // contactHeatFluxSource is the coupling of the shell-2D and the 3D mesh contactHeatFlux { - type contactHeatFluxSource; - active true; - T Ts_ceilingShell; - region ceilingShell; + type contactHeatFluxSource; + active true; + region ceilingShell; + selectionMode all; - Tprimary T; + T Ts_ceilingShell; + Tprimary T; - kappaMethod fluidThermo; - kappa none; + kappaMethod fluidThermo; - thicknessLayers (0.001); - kappaLayers (0.02); - - selectionMode all; + thicknessLayers (0.001); + kappaLayers (0.02); } diff --git a/tutorials/heatTransfer/buoyantPimpleFoam/hotRoomWithThermalShell/system/topoSetDict b/tutorials/heatTransfer/buoyantPimpleFoam/hotRoomWithThermalShell/system/topoSetDict new file mode 100644 index 0000000000..c0ede11eb9 --- /dev/null +++ b/tutorials/heatTransfer/buoyantPimpleFoam/hotRoomWithThermalShell/system/topoSetDict @@ -0,0 +1,38 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2212 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object topoSetDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +actions +( + { + name f0; + type faceSet; + action new; + source patchToFace; + patches (ceiling); + } + + { + name f0; + type faceSet; + action subset; + source boxToFace; + min (5 -100 -100); + max (100 100 100); + } +); + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/0.orig/H2O b/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/0.orig/H2O new file mode 100644 index 0000000000..592ee46202 --- /dev/null +++ b/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/0.orig/H2O @@ -0,0 +1,37 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2212 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + object H2O; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 0 0 0 0 0 0]; + +internalField uniform 0.0; + +boundaryField +{ + sides + { + type inletOutlet; + inletValue $internalField; + value $internalField; + } + + "(film|wallFilm).*" + { + type zeroGradient; + } +} + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/0.orig/N2 b/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/0.orig/N2 new file mode 100644 index 0000000000..2517eba89d --- /dev/null +++ b/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/0.orig/N2 @@ -0,0 +1,37 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2212 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + object N2; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 0 0 0 0 0 0]; + +internalField uniform 0.79; + +boundaryField +{ + sides + { + type inletOutlet; + inletValue $internalField; + value $internalField; + } + + "(film|wallFilm).*" + { + type zeroGradient; + } +} + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/0.orig/O2 b/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/0.orig/O2 new file mode 100644 index 0000000000..16a2a08b5d --- /dev/null +++ b/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/0.orig/O2 @@ -0,0 +1,37 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2212 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + object O2; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 0 0 0 0 0 0]; + +internalField uniform 0.21; + +boundaryField +{ + sides + { + type inletOutlet; + inletValue $internalField; + value $internalField; + } + + "(film|wallFilm).*" + { + type zeroGradient; + } +} + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/0.orig/T b/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/0.orig/T new file mode 100644 index 0000000000..e04cdefa46 --- /dev/null +++ b/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/0.orig/T @@ -0,0 +1,38 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2212 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + object T; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 0 0 1 0 0 0]; + +internalField uniform 300; + +boundaryField +{ + sides + { + type inletOutlet; + inletValue $internalField; + value $internalField; + } + + "(film|wallFilm).*" + { + type fixedValue; + value $internalField; + } +} + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/0.orig/Tf_film b/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/0.orig/Tf_film new file mode 100644 index 0000000000..e8f66edf62 --- /dev/null +++ b/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/0.orig/Tf_film @@ -0,0 +1,30 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2212 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class areaScalarField; + object Tf_film; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 0 0 1 0 0 0]; + +internalField uniform 300; + +boundaryField +{ + sides + { + type zeroGradient; + } +} + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/0.orig/U b/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/0.orig/U new file mode 100644 index 0000000000..032780506c --- /dev/null +++ b/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/0.orig/U @@ -0,0 +1,85 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2212 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ 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 +{ + sides + { + type pressureInletOutletVelocity; + value uniform (0 0 0); + } + + "(film|wallFilm).*" + { + type velocityFilmShell; + active true; + U U; + pRef 1e5; + T0 313.15; + deltaWet 5e-5; // dry vs wet + + thermo + { + H2O; + } + + turbulence laminar; + + laminarCoeffs + { + shearStress simple; + friction quadraticProfile; // + //n 0.03;// Manning number + Cf 0; //1e-18;//0.001;//0.9; + // Gas/liquid/surface friction for DarcyWeisbach 0.0 + // the friction is with the wall + } + + injectionModels (); + + forces (perturbedTemperatureDependentContactAngle); + + perturbedTemperatureDependentContactAngleCoeffs + { + Ccf 0.4; + theta constant 0; + distribution + { + type normal; + normalDistribution + { + minValue 50; + maxValue 100; + mu 75; + sigma 100; + } + } + } + + region film; + liquidFilmModel kinematicThinFilm; + value uniform (0 0 0); + } + + #includeEtc "caseDicts/setConstraintTypes" +} + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/0.orig/Uf_film b/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/0.orig/Uf_film new file mode 100644 index 0000000000..1a18b43996 --- /dev/null +++ b/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/0.orig/Uf_film @@ -0,0 +1,32 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2212 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class areaVectorField; + object Uf_film; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 1 -1 0 0 0 0]; + +internalField uniform (0 0 0); + +boundaryField +{ + sides + { + // no-slip + type fixedValue; + value uniform (0 0 0); + } +} + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/0.orig/hf_film b/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/0.orig/hf_film new file mode 100644 index 0000000000..8ca7ae0aab --- /dev/null +++ b/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/0.orig/hf_film @@ -0,0 +1,30 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2212 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class areaScalarField; + object hf_film; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 1 0 0 0 0 0]; + +internalField uniform 0.00013; + +boundaryField +{ + sides + { + type zeroGradient; + } +} + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/0.orig/p b/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/0.orig/p new file mode 100644 index 0000000000..009dd3c19d --- /dev/null +++ b/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/0.orig/p @@ -0,0 +1,39 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2212 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + object p; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [1 -1 -2 0 0 0 0]; + +internalField uniform 100000; + +boundaryField +{ + sides + { + type calculated; + value $internalField; + } + + "(film|wallFilm).*" + { + type calculated; + value $internalField; + } + + #includeEtc "caseDicts/setConstraintTypes" +} + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/0.orig/p_rgh b/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/0.orig/p_rgh new file mode 100644 index 0000000000..1e5515109a --- /dev/null +++ b/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/0.orig/p_rgh @@ -0,0 +1,38 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2212 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + object p_rgh; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [1 -1 -2 0 0 0 0]; + +internalField uniform 100000; + +boundaryField +{ + sides + { + type totalPressure; + p0 $internalField; + } + + "(film|wallFilm).*" + { + type fixedFluxPressure; + } + + #includeEtc "caseDicts/setConstraintTypes" +} + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/Allclean b/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/Allclean new file mode 100755 index 0000000000..a206628ebe --- /dev/null +++ b/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/Allclean @@ -0,0 +1,10 @@ +#!/bin/sh +cd "${0%/*}" || exit # Run from this directory +. ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions +#------------------------------------------------------------------------------ + +cleanCase0 + +rm -f *.obj *.vtp + +#------------------------------------------------------------------------------ diff --git a/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/Allrun b/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/Allrun new file mode 100755 index 0000000000..78d5debbe7 --- /dev/null +++ b/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/Allrun @@ -0,0 +1,10 @@ +#!/bin/sh +cd "${0%/*}" || exit # Run from this directory +. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions +#------------------------------------------------------------------------------ + +./Allrun.pre + +runApplication $(getApplication) + +#------------------------------------------------------------------------------ diff --git a/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/Allrun.pre b/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/Allrun.pre new file mode 100755 index 0000000000..88e9b52450 --- /dev/null +++ b/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/Allrun.pre @@ -0,0 +1,16 @@ +#!/bin/sh +cd "${0%/*}" || exit # Run from this directory +. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions +#------------------------------------------------------------------------------ + +runApplication blockMesh + +runApplication topoSet + +runApplication createPatch -overwrite + +runApplication makeFaMesh + +restore0Dir + +#------------------------------------------------------------------------------ diff --git a/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/constant/chemistryProperties b/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/constant/chemistryProperties new file mode 100644 index 0000000000..7ecb40e7c1 --- /dev/null +++ b/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/constant/chemistryProperties @@ -0,0 +1,27 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2212 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object chemistryProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +chemistryType +{ + solver noChemistrySolver; +} + +chemistry off; + +initialChemicalTimeStep 1e-07; + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/constant/combustionProperties b/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/constant/combustionProperties new file mode 100644 index 0000000000..da7dc07f7f --- /dev/null +++ b/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/constant/combustionProperties @@ -0,0 +1,20 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2212 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object combustionProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +combustionModel none; + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/constant/foam.dat b/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/constant/foam.dat new file mode 100644 index 0000000000..7da282584e --- /dev/null +++ b/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/constant/foam.dat @@ -0,0 +1,81 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2212 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object foam.dat; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +O2 +{ + specie + { + molWeight 31.9988; + } + thermodynamics + { + Tlow 200; + Thigh 5000; + Tcommon 1000; + highCpCoeffs ( 3.69758 0.00061352 -1.25884e-07 1.77528e-11 -1.13644e-15 -1233.93 3.18917 ); + lowCpCoeffs ( 3.21294 0.00112749 -5.75615e-07 1.31388e-09 -8.76855e-13 -1005.25 6.03474 ); + } + transport + { + As 1.67212e-06; + Ts 170.672; + } +} + +H2O +{ + specie + { + molWeight 18.0153; + } + thermodynamics + { + Tlow 200; + Thigh 5000; + Tcommon 1000; + highCpCoeffs ( 2.67215 0.00305629 -8.73026e-07 1.201e-10 -6.39162e-15 -29899.2 6.86282 ); + lowCpCoeffs ( 3.38684 0.00347498 -6.3547e-06 6.96858e-09 -2.50659e-12 -30208.1 2.59023 ); + } + transport + { + As 1.67212e-06; + Ts 170.672; + } +} + +N2 +{ + specie + { + molWeight 28.0134; + } + thermodynamics + { + Tlow 200; + Thigh 5000; + Tcommon 1000; + highCpCoeffs ( 2.92664 0.00148798 -5.68476e-07 1.0097e-10 -6.75335e-15 -922.798 5.98053 ); + lowCpCoeffs ( 3.29868 0.00140824 -3.96322e-06 5.64152e-09 -2.44486e-12 -1020.9 3.95037 ); + } + transport + { + As 1.67212e-06; + Ts 170.672; + } +} + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/constant/foam.inp b/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/constant/foam.inp new file mode 100644 index 0000000000..fff06b38e5 --- /dev/null +++ b/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/constant/foam.inp @@ -0,0 +1,10 @@ +species +( + O2 + H2O + N2 +) +; + +reactions +{} diff --git a/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/constant/g b/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/constant/g new file mode 100644 index 0000000000..7d7d5e0b76 --- /dev/null +++ b/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/constant/g @@ -0,0 +1,21 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2212 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class uniformDimensionedVectorField; + object g; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 1 -2 0 0 0 0]; +value (0 0 -9.81); + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/constant/parcelInjectionProperties b/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/constant/parcelInjectionProperties new file mode 100644 index 0000000000..d75747d45a --- /dev/null +++ b/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/constant/parcelInjectionProperties @@ -0,0 +1,23 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2212 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object parcelInjectionProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +// (x y z) (u v w) d rho mDot T cp (Y0..Y2) (Yg0..YgN) (Yl0..YlN) (Ys0..YsN) +( + (0.050 0.025 0.09) (0 0 -5) 0.001 1000 0.002 300 4200 (0 1 0) () (1) () +); + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/constant/radiationProperties b/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/constant/radiationProperties new file mode 100644 index 0000000000..a462983d60 --- /dev/null +++ b/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/constant/radiationProperties @@ -0,0 +1,22 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2212 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object radiationProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +radiation off; + +radiationModel none; + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/constant/reactingCloud1Properties b/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/constant/reactingCloud1Properties new file mode 100644 index 0000000000..1f10ca109d --- /dev/null +++ b/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/constant/reactingCloud1Properties @@ -0,0 +1,165 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2212 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object reactingCloud1Properties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +solution +{ + active true; + coupled no; + transient yes; + cellValueSourceCorrection no; + maxCo 0.3; + + sourceTerms + { + schemes + { + rho explicit 1; + U explicit 1; + Yi explicit 1; + h explicit 1; + radiation explicit 1; + } + } + + interpolationSchemes + { + rho cell; + U cellPoint; + thermo:mu cell; + T cell; + Cp cell; + kappa cell; + p cell; + } + + integrationSchemes + { + U Euler; + T analytical; + } +} + +constantProperties +{ + rho0 1000; + T0 300; + Cp0 4187; + + constantVolume false; +} + +subModels +{ + particleForces + { + sphereDrag; + gravity; + } + + injectionModels + { + model1 + { + type reactingMultiphaseLookupTableInjection; + massTotal 0.1; + parcelBasisType mass; + SOI 0.01; + inputFile "parcelInjectionProperties"; + duration 10.0; + parcelsPerSecond 200; + randomise true; + } + } + + dispersionModel none; + + patchInteractionModel standardWallInteraction; + + heatTransferModel none; + + compositionModel singleMixtureFraction; + + phaseChangeModel none; + + devolatilisationModel none; + + surfaceReactionModel none; + + stochasticCollisionModel none; + + surfaceFilmModel thermoSurfaceFilm; + + radiation off; + + standardWallInteractionCoeffs + { + type rebound; + } + + singleMixtureFractionCoeffs + { + phases + ( + gas + { + } + liquid + { + H2O 1; + } + solid + { + } + ); + YGasTot0 0; + YLiquidTot0 1; + YSolidTot0 0; + } + + thermoSurfaceFilmCoeffs + { + interactionType splashBai; + deltaWet 0.0005; + Adry 2630; + Awet 1320; + Cf 0.6; + } +} + + +cloudFunctions +{ + particleCollector1 + { + type particleCollector; + + mode concentricCircle; + origin (0.05 0.025 0.005); + radius (0.01 0.025 0.05); + nSector 10; + refDir (1 0 0); + normal (0 0 1); + + negateParcelsOppositeNormal no; + removeCollected no; + surfaceFormat vtk; + resetOnWrite no; + log yes; + } +} + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/constant/surfaceFilmProperties.remove b/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/constant/surfaceFilmProperties.remove new file mode 100644 index 0000000000..49e5021984 --- /dev/null +++ b/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/constant/surfaceFilmProperties.remove @@ -0,0 +1,76 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2212 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object surfaceFilmProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +surfaceFilmModel thermoSingleLayer; + +region wallFilmRegion; + +active true; + +thermoSingleLayerCoeffs +{ + filmThermoModel liquid; + + liquidCoeffs + { + useReferenceValues no; + liquid H2O; + } + + filmViscosityModel liquid; + + deltaWet 2e-4; + hydrophilic no; + + turbulence laminar; + laminarCoeffs + { + Cf 0.005; + } + + forces + ( + thermocapillary + ); + + injectionModels + (); + + phaseChangeModel none; + + radiationModel none; + + upperSurfaceModels + { + heatTransferModel constant; + constantCoeffs + { + c0 1e-8; + } + } + + lowerSurfaceModels + { + heatTransferModel constant; + constantCoeffs + { + c0 1e-8; + } + } +} + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/constant/thermophysicalProperties b/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/constant/thermophysicalProperties new file mode 100644 index 0000000000..4c3be49c52 --- /dev/null +++ b/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/constant/thermophysicalProperties @@ -0,0 +1,45 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2212 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object thermophysicalProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +thermoType +{ + type heRhoThermo; + mixture reactingMixture; + transport sutherland; + thermo janaf; + energy sensibleEnthalpy; + equationOfState perfectGas; + specie specie; +} + +chemistryReader foamChemistryReader; + +foamChemistryFile "/foam.inp"; + +foamChemistryThermoFile "/foam.dat"; + +inertSpecie N2; + +liquids +{ + H2O; +} + +solids +{} + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/constant/turbulenceProperties b/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/constant/turbulenceProperties new file mode 100644 index 0000000000..23e2871af7 --- /dev/null +++ b/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/constant/turbulenceProperties @@ -0,0 +1,20 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2212 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object turbulenceProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +simulationType laminar; + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/system/blockMeshDict b/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/system/blockMeshDict new file mode 100644 index 0000000000..b073d47479 --- /dev/null +++ b/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/system/blockMeshDict @@ -0,0 +1,76 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2212 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object blockMeshDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +scale 0.1; + +vertices +( + //back + ( 0 0 0) + ( 1 0 0) + ( 0 0.5 0) + ( 1 0.5 0) + + // front + ( 0 0 1) + ( 1 0 1) + ( 0 0.5 1) + ( 1 0.5 1) +); + +blocks +( + hex (0 1 3 2 4 5 7 6 ) (20 10 20) simpleGrading (1 1 1) +); + +edges +( +); + +boundary +( + sides + { + type patch; + faces + ( + (1 5 7 3) + (4 5 7 6) + (4 0 2 6) + (7 3 2 6) + (0 4 5 1) + ); + } + filmWalls + { + type wall; + faces + ( + (0 1 3 2) + ); + } + filmWalls2 + { + type wall; + faces (); + } +); + +mergePatchPairs +( +); + +// ************************************************************************* // diff --git a/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/system/controlDict b/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/system/controlDict new file mode 100644 index 0000000000..016534884a --- /dev/null +++ b/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/system/controlDict @@ -0,0 +1,54 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2212 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object controlDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +application reactingParcelFoam; + +startFrom latestTime; + +startTime 0; + +stopAt endTime; + +endTime 1; + +deltaT 1e-04; + +writeControl adjustable; + +writeInterval 0.01; + +purgeWrite 0; + +writeFormat ascii; + +writePrecision 10; + +writeCompression off; + +timeFormat general; + +timePrecision 6; + +runTimeModifiable yes; + +adjustTimeStep yes; + +maxCo 0.3; + +maxDeltaT 1e-03; + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/system/createPatchDict b/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/system/createPatchDict new file mode 100644 index 0000000000..14aadbbaeb --- /dev/null +++ b/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/system/createPatchDict @@ -0,0 +1,41 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2212 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object createPatchDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +pointSync false; + +// Patches to create. +patches +( + { + // Name of new patch + name filmWalls2; + + // Type of new patch + patchInfo + { + type patch; + } + + // How to construct: either from 'patches' or 'set' + constructFrom set; + + // If constructFrom = set : name of faceSet + set f0; + } +); + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/system/faMeshDefinition b/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/system/faMeshDefinition new file mode 100644 index 0000000000..3b5f6a2ef7 --- /dev/null +++ b/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/system/faMeshDefinition @@ -0,0 +1,29 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2212 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object faMeshDefinition; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +polyMeshPatches ( "film.*" "wallFilm.*" ); + +boundary +{ + sides + { + type patch; + neighbourPolyPatch sides; + } +} + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/system/fvSchemes b/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/system/fvSchemes new file mode 100644 index 0000000000..33b2f8ecf6 --- /dev/null +++ b/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/system/fvSchemes @@ -0,0 +1,57 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2212 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object fvSchemes; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +ddtSchemes +{ + default Euler; +} + +gradSchemes +{ + default Gauss linear; + grad(p) Gauss linear; +} + +divSchemes +{ + default none; + div(phi,U) Gauss upwind; + div(phi,K) Gauss upwind; + div(phi,h) Gauss upwind; + div(phi,k) Gauss upwind; + div(phi,epsilon) Gauss upwind; + div(U) Gauss linear; + div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear; + div(phi,Yi_h) Gauss upwind; +} + +laplacianSchemes +{ + default Gauss linear uncorrected; +} + +interpolationSchemes +{ + default linear; +} + +snGradSchemes +{ + default uncorrected; +} + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/system/fvSolution b/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/system/fvSolution new file mode 100644 index 0000000000..c163b887e6 --- /dev/null +++ b/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/system/fvSolution @@ -0,0 +1,99 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2212 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object fvSolution; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +solvers +{ + "(rho|G)" + { + solver PCG; + preconditioner DIC; + tolerance 0; + relTol 0.1; + } + + "(rho|G)Final" + { + $rho; + tolerance 1e-05; + relTol 0; + } + + U + { + solver smoothSolver; + smoother symGaussSeidel; + tolerance 0; + relTol 0.1; + maxIter 50; + } + + UFinal + { + $U; + relTol 0; + tolerance 1e-05; + } + + p_rgh + { + solver GAMG; + tolerance 0; + relTol 0.01; + smoother GaussSeidel; + maxIter 50; + } + + p_rghFinal + { + $p_rgh; + tolerance 1e-05; + relTol 0; + } + + "(h|Yi|O2|N2|H2O)" + { + solver PBiCGStab; + preconditioner DILU; + tolerance 1e-6; + relTol 0; + } + + hFinal + { + solver PBiCGStab; + preconditioner DILU; + tolerance 1e-6; + relTol 0; + } +} + +PIMPLE +{ + nCorrectors 2; + nNonOrthogonalCorrectors 0; + momentumPredictor yes; +} + +relaxationFactors +{ + equations + { + ".*" 1; + } +} + + +// ************************************************************************* // diff --git a/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/system/topoSetDict b/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/system/topoSetDict new file mode 100644 index 0000000000..75342edf61 --- /dev/null +++ b/tutorials/lagrangian/reactingParcelFoam/splashPanelFilm/system/topoSetDict @@ -0,0 +1,38 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2212 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object topoSetDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +actions +( + { + name f0; + type faceSet; + action new; + source patchToFace; + patches (filmWalls); + } + + { + name f0; + type faceSet; + action subset; + source boxToFace; + min (0.05 -100 -100); + max (100 100 100); + } +); + + +// ************************************************************************* //