From 28305bbb2b375e4935c2afc985ee0c791c28af3e Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Sun, 30 Apr 2023 18:49:00 +0100 Subject: [PATCH] tutorials/modules/multiRegion/film/cylinder: New Lagrangian->film tutorial case equivalent to the tutorials/modules/multicomponentFluid/cylinder except that a 70deg contact-angle is applied to the film on the wall. --- .../multiRegion/film/cylinder/0/film/T | 45 ++++++ .../multiRegion/film/cylinder/0/film/U | 46 ++++++ .../multiRegion/film/cylinder/0/film/delta | 52 +++++++ .../multiRegion/film/cylinder/0/film/p | 45 ++++++ .../multiRegion/film/cylinder/0/fluid/H2O | 40 +++++ .../multiRegion/film/cylinder/0/fluid/N2 | 41 +++++ .../multiRegion/film/cylinder/0/fluid/O2 | 40 +++++ .../multiRegion/film/cylinder/0/fluid/T | 42 +++++ .../multiRegion/film/cylinder/0/fluid/U | 41 +++++ .../multiRegion/film/cylinder/0/fluid/p | 42 +++++ .../multiRegion/film/cylinder/0/fluid/p_rgh | 40 +++++ .../modules/multiRegion/film/cylinder/Allrun | 31 ++++ .../film/cylinder/constant/film/fvModels | 24 +++ .../multiRegion/film/cylinder/constant/film/g | 20 +++ .../cylinder/constant/film/momentumTransport | 19 +++ .../constant/film/physicalProperties} | 70 ++------- .../cylinder/constant/fluid/cloudProperties | 133 ++++++++++++++++ .../film/cylinder/constant/fluid/fvModels | 23 +++ .../film/cylinder/constant/fluid/g | 21 +++ .../cylinder/constant/fluid/momentumTransport | 20 +++ .../constant/fluid/parcelInjectionProperties | 24 +++ .../constant/fluid/physicalProperties | 41 +++++ .../cylinder/constant/fluid/speciesThermo | 72 +++++++++ .../film/cylinder/system/controlDict | 60 ++++++++ .../film/cylinder/system/extrudeMeshDict | 36 +++++ .../film/cylinder/system/film/blockMeshDict | 143 ++++++++++++++++++ .../film/cylinder/system/film/fvSchemes | 47 ++++++ .../film/cylinder/system/film/fvSolution | 55 +++++++ .../film/cylinder/system/fluid/blockMeshDict | 143 ++++++++++++++++++ .../cylinder/system/fluid/decomposeParDict | 22 +++ .../system/fluid/extrudeToRegionMeshDict | 33 ++++ .../film/cylinder/system/fluid/fvSchemes | 58 +++++++ .../film/cylinder/system/fluid/fvSolution | 99 ++++++++++++ .../film/cylinder/system/fvSchemes | 30 ++++ .../film/cylinder/system/fvSolution | 21 +++ .../cylinder/constant/cloudProperties | 2 +- 36 files changed, 1666 insertions(+), 55 deletions(-) create mode 100644 tutorials/modules/multiRegion/film/cylinder/0/film/T create mode 100644 tutorials/modules/multiRegion/film/cylinder/0/film/U create mode 100644 tutorials/modules/multiRegion/film/cylinder/0/film/delta create mode 100644 tutorials/modules/multiRegion/film/cylinder/0/film/p create mode 100644 tutorials/modules/multiRegion/film/cylinder/0/fluid/H2O create mode 100644 tutorials/modules/multiRegion/film/cylinder/0/fluid/N2 create mode 100644 tutorials/modules/multiRegion/film/cylinder/0/fluid/O2 create mode 100644 tutorials/modules/multiRegion/film/cylinder/0/fluid/T create mode 100644 tutorials/modules/multiRegion/film/cylinder/0/fluid/U create mode 100644 tutorials/modules/multiRegion/film/cylinder/0/fluid/p create mode 100644 tutorials/modules/multiRegion/film/cylinder/0/fluid/p_rgh create mode 100755 tutorials/modules/multiRegion/film/cylinder/Allrun create mode 100644 tutorials/modules/multiRegion/film/cylinder/constant/film/fvModels create mode 100644 tutorials/modules/multiRegion/film/cylinder/constant/film/g create mode 100644 tutorials/modules/multiRegion/film/cylinder/constant/film/momentumTransport rename tutorials/modules/multiRegion/film/{cylinderVoF/constant/VoF/surfaceFilmProperties => cylinder/constant/film/physicalProperties} (50%) create mode 100644 tutorials/modules/multiRegion/film/cylinder/constant/fluid/cloudProperties create mode 100644 tutorials/modules/multiRegion/film/cylinder/constant/fluid/fvModels create mode 100644 tutorials/modules/multiRegion/film/cylinder/constant/fluid/g create mode 100644 tutorials/modules/multiRegion/film/cylinder/constant/fluid/momentumTransport create mode 100644 tutorials/modules/multiRegion/film/cylinder/constant/fluid/parcelInjectionProperties create mode 100644 tutorials/modules/multiRegion/film/cylinder/constant/fluid/physicalProperties create mode 100644 tutorials/modules/multiRegion/film/cylinder/constant/fluid/speciesThermo create mode 100644 tutorials/modules/multiRegion/film/cylinder/system/controlDict create mode 100644 tutorials/modules/multiRegion/film/cylinder/system/extrudeMeshDict create mode 100644 tutorials/modules/multiRegion/film/cylinder/system/film/blockMeshDict create mode 100644 tutorials/modules/multiRegion/film/cylinder/system/film/fvSchemes create mode 100644 tutorials/modules/multiRegion/film/cylinder/system/film/fvSolution create mode 100644 tutorials/modules/multiRegion/film/cylinder/system/fluid/blockMeshDict create mode 100644 tutorials/modules/multiRegion/film/cylinder/system/fluid/decomposeParDict create mode 100644 tutorials/modules/multiRegion/film/cylinder/system/fluid/extrudeToRegionMeshDict create mode 100644 tutorials/modules/multiRegion/film/cylinder/system/fluid/fvSchemes create mode 100644 tutorials/modules/multiRegion/film/cylinder/system/fluid/fvSolution create mode 100644 tutorials/modules/multiRegion/film/cylinder/system/fvSchemes create mode 100644 tutorials/modules/multiRegion/film/cylinder/system/fvSolution diff --git a/tutorials/modules/multiRegion/film/cylinder/0/film/T b/tutorials/modules/multiRegion/film/cylinder/0/film/T new file mode 100644 index 0000000000..16b4a9bf6c --- /dev/null +++ b/tutorials/modules/multiRegion/film/cylinder/0/film/T @@ -0,0 +1,45 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Version: dev + \\/ M anipulation | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + format ascii; + class volScalarField; + location "0/wallFilm"; + object T; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 0 0 1 0 0 0]; + +internalField uniform 300; + +boundaryField +{ + surface + { + type coupledTemperature; + value $internalField; + } + + wall + { + type zeroGradient; + } + + sides + { + type zeroGradient; + } + + frontAndBack + { + type zeroGradient; + } +} + +// ************************************************************************* // diff --git a/tutorials/modules/multiRegion/film/cylinder/0/film/U b/tutorials/modules/multiRegion/film/cylinder/0/film/U new file mode 100644 index 0000000000..0e33abd62f --- /dev/null +++ b/tutorials/modules/multiRegion/film/cylinder/0/film/U @@ -0,0 +1,46 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Version: dev + \\/ M anipulation | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + format ascii; + class volVectorField; + location "0/wallFilm"; + object U; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 1 -1 0 0 0 0]; + +internalField uniform (0 0 0); + +boundaryField +{ + surface + { + type filmSurfaceVelocity; + Cs 0.005; + value $internalField; + } + + wall + { + type noSlip; + } + + sides + { + type noSlip; + } + + frontAndBack + { + type slip; + } +} + +// ************************************************************************* // diff --git a/tutorials/modules/multiRegion/film/cylinder/0/film/delta b/tutorials/modules/multiRegion/film/cylinder/0/film/delta new file mode 100644 index 0000000000..7a65837348 --- /dev/null +++ b/tutorials/modules/multiRegion/film/cylinder/0/film/delta @@ -0,0 +1,52 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Version: dev + \\/ M anipulation | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + format ascii; + class volScalarField; + location "0/wallFilm"; + object delta; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 1 0 0 0 0 0]; + +internalField uniform 0; + +boundaryField +{ + surface + { + type zeroGradient; + } + + wall + { + type filmContactAngle; + + contactAngle + { + type constant; + theta0 70; + } + + value $internalField; + } + + sides + { + type zeroGradient; + } + + frontAndBack + { + type zeroGradient; + } +} + +// ************************************************************************* // diff --git a/tutorials/modules/multiRegion/film/cylinder/0/film/p b/tutorials/modules/multiRegion/film/cylinder/0/film/p new file mode 100644 index 0000000000..c53a983d34 --- /dev/null +++ b/tutorials/modules/multiRegion/film/cylinder/0/film/p @@ -0,0 +1,45 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Version: dev + \\/ M anipulation | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + format ascii; + class volScalarField; + object p; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [1 -1 -2 0 0 0 0]; + +internalField uniform 1e5; + +boundaryField +{ + surface + { + type mappedFilmPressure; + value $internalField; + } + + wall + { + type zeroGradient; + } + + sides + { + type zeroGradient; + } + + frontAndBack + { + type zeroGradient; + } +} + + +// ************************************************************************* // diff --git a/tutorials/modules/multiRegion/film/cylinder/0/fluid/H2O b/tutorials/modules/multiRegion/film/cylinder/0/fluid/H2O new file mode 100644 index 0000000000..9f02c168b8 --- /dev/null +++ b/tutorials/modules/multiRegion/film/cylinder/0/fluid/H2O @@ -0,0 +1,40 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Version: dev + \\/ M anipulation | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + format ascii; + class volScalarField; + location "0"; + object H2O; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 0 0 0 0 0 0]; + +internalField uniform 0; + +boundaryField +{ + film + { + type zeroGradient; + } + + "(sides|frontAndBack)" + { + type zeroGradient; + } + + top + { + type inletOutlet; + inletValue $internalField; + } +} + +// ************************************************************************* // diff --git a/tutorials/modules/multiRegion/film/cylinder/0/fluid/N2 b/tutorials/modules/multiRegion/film/cylinder/0/fluid/N2 new file mode 100644 index 0000000000..4d61cf60e5 --- /dev/null +++ b/tutorials/modules/multiRegion/film/cylinder/0/fluid/N2 @@ -0,0 +1,41 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Version: dev + \\/ M anipulation | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + format ascii; + class volScalarField; + location "0"; + object N2; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 0 0 0 0 0 0]; + +internalField uniform 0.77; + +boundaryField +{ + film + { + type zeroGradient; + } + + "(sides|frontAndBack)" + { + type zeroGradient; + } + + top + { + type inletOutlet; + inletValue $internalField; + } +} + + +// ************************************************************************* // diff --git a/tutorials/modules/multiRegion/film/cylinder/0/fluid/O2 b/tutorials/modules/multiRegion/film/cylinder/0/fluid/O2 new file mode 100644 index 0000000000..d574b9dcfd --- /dev/null +++ b/tutorials/modules/multiRegion/film/cylinder/0/fluid/O2 @@ -0,0 +1,40 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Version: dev + \\/ M anipulation | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + format ascii; + class volScalarField; + location "0"; + object O2; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 0 0 0 0 0 0]; + +internalField uniform 0.23; + +boundaryField +{ + film + { + type zeroGradient; + } + + "(sides|frontAndBack)" + { + type zeroGradient; + } + + top + { + type inletOutlet; + inletValue $internalField; + } +} + +// ************************************************************************* // diff --git a/tutorials/modules/multiRegion/film/cylinder/0/fluid/T b/tutorials/modules/multiRegion/film/cylinder/0/fluid/T new file mode 100644 index 0000000000..c4ffe96e27 --- /dev/null +++ b/tutorials/modules/multiRegion/film/cylinder/0/fluid/T @@ -0,0 +1,42 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Version: dev + \\/ M anipulation | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + format ascii; + class volScalarField; + location "0"; + object T; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 0 0 1 0 0 0]; + +internalField uniform 300; + +boundaryField +{ + film + { + type coupledTemperature; + value $internalField; + } + + "(sides|frontAndBack)" + { + type fixedValue; + value uniform 300; + } + + top + { + type inletOutlet; + inletValue $internalField; + } +} + +// ************************************************************************* // diff --git a/tutorials/modules/multiRegion/film/cylinder/0/fluid/U b/tutorials/modules/multiRegion/film/cylinder/0/fluid/U new file mode 100644 index 0000000000..9a8640daf7 --- /dev/null +++ b/tutorials/modules/multiRegion/film/cylinder/0/fluid/U @@ -0,0 +1,41 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Version: dev + \\/ M anipulation | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + format ascii; + class volVectorField; + location "0"; + object U; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 1 -1 0 0 0 0]; + +internalField uniform (0 0 0); + +boundaryField +{ + film + { + type mappedValue; + value $internalField; + } + + "(sides|frontAndBack)" + { + type noSlip; + } + + top + { + type pressureInletOutletVelocity; + value $internalField; + } +} + +// ************************************************************************* // diff --git a/tutorials/modules/multiRegion/film/cylinder/0/fluid/p b/tutorials/modules/multiRegion/film/cylinder/0/fluid/p new file mode 100644 index 0000000000..b501f31a9e --- /dev/null +++ b/tutorials/modules/multiRegion/film/cylinder/0/fluid/p @@ -0,0 +1,42 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Version: dev + \\/ M anipulation | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + format ascii; + class volScalarField; + location "0"; + object p; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [1 -1 -2 0 0 0 0]; + +internalField uniform 1e5; + +boundaryField +{ + film + { + type calculated; + value $internalField; + } + + "(sides|frontAndBack)" + { + type calculated; + value $internalField; + } + + top + { + type calculated; + value $internalField; + } +} + +// ************************************************************************* // diff --git a/tutorials/modules/multiRegion/film/cylinder/0/fluid/p_rgh b/tutorials/modules/multiRegion/film/cylinder/0/fluid/p_rgh new file mode 100644 index 0000000000..d700dc195b --- /dev/null +++ b/tutorials/modules/multiRegion/film/cylinder/0/fluid/p_rgh @@ -0,0 +1,40 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Version: dev + \\/ M anipulation | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + format ascii; + class volScalarField; + location "0"; + object p_rgh; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [1 -1 -2 0 0 0 0]; + +internalField uniform 1e5; + +boundaryField +{ + film + { + type fixedFluxPressure; + } + + "(sides|frontAndBack)" + { + type fixedFluxPressure; + } + + top + { + type prghTotalPressure; + p0 $internalField; + } +} + +// ************************************************************************* // diff --git a/tutorials/modules/multiRegion/film/cylinder/Allrun b/tutorials/modules/multiRegion/film/cylinder/Allrun new file mode 100755 index 0000000000..ba891bdaaf --- /dev/null +++ b/tutorials/modules/multiRegion/film/cylinder/Allrun @@ -0,0 +1,31 @@ +#!/bin/sh +cd ${0%/*} || exit 1 # Run from this directory + +. $WM_PROJECT_DIR/bin/tools/RunFunctions + +runApplication -s fluid blockMesh -region fluid +runApplication -s film blockMesh -dict system/film/blockMeshDict +runApplication extrudeMesh -region film + +runApplication -s fluid foamDictionary -set \ + "entry0/film/type=mappedExtrudedWall, \ + entry0/film/neighbourRegion=film, \ + entry0/film/neighbourPatch=surface, \ + entry0/film/transformType=none" \ + constant/fluid/polyMesh/boundary + +runApplication -s film foamDictionary -set \ + "entry0/surface/type=mappedFilmSurface, \ + entry0/surface/neighbourRegion=fluid, \ + entry0/surface/neighbourPatch=film, \ + entry0/surface/oppositePatch=wall, \ + entry0/surface/transformType=none" \ + constant/film/polyMesh/boundary + +printf "\n%s\n" "Creating files for paraview post-processing" +paraFoam -touchAll +echo + +runApplication $(getApplication) + +#------------------------------------------------------------------------------ diff --git a/tutorials/modules/multiRegion/film/cylinder/constant/film/fvModels b/tutorials/modules/multiRegion/film/cylinder/constant/film/fvModels new file mode 100644 index 0000000000..255ed083c0 --- /dev/null +++ b/tutorials/modules/multiRegion/film/cylinder/constant/film/fvModels @@ -0,0 +1,24 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Version: dev + \\/ M anipulation | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + format ascii; + class dictionary; + location "constant"; + object fvModels; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +filmCloudTransfer +{ + type filmCloudTransfer; + + libs ("libfilmCloudTransfer.so"); +} + +// ************************************************************************* // diff --git a/tutorials/modules/multiRegion/film/cylinder/constant/film/g b/tutorials/modules/multiRegion/film/cylinder/constant/film/g new file mode 100644 index 0000000000..5b7d3ef780 --- /dev/null +++ b/tutorials/modules/multiRegion/film/cylinder/constant/film/g @@ -0,0 +1,20 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Version: dev + \\/ M anipulation | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + format ascii; + class uniformDimensionedVectorField; + location "constant"; + object g; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 1 -2 0 0 0 0]; +value (0 -9.81 0); + +// ************************************************************************* // diff --git a/tutorials/modules/multiRegion/film/cylinder/constant/film/momentumTransport b/tutorials/modules/multiRegion/film/cylinder/constant/film/momentumTransport new file mode 100644 index 0000000000..7c2dc8837b --- /dev/null +++ b/tutorials/modules/multiRegion/film/cylinder/constant/film/momentumTransport @@ -0,0 +1,19 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Version: dev + \\/ M anipulation | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + format ascii; + class dictionary; + location "constant"; + object momentumTransport; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +simulationType laminar; + +// ************************************************************************* // diff --git a/tutorials/modules/multiRegion/film/cylinderVoF/constant/VoF/surfaceFilmProperties b/tutorials/modules/multiRegion/film/cylinder/constant/film/physicalProperties similarity index 50% rename from tutorials/modules/multiRegion/film/cylinderVoF/constant/VoF/surfaceFilmProperties rename to tutorials/modules/multiRegion/film/cylinder/constant/film/physicalProperties index c96cd74fc6..7c9cebb25c 100644 --- a/tutorials/modules/multiRegion/film/cylinderVoF/constant/VoF/surfaceFilmProperties +++ b/tutorials/modules/multiRegion/film/cylinder/constant/film/physicalProperties @@ -10,67 +10,29 @@ FoamFile format ascii; class dictionary; location "constant"; - object SurfaceFilmProperties; + object physicalProperties; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -regionName film; - -phase liquid; - -viscosity +thermoType { - model Newtonian; + type heRhoThermo; + mixture pureMixture; + properties liquid; + energy sensibleInternalEnergy; } -sigma 0.07; +mixture +{ + H2O; +} + +sigma +{ + type constant; + sigma 0.07; +} deltaWet 1e-4; -hydrophilic no; - -transfer -{ - VoFPatchTransfer - { - deltaFactorToVoF 0.2; - alphaToVoF 0.2; - - deltaFactorToFilm 0; - alphaToFilm 0; - - transferRateCoeff 0.1; - } -} - -momentumTransport -{ - model laminar; - Cf 0.005; -} - -forces -{ - thermocapillary; -} - -upperSurfaceModels -{ - heatTransfer - { - model constant; - c0 1e-8; - } -} - -lowerSurfaceModels -{ - heatTransfer - { - model constant; - c0 1e-8; - } -} - - // ************************************************************************* // diff --git a/tutorials/modules/multiRegion/film/cylinder/constant/fluid/cloudProperties b/tutorials/modules/multiRegion/film/cylinder/constant/fluid/cloudProperties new file mode 100644 index 0000000000..56551b86b8 --- /dev/null +++ b/tutorials/modules/multiRegion/film/cylinder/constant/fluid/cloudProperties @@ -0,0 +1,133 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Version: dev + \\/ M anipulation | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + format ascii; + class dictionary; + location "constant"; + object cloudProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +type reactingCloud; + +libs ("libfilmCloudTransfer.so"); + +solution +{ + 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; + 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 reactingLookupTableInjection; + massTotal 0.5; + parcelBasisType mass; + SOI 0; + inputFile "parcelInjectionProperties"; + duration 20.0; + parcelsPerSecond 50; + randomise true; + } + } + + dispersionModel none; + + patchInteractionModel standardWallInteraction; + + heatTransferModel none; + + compositionModel singlePhaseMixture; + + phaseChangeModel none; + + stochasticCollisionModel none; + + surfaceFilmModel cloudFilmTransfer; + + radiation off; + + standardWallInteractionCoeffs + { + type rebound; + } + + singlePhaseMixtureCoeffs + { + phases + ( + liquid + { + H2O 1; + } + ); + } + + cloudFilmTransferCoeffs + { + interactionType absorb; + } +} + + +cloudFunctions +{} + + +// ************************************************************************* // diff --git a/tutorials/modules/multiRegion/film/cylinder/constant/fluid/fvModels b/tutorials/modules/multiRegion/film/cylinder/constant/fluid/fvModels new file mode 100644 index 0000000000..cf1e065c83 --- /dev/null +++ b/tutorials/modules/multiRegion/film/cylinder/constant/fluid/fvModels @@ -0,0 +1,23 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Version: dev + \\/ M anipulation | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + format ascii; + class dictionary; + location "constant"; + object fvModels; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +clouds +{ + type clouds; + libs ("liblagrangianParcel.so"); +} + +// ************************************************************************* // diff --git a/tutorials/modules/multiRegion/film/cylinder/constant/fluid/g b/tutorials/modules/multiRegion/film/cylinder/constant/fluid/g new file mode 100644 index 0000000000..770a56192e --- /dev/null +++ b/tutorials/modules/multiRegion/film/cylinder/constant/fluid/g @@ -0,0 +1,21 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Version: dev + \\/ M anipulation | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + format ascii; + class uniformDimensionedVectorField; + location "constant"; + object g; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 1 -2 0 0 0 0]; +value (0 -9.81 0); + + +// ************************************************************************* // diff --git a/tutorials/modules/multiRegion/film/cylinder/constant/fluid/momentumTransport b/tutorials/modules/multiRegion/film/cylinder/constant/fluid/momentumTransport new file mode 100644 index 0000000000..8278c989ec --- /dev/null +++ b/tutorials/modules/multiRegion/film/cylinder/constant/fluid/momentumTransport @@ -0,0 +1,20 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Version: dev + \\/ M anipulation | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + format ascii; + class dictionary; + location "constant"; + object momentumTransport; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +simulationType laminar; + + +// ************************************************************************* // diff --git a/tutorials/modules/multiRegion/film/cylinder/constant/fluid/parcelInjectionProperties b/tutorials/modules/multiRegion/film/cylinder/constant/fluid/parcelInjectionProperties new file mode 100644 index 0000000000..8d7cd1ba90 --- /dev/null +++ b/tutorials/modules/multiRegion/film/cylinder/constant/fluid/parcelInjectionProperties @@ -0,0 +1,24 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Version: dev + \\/ M anipulation | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + format ascii; + class dictionary; + location "constant"; + object scalarListList; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // +// (x y z) (u v w) d rho mDot T Cp (Y0..Y2) +( + (0 1.95 -0.2) (0 -5 0) 0.001 1000 0.002 300 4200 (1) + (0 1.95 0) (0 -5 0) 0.001 1000 0.002 300 4200 (1) + (0 1.95 0.2) (0 -5 0) 0.001 1000 0.002 300 4200 (1) +); + + +// ************************************************************************* // diff --git a/tutorials/modules/multiRegion/film/cylinder/constant/fluid/physicalProperties b/tutorials/modules/multiRegion/film/cylinder/constant/fluid/physicalProperties new file mode 100644 index 0000000000..dd9a543d5b --- /dev/null +++ b/tutorials/modules/multiRegion/film/cylinder/constant/fluid/physicalProperties @@ -0,0 +1,41 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Version: dev + \\/ M anipulation | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + format ascii; + class dictionary; + location "constant"; + object physicalProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +thermoType +{ + type heRhoThermo; + mixture multicomponentMixture; + transport sutherland; + thermo janaf; + energy sensibleEnthalpy; + equationOfState perfectGas; + specie specie; +} + +#include "speciesThermo" + +defaultSpecie N2; + +liquids +{ + H2O; +} + +solids +{} + + +// ************************************************************************* // diff --git a/tutorials/modules/multiRegion/film/cylinder/constant/fluid/speciesThermo b/tutorials/modules/multiRegion/film/cylinder/constant/fluid/speciesThermo new file mode 100644 index 0000000000..1c990e67a4 --- /dev/null +++ b/tutorials/modules/multiRegion/film/cylinder/constant/fluid/speciesThermo @@ -0,0 +1,72 @@ +species +( + O2 + H2O + N2 +); + +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/modules/multiRegion/film/cylinder/system/controlDict b/tutorials/modules/multiRegion/film/cylinder/system/controlDict new file mode 100644 index 0000000000..2150b2f3f9 --- /dev/null +++ b/tutorials/modules/multiRegion/film/cylinder/system/controlDict @@ -0,0 +1,60 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Version: dev + \\/ M anipulation | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + format ascii; + class dictionary; + location "system"; + object controlDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +application foamMultiRun; + +regionSolvers +{ + fluid multicomponentFluid; + film film; +} + +startFrom startTime; + +startTime 0; + +stopAt endTime; + +endTime 20; + +deltaT 1e-02; + +writeControl adjustableRunTime; + +writeInterval 0.1; + +purgeWrite 0; + +writeFormat ascii; + +writePrecision 10; + +writeCompression off; + +timeFormat general; + +timePrecision 6; + +runTimeModifiable yes; + +adjustTimeStep yes; + +maxCo 0.3; +maxAlphaCo 1; + +maxDeltaT 1; + +// ************************************************************************* // diff --git a/tutorials/modules/multiRegion/film/cylinder/system/extrudeMeshDict b/tutorials/modules/multiRegion/film/cylinder/system/extrudeMeshDict new file mode 100644 index 0000000000..09c7ba8735 --- /dev/null +++ b/tutorials/modules/multiRegion/film/cylinder/system/extrudeMeshDict @@ -0,0 +1,36 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Version: dev + \\/ M anipulation | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + format ascii; + class dictionary; + object extrudeToRegionMeshDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +sourceCase "$FOAM_CASE"; +constructFrom patch; + +sourcePatches (surface); +exposedPatchName wall; + +extrudeModel linearNormal; + +nLayers 1; + +expansionRatio 1; + +flipNormals yes; +mergeFaces no; + +linearNormalCoeffs +{ + thickness 0.01; +} + +// ************************************************************************* // diff --git a/tutorials/modules/multiRegion/film/cylinder/system/film/blockMeshDict b/tutorials/modules/multiRegion/film/cylinder/system/film/blockMeshDict new file mode 100644 index 0000000000..175981556e --- /dev/null +++ b/tutorials/modules/multiRegion/film/cylinder/system/film/blockMeshDict @@ -0,0 +1,143 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Version: dev + \\/ M anipulation | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + format ascii; + class dictionary; + object blockMeshDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +convertToMeters 1; + +vertices +( + (0.5 0 -0.5) + (1 0 -0.5) + (2 0 -0.5) + (2 0.707107 -0.5) + (0.707107 0.707107 -0.5) + (0.353553 0.353553 -0.5) + (2 2 -0.5) + (0.707107 2 -0.5) + (0 2 -0.5) + (0 1 -0.5) + (0 0.5 -0.5) + (-0.5 0 -0.5) + (-1 0 -0.5) + (-2 0 -0.5) + (-2 0.707107 -0.5) + (-0.707107 0.707107 -0.5) + (-0.353553 0.353553 -0.5) + (-2 2 -0.5) + (-0.707107 2 -0.5) + (0.5 0 0.5) + (1 0 0.5) + (2 0 0.5) + (2 0.707107 0.5) + (0.707107 0.707107 0.5) + (0.353553 0.353553 0.5) + (2 2 0.5) + (0.707107 2 0.5) + (0 2 0.5) + (0 1 0.5) + (0 0.5 0.5) + (-0.5 0 0.5) + (-1 0 0.5) + (-2 0 0.5) + (-2 0.707107 0.5) + (-0.707107 0.707107 0.5) + (-0.353553 0.353553 0.5) + (-2 2 0.5) + (-0.707107 2 0.5) +); + +blocks +( + hex (5 4 9 10 24 23 28 29) (10 10 11) simpleGrading (1 1 1) + hex (0 1 4 5 19 20 23 24) (10 10 11) simpleGrading (1 1 1) + hex (1 2 3 4 20 21 22 23) (20 10 11) simpleGrading (1 1 1) + hex (4 3 6 7 23 22 25 26) (20 20 11) simpleGrading (1 1 1) + hex (9 4 7 8 28 23 26 27) (10 20 11) simpleGrading (1 1 1) + hex (15 16 10 9 34 35 29 28) (10 10 11) simpleGrading (1 1 1) + hex (12 11 16 15 31 30 35 34) (10 10 11) simpleGrading (1 1 1) + hex (13 12 15 14 32 31 34 33) (20 10 11) simpleGrading (1 1 1) + hex (14 15 18 17 33 34 37 36) (20 20 11) simpleGrading (1 1 1) + hex (15 9 8 18 34 28 27 37) (10 20 11) simpleGrading (1 1 1) +); + +edges +( + arc 0 5 (0.469846 0.17101 -0.5) + arc 5 10 (0.17101 0.469846 -0.5) + arc 1 4 (0.939693 0.34202 -0.5) + arc 4 9 (0.34202 0.939693 -0.5) + arc 19 24 (0.469846 0.17101 0.5) + arc 24 29 (0.17101 0.469846 0.5) + arc 20 23 (0.939693 0.34202 0.5) + arc 23 28 (0.34202 0.939693 0.5) + arc 11 16 (-0.469846 0.17101 -0.5) + arc 16 10 (-0.17101 0.469846 -0.5) + arc 12 15 (-0.939693 0.34202 -0.5) + arc 15 9 (-0.34202 0.939693 -0.5) + arc 30 35 (-0.469846 0.17101 0.5) + arc 35 29 (-0.17101 0.469846 0.5) + arc 31 34 (-0.939693 0.34202 0.5) + arc 34 28 (-0.34202 0.939693 0.5) +); + +defaultPatch +{ + name frontAndBack; + type patch; +} + +boundary +( + surface + { + type patch; + faces + ( + (0 1 20 19) + (1 2 21 20) + (12 11 30 31) + (13 12 31 32) + + (5 0 19 24) + (10 5 24 29) + (16 10 29 35) + (11 16 35 30) + ); + } + sides + { + type patch; + faces + ( + (2 3 22 21) + (3 6 25 22) + (14 13 32 33) + (17 14 33 36) + ); + } + wall + { + type filmWall; + faces + ( + (6 7 26 25) + (7 8 27 26) + (8 18 37 27) + (18 17 36 37) + ); + } +); + + +// ************************************************************************* // diff --git a/tutorials/modules/multiRegion/film/cylinder/system/film/fvSchemes b/tutorials/modules/multiRegion/film/cylinder/system/film/fvSchemes new file mode 100644 index 0000000000..ddee59f067 --- /dev/null +++ b/tutorials/modules/multiRegion/film/cylinder/system/film/fvSchemes @@ -0,0 +1,47 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Version: dev + \\/ M anipulation | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + format ascii; + class dictionary; + location "system/film"; + object fvSchemes; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +ddtSchemes +{ + default Euler; +} + +gradSchemes +{ + default Gauss linear; +} + +divSchemes +{ + default none; + + div(phid,alpha) Gauss upwind; + div(alphaRhoPhi,U) Gauss upwind; + div(alphaRhoPhi,e) Gauss upwind; +} + +laplacianSchemes +{ + default Gauss linear uncorrected; +} + +snGradSchemes +{ + default uncorrected; +} + + +// ************************************************************************* // diff --git a/tutorials/modules/multiRegion/film/cylinder/system/film/fvSolution b/tutorials/modules/multiRegion/film/cylinder/system/film/fvSolution new file mode 100644 index 0000000000..e864f18088 --- /dev/null +++ b/tutorials/modules/multiRegion/film/cylinder/system/film/fvSolution @@ -0,0 +1,55 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Version: dev + \\/ M anipulation | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + format ascii; + class dictionary; + location "system/film"; + object fvSolution; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +solvers +{ + "alpha.*" + { + solver PBiCGStab; + preconditioner DILU; + + tolerance 1e-10; + relTol 0; + } + + "(U|e).*" + { + solver PBiCGStab; + preconditioner DILU; + + tolerance 1e-10; + relTol 0; + } +} + +PIMPLE +{ + momentumPredictor yes; + nOuterCorrectors 2; + nCorrectors 1; + nNonOrthogonalCorrectors 0; +} + +relaxationFactors +{ + equations + { + ".*" 1; + } +} + + +// ************************************************************************* // diff --git a/tutorials/modules/multiRegion/film/cylinder/system/fluid/blockMeshDict b/tutorials/modules/multiRegion/film/cylinder/system/fluid/blockMeshDict new file mode 100644 index 0000000000..ad250bf8cd --- /dev/null +++ b/tutorials/modules/multiRegion/film/cylinder/system/fluid/blockMeshDict @@ -0,0 +1,143 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Version: dev + \\/ M anipulation | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + format ascii; + class dictionary; + object blockMeshDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +convertToMeters 1; + +vertices +( + (0.5 0 -0.5) + (1 0 -0.5) + (2 0 -0.5) + (2 0.707107 -0.5) + (0.707107 0.707107 -0.5) + (0.353553 0.353553 -0.5) + (2 2 -0.5) + (0.707107 2 -0.5) + (0 2 -0.5) + (0 1 -0.5) + (0 0.5 -0.5) + (-0.5 0 -0.5) + (-1 0 -0.5) + (-2 0 -0.5) + (-2 0.707107 -0.5) + (-0.707107 0.707107 -0.5) + (-0.353553 0.353553 -0.5) + (-2 2 -0.5) + (-0.707107 2 -0.5) + (0.5 0 0.5) + (1 0 0.5) + (2 0 0.5) + (2 0.707107 0.5) + (0.707107 0.707107 0.5) + (0.353553 0.353553 0.5) + (2 2 0.5) + (0.707107 2 0.5) + (0 2 0.5) + (0 1 0.5) + (0 0.5 0.5) + (-0.5 0 0.5) + (-1 0 0.5) + (-2 0 0.5) + (-2 0.707107 0.5) + (-0.707107 0.707107 0.5) + (-0.353553 0.353553 0.5) + (-2 2 0.5) + (-0.707107 2 0.5) +); + +blocks +( + hex (5 4 9 10 24 23 28 29) (10 10 11) simpleGrading (1 1 1) + hex (0 1 4 5 19 20 23 24) (10 10 11) simpleGrading (1 1 1) + hex (1 2 3 4 20 21 22 23) (20 10 11) simpleGrading (1 1 1) + hex (4 3 6 7 23 22 25 26) (20 20 11) simpleGrading (1 1 1) + hex (9 4 7 8 28 23 26 27) (10 20 11) simpleGrading (1 1 1) + hex (15 16 10 9 34 35 29 28) (10 10 11) simpleGrading (1 1 1) + hex (12 11 16 15 31 30 35 34) (10 10 11) simpleGrading (1 1 1) + hex (13 12 15 14 32 31 34 33) (20 10 11) simpleGrading (1 1 1) + hex (14 15 18 17 33 34 37 36) (20 20 11) simpleGrading (1 1 1) + hex (15 9 8 18 34 28 27 37) (10 20 11) simpleGrading (1 1 1) +); + +edges +( + arc 0 5 (0.469846 0.17101 -0.5) + arc 5 10 (0.17101 0.469846 -0.5) + arc 1 4 (0.939693 0.34202 -0.5) + arc 4 9 (0.34202 0.939693 -0.5) + arc 19 24 (0.469846 0.17101 0.5) + arc 24 29 (0.17101 0.469846 0.5) + arc 20 23 (0.939693 0.34202 0.5) + arc 23 28 (0.34202 0.939693 0.5) + arc 11 16 (-0.469846 0.17101 -0.5) + arc 16 10 (-0.17101 0.469846 -0.5) + arc 12 15 (-0.939693 0.34202 -0.5) + arc 15 9 (-0.34202 0.939693 -0.5) + arc 30 35 (-0.469846 0.17101 0.5) + arc 35 29 (-0.17101 0.469846 0.5) + arc 31 34 (-0.939693 0.34202 0.5) + arc 34 28 (-0.34202 0.939693 0.5) +); + +defaultPatch +{ + name frontAndBack; + type wall; +} + +boundary +( + film + { + type patch; + faces + ( + (0 1 20 19) + (1 2 21 20) + (12 11 30 31) + (13 12 31 32) + + (5 0 19 24) + (10 5 24 29) + (16 10 29 35) + (11 16 35 30) + ); + } + sides + { + type patch; + faces + ( + (2 3 22 21) + (3 6 25 22) + (14 13 32 33) + (17 14 33 36) + ); + } + top + { + type patch; + faces + ( + (6 7 26 25) + (7 8 27 26) + (8 18 37 27) + (18 17 36 37) + ); + } +); + + +// ************************************************************************* // diff --git a/tutorials/modules/multiRegion/film/cylinder/system/fluid/decomposeParDict b/tutorials/modules/multiRegion/film/cylinder/system/fluid/decomposeParDict new file mode 100644 index 0000000000..285afcd541 --- /dev/null +++ b/tutorials/modules/multiRegion/film/cylinder/system/fluid/decomposeParDict @@ -0,0 +1,22 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Version: dev + \\/ M anipulation | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + format ascii; + class dictionary; + location "system"; + object decomposeParDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +numberOfSubdomains 4; + +method scotch; + + +// ************************************************************************* // diff --git a/tutorials/modules/multiRegion/film/cylinder/system/fluid/extrudeToRegionMeshDict b/tutorials/modules/multiRegion/film/cylinder/system/fluid/extrudeToRegionMeshDict new file mode 100644 index 0000000000..2bfe70ed3c --- /dev/null +++ b/tutorials/modules/multiRegion/film/cylinder/system/fluid/extrudeToRegionMeshDict @@ -0,0 +1,33 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Version: dev + \\/ M anipulation | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + format ascii; + class dictionary; + object extrudeToRegionMeshDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +region wallFilm; + +patches (walls); + +extrudeModel linearNormal; + +nLayers 1; + +expansionRatio 1; + +adaptMesh yes; // apply mapped to both regions + +linearNormalCoeffs +{ + thickness 0.01; +} + +// ************************************************************************* // diff --git a/tutorials/modules/multiRegion/film/cylinder/system/fluid/fvSchemes b/tutorials/modules/multiRegion/film/cylinder/system/fluid/fvSchemes new file mode 100644 index 0000000000..acfe41c68f --- /dev/null +++ b/tutorials/modules/multiRegion/film/cylinder/system/fluid/fvSchemes @@ -0,0 +1,58 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Version: dev + \\/ M anipulation | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + format ascii; + class dictionary; + location "system"; + 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 corrected; +} + +interpolationSchemes +{ + default linear; +} + +snGradSchemes +{ + default corrected; +} + + + +// ************************************************************************* // diff --git a/tutorials/modules/multiRegion/film/cylinder/system/fluid/fvSolution b/tutorials/modules/multiRegion/film/cylinder/system/fluid/fvSolution new file mode 100644 index 0000000000..a2121d3ae2 --- /dev/null +++ b/tutorials/modules/multiRegion/film/cylinder/system/fluid/fvSolution @@ -0,0 +1,99 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Version: dev + \\/ M anipulation | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + format ascii; + class dictionary; + location "system"; + 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; + } + + "(k|epsilon).*" + { + $UFinal; + } + + p_rgh + { + solver GAMG; + tolerance 0; + relTol 0.1; + smoother GaussSeidel; + } + + p_rghFinal + { + $p_rgh; + tolerance 1e-06; + relTol 0; + } + + "(h|Yi|O2|N2|H2O).*" + { + solver PBiCGStab; + preconditioner DILU; + tolerance 1e-6; + relTol 0; + } +} + + +PIMPLE +{ + nCorrectors 2; + nNonOrthogonalCorrectors 0; + momentumPredictor yes; + pRefCell 0; + pRefValue 1e5; +} + + +relaxationFactors +{ + equations + { + ".*" 1; + } +} + + +// ************************************************************************* // diff --git a/tutorials/modules/multiRegion/film/cylinder/system/fvSchemes b/tutorials/modules/multiRegion/film/cylinder/system/fvSchemes new file mode 100644 index 0000000000..fd54831137 --- /dev/null +++ b/tutorials/modules/multiRegion/film/cylinder/system/fvSchemes @@ -0,0 +1,30 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Version: dev + \\/ M anipulation | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + format ascii; + class dictionary; + location "system"; + object fvSchemes; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +divSchemes +{ +} + +gradSchemes +{ +} + +laplacianSchemes +{ +} + + +// ************************************************************************* // diff --git a/tutorials/modules/multiRegion/film/cylinder/system/fvSolution b/tutorials/modules/multiRegion/film/cylinder/system/fvSolution new file mode 100644 index 0000000000..f1497eb3b5 --- /dev/null +++ b/tutorials/modules/multiRegion/film/cylinder/system/fvSolution @@ -0,0 +1,21 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Version: dev + \\/ M anipulation | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + format ascii; + class dictionary; + object fvSolution; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +PIMPLE +{ + nOuterCorrectors 1; +} + +// ************************************************************************* // diff --git a/tutorials/modules/multicomponentFluid/cylinder/constant/cloudProperties b/tutorials/modules/multicomponentFluid/cylinder/constant/cloudProperties index e4b2b6539b..cbdeb48534 100644 --- a/tutorials/modules/multicomponentFluid/cylinder/constant/cloudProperties +++ b/tutorials/modules/multicomponentFluid/cylinder/constant/cloudProperties @@ -122,6 +122,7 @@ subModels thermoSurfaceFilmCoeffs { interactionType absorb; + surfaceFilms ("surfaceFilm"); } } @@ -129,5 +130,4 @@ subModels cloudFunctions {} - // ************************************************************************* //