diff --git a/tutorials/modules/multiRegion/film/hotBoxes/0/film/T b/tutorials/modules/multiRegion/film/hotBoxes/0/film/T new file mode 100644 index 0000000000..e01386bbc2 --- /dev/null +++ b/tutorials/modules/multiRegion/film/hotBoxes/0/film/T @@ -0,0 +1,43 @@ +/*--------------------------------*- 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/film"; + object T; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 0 0 1 0 0 0]; + +internalField uniform 300; + +boundaryField +{ + #includeEtc "caseDicts/setConstraintTypes" + + surface + { + type coupledTemperature; + value $internalField; + } + + wall + { + type fixedValue; + value uniform 350; + } + + sides + { + type zeroGradient; + } +} + +// ************************************************************************* // diff --git a/tutorials/modules/multiRegion/film/hotBoxes/0/film/U b/tutorials/modules/multiRegion/film/hotBoxes/0/film/U new file mode 100644 index 0000000000..ba7c981bcf --- /dev/null +++ b/tutorials/modules/multiRegion/film/hotBoxes/0/film/U @@ -0,0 +1,43 @@ +/*--------------------------------*- 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/film"; + object U; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 1 -1 0 0 0 0]; + +internalField uniform (0 0 0); + +boundaryField +{ + #includeEtc "caseDicts/setConstraintTypes" + + surface + { + type filmSurfaceVelocity; + Cs 0.005; + value $internalField; + } + + wall + { + type noSlip; + } + + sides + { + type slip; + } +} + +// ************************************************************************* // diff --git a/tutorials/modules/multiRegion/film/hotBoxes/0/film/delta b/tutorials/modules/multiRegion/film/hotBoxes/0/film/delta new file mode 100644 index 0000000000..ce0996a9a8 --- /dev/null +++ b/tutorials/modules/multiRegion/film/hotBoxes/0/film/delta @@ -0,0 +1,49 @@ +/*--------------------------------*- 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/film"; + object delta; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 1 0 0 0 0 0]; + +internalField uniform 0; + +boundaryField +{ + #includeEtc "caseDicts/setConstraintTypes" + + surface + { + type zeroGradient; + } + + wall + { + type filmContactAngle; + + contactAngle + { + type constant; + theta0 70; + } + + value $internalField; + } + + sides + { + type zeroGradient; + } +} + +// ************************************************************************* // diff --git a/tutorials/modules/multiRegion/film/hotBoxes/0/film/p b/tutorials/modules/multiRegion/film/hotBoxes/0/film/p new file mode 100644 index 0000000000..6fb7d2472e --- /dev/null +++ b/tutorials/modules/multiRegion/film/hotBoxes/0/film/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; + object p; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [1 -1 -2 0 0 0 0]; + +internalField uniform 1e5; + +boundaryField +{ + #includeEtc "caseDicts/setConstraintTypes" + + surface + { + type mappedFilmPressure; + value $internalField; + } + + wall + { + type zeroGradient; + } + + sides + { + type zeroGradient; + } +} + + +// ************************************************************************* // diff --git a/tutorials/modules/multiRegion/film/hotBoxes/0/fluid/H2O b/tutorials/modules/multiRegion/film/hotBoxes/0/fluid/H2O new file mode 100644 index 0000000000..3161654483 --- /dev/null +++ b/tutorials/modules/multiRegion/film/hotBoxes/0/fluid/H2O @@ -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 volScalarField; + location "0"; + object H2O; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 0 0 0 0 0 0]; + +internalField uniform 0; + +boundaryField +{ + #includeEtc "caseDicts/setConstraintTypes" + + film + { + type zeroGradient; + } + + sides + { + type zeroGradient; + } +} + +// ************************************************************************* // diff --git a/tutorials/modules/multiRegion/film/hotBoxes/0/fluid/N2 b/tutorials/modules/multiRegion/film/hotBoxes/0/fluid/N2 new file mode 100644 index 0000000000..aeca181cad --- /dev/null +++ b/tutorials/modules/multiRegion/film/hotBoxes/0/fluid/N2 @@ -0,0 +1,37 @@ +/*--------------------------------*- 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 +{ + #includeEtc "caseDicts/setConstraintTypes" + + film + { + type zeroGradient; + } + + sides + { + type zeroGradient; + } +} + + +// ************************************************************************* // diff --git a/tutorials/modules/multiRegion/film/hotBoxes/0/fluid/O2 b/tutorials/modules/multiRegion/film/hotBoxes/0/fluid/O2 new file mode 100644 index 0000000000..00f19a8c0d --- /dev/null +++ b/tutorials/modules/multiRegion/film/hotBoxes/0/fluid/O2 @@ -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 volScalarField; + location "0"; + object O2; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 0 0 0 0 0 0]; + +internalField uniform 0.23; + +boundaryField +{ + #includeEtc "caseDicts/setConstraintTypes" + + film + { + type zeroGradient; + } + + sides + { + type zeroGradient; + } +} + +// ************************************************************************* // diff --git a/tutorials/modules/multiRegion/film/hotBoxes/0/fluid/T b/tutorials/modules/multiRegion/film/hotBoxes/0/fluid/T new file mode 100644 index 0000000000..ad44867bda --- /dev/null +++ b/tutorials/modules/multiRegion/film/hotBoxes/0/fluid/T @@ -0,0 +1,38 @@ +/*--------------------------------*- 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 +{ + #includeEtc "caseDicts/setConstraintTypes" + + film + { + type coupledTemperature; + value $internalField; + } + + sides + { + type fixedValue; + value $internalField; + } +} + +// ************************************************************************* // diff --git a/tutorials/modules/multiRegion/film/hotBoxes/0/fluid/U b/tutorials/modules/multiRegion/film/hotBoxes/0/fluid/U new file mode 100644 index 0000000000..9b1493211e --- /dev/null +++ b/tutorials/modules/multiRegion/film/hotBoxes/0/fluid/U @@ -0,0 +1,37 @@ +/*--------------------------------*- 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 +{ + #includeEtc "caseDicts/setConstraintTypes" + + film + { + type mappedValue; + value $internalField; + } + + sides + { + type noSlip; + } +} + +// ************************************************************************* // diff --git a/tutorials/modules/multiRegion/film/hotBoxes/0/fluid/alphat b/tutorials/modules/multiRegion/film/hotBoxes/0/fluid/alphat new file mode 100644 index 0000000000..5b5783b662 --- /dev/null +++ b/tutorials/modules/multiRegion/film/hotBoxes/0/fluid/alphat @@ -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 alphat; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [1 -1 -1 0 0 0 0]; + +internalField uniform 1e-7; + +boundaryField +{ + #includeEtc "caseDicts/setConstraintTypes" + + sides + { + type compressible::alphatWallFunction; + Prt 0.85; + value uniform 0; + } + + film + { + type compressible::alphatWallFunction; + Prt 0.85; + value uniform 0; + } +} + +// ************************************************************************* // diff --git a/tutorials/modules/multiRegion/film/hotBoxes/0/fluid/epsilon b/tutorials/modules/multiRegion/film/hotBoxes/0/fluid/epsilon new file mode 100644 index 0000000000..d9d0dab425 --- /dev/null +++ b/tutorials/modules/multiRegion/film/hotBoxes/0/fluid/epsilon @@ -0,0 +1,38 @@ +/*--------------------------------*- 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 epsilon; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 2 -3 0 0 0 0]; + +internalField uniform 1e-7; + +boundaryField +{ + #includeEtc "caseDicts/setConstraintTypes" + + sides + { + type epsilonWallFunction; + value uniform 1e-7; + } + + film + { + type epsilonWallFunction; + value uniform 1e-7; + } +} + +// ************************************************************************* // diff --git a/tutorials/modules/multiRegion/film/hotBoxes/0/fluid/k b/tutorials/modules/multiRegion/film/hotBoxes/0/fluid/k new file mode 100644 index 0000000000..8e78b33608 --- /dev/null +++ b/tutorials/modules/multiRegion/film/hotBoxes/0/fluid/k @@ -0,0 +1,38 @@ +/*--------------------------------*- 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 k; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 2 -2 0 0 0 0]; + +internalField uniform 1e-5; + +boundaryField +{ + #includeEtc "caseDicts/setConstraintTypes" + + sides + { + type kqRWallFunction; + value uniform 1e-5; + } + + film + { + type kqRWallFunction; + value uniform 1e-5; + } +} + +// ************************************************************************* // diff --git a/tutorials/modules/multiRegion/film/hotBoxes/0/fluid/nut b/tutorials/modules/multiRegion/film/hotBoxes/0/fluid/nut new file mode 100644 index 0000000000..5e23db1fd2 --- /dev/null +++ b/tutorials/modules/multiRegion/film/hotBoxes/0/fluid/nut @@ -0,0 +1,38 @@ +/*--------------------------------*- 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 nut; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 2 -1 0 0 0 0]; + +internalField uniform 1e-7; + +boundaryField +{ + #includeEtc "caseDicts/setConstraintTypes" + + sides + { + type nutkWallFunction; + value uniform 0; + } + + film + { + type nutkWallFunction; + value uniform 0; + } +} + +// ************************************************************************* // diff --git a/tutorials/modules/multiRegion/film/hotBoxes/0/fluid/p b/tutorials/modules/multiRegion/film/hotBoxes/0/fluid/p new file mode 100644 index 0000000000..3c6fa75aed --- /dev/null +++ b/tutorials/modules/multiRegion/film/hotBoxes/0/fluid/p @@ -0,0 +1,38 @@ +/*--------------------------------*- 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 +{ + #includeEtc "caseDicts/setConstraintTypes" + + film + { + type calculated; + value $internalField; + } + + sides + { + type calculated; + value $internalField; + } +} + +// ************************************************************************* // diff --git a/tutorials/modules/multiRegion/film/hotBoxes/0/fluid/p_rgh b/tutorials/modules/multiRegion/film/hotBoxes/0/fluid/p_rgh new file mode 100644 index 0000000000..a64a3a1adf --- /dev/null +++ b/tutorials/modules/multiRegion/film/hotBoxes/0/fluid/p_rgh @@ -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 volScalarField; + location "0"; + object p_rgh; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [1 -1 -2 0 0 0 0]; + +internalField uniform 0; + +boundaryField +{ + #includeEtc "caseDicts/setConstraintTypes" + + film + { + type fixedFluxPressure; + } + + sides + { + type fixedFluxPressure; + } +} + +// ************************************************************************* // diff --git a/tutorials/modules/multiRegion/film/hotBoxes/Allrun b/tutorials/modules/multiRegion/film/hotBoxes/Allrun new file mode 100755 index 0000000000..0119cbddf5 --- /dev/null +++ b/tutorials/modules/multiRegion/film/hotBoxes/Allrun @@ -0,0 +1,23 @@ +#!/bin/sh +cd ${0%/*} || exit 1 # Run from this directory + +. $WM_PROJECT_DIR/bin/tools/RunFunctions + +runApplication -s fluid blockMesh -region fluid + +# Create a set for the bits of the mesh that are not boxes +runApplication topoSet -region fluid + +# Create the boxes and add their surfaces to the boxes patch +runApplication subsetMesh notBoxes -region fluid -patch film -overwrite -noFields + +# Create the film mesh +runApplication extrudeToRegionMesh -region fluid -overwrite + +printf "\n%s\n" "Creating files for paraview post-processing" +paraFoam -touchAll +echo + +runApplication $(getApplication) + +#------------------------------------------------------------------------------ diff --git a/tutorials/modules/multiRegion/film/hotBoxes/Allrun-parallel b/tutorials/modules/multiRegion/film/hotBoxes/Allrun-parallel new file mode 100755 index 0000000000..d7afe97919 --- /dev/null +++ b/tutorials/modules/multiRegion/film/hotBoxes/Allrun-parallel @@ -0,0 +1,30 @@ +#!/bin/sh +cd ${0%/*} || exit 1 # Run from this directory + +# Source tutorial run functions +. $WM_PROJECT_DIR/bin/tools/RunFunctions + +runApplication -s fluid blockMesh -region fluid + +runApplication decomposePar -region fluid -noFields + +# Create a set for the bits of the mesh that are not boxes +runParallel topoSet -region fluid + +# Create the boxes and add their surfaces to the boxes patch +runParallel subsetMesh notBoxes -region fluid -patch film -overwrite -noFields + +# Create the film mesh +runParallel extrudeToRegionMesh -region fluid -overwrite + +runApplication -s fields decomposePar -fields -copyZero + +printf "\n%s\n" "Creating files for paraview post-processing" +paraFoam -touchAll +echo + +runParallel $(getApplication); + +runApplication reconstructPar -allRegions + +#------------------------------------------------------------------------------ diff --git a/tutorials/modules/multiRegion/film/hotBoxes/constant/film/fvModels b/tutorials/modules/multiRegion/film/hotBoxes/constant/film/fvModels new file mode 100644 index 0000000000..6246a09de4 --- /dev/null +++ b/tutorials/modules/multiRegion/film/hotBoxes/constant/film/fvModels @@ -0,0 +1,43 @@ +/*--------------------------------*- 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"); + + ejection + { + model dripping; + + deltaStable 0; + + minParticlesPerParcel 100; + + parcelDistribution + { + type RosinRammler; + Q 0; + min 5e-04; + max 0.0012; + d 7.5e-05; + n 0.5; + } + } +} + +// ************************************************************************* // diff --git a/tutorials/modules/multiRegion/film/hotBoxes/constant/film/g b/tutorials/modules/multiRegion/film/hotBoxes/constant/film/g new file mode 100644 index 0000000000..a27ab85e41 --- /dev/null +++ b/tutorials/modules/multiRegion/film/hotBoxes/constant/film/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 0 -9.81); + + +// ************************************************************************* // diff --git a/tutorials/modules/multiRegion/film/hotBoxes/constant/film/momentumTransport b/tutorials/modules/multiRegion/film/hotBoxes/constant/film/momentumTransport new file mode 100644 index 0000000000..7c2dc8837b --- /dev/null +++ b/tutorials/modules/multiRegion/film/hotBoxes/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/hotBoxes/constant/film/physicalProperties b/tutorials/modules/multiRegion/film/hotBoxes/constant/film/physicalProperties new file mode 100644 index 0000000000..7c9cebb25c --- /dev/null +++ b/tutorials/modules/multiRegion/film/hotBoxes/constant/film/physicalProperties @@ -0,0 +1,38 @@ +/*--------------------------------*- 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 pureMixture; + properties liquid; + energy sensibleInternalEnergy; +} + +mixture +{ + H2O; +} + +sigma +{ + type constant; + sigma 0.07; +} + +deltaWet 1e-4; + +// ************************************************************************* // diff --git a/tutorials/modules/multiRegion/film/hotBoxes/constant/fluid/cloudProperties b/tutorials/modules/multiRegion/film/hotBoxes/constant/fluid/cloudProperties new file mode 100644 index 0000000000..978178dbed --- /dev/null +++ b/tutorials/modules/multiRegion/film/hotBoxes/constant/fluid/cloudProperties @@ -0,0 +1,157 @@ +/*--------------------------------*- 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 reactingCloud1Properties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +type reactingCloud; + +libs ("libfilmCloudTransfer.so"); + +solution +{ + coupled yes; + transient yes; + cellValueSourceCorrection yes; + 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 coneInjection; + SOI 0.000; + duration 20.000; + position (0.3 0.35 1.45); + direction (0 0 -1); + + massTotal 10; + parcelsPerSecond 1000; + uniformParcelSize volume; + flowRateProfile constant 0.1; + Umag constant 3.0; + thetaInner constant 0; + thetaOuter constant 45; + + sizeDistribution + { + type RosinRammler; + Q 3; + min 5e-04; + max 0.0012; + d 7.5e-05; + n 0.5; + } + } + + model2 + { + $model1; + position (0.6 0.35 1.45); + } + } + + 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 splashBai; + deltaWet 0.0005; + Adry 2630; + Awet 1320; + Cf 0.6; + } +} + +cloudFunctions +{} + + +// ************************************************************************* // diff --git a/tutorials/modules/multiRegion/film/hotBoxes/constant/fluid/cloudProperties.old b/tutorials/modules/multiRegion/film/hotBoxes/constant/fluid/cloudProperties.old new file mode 100644 index 0000000000..722fd60c2d --- /dev/null +++ b/tutorials/modules/multiRegion/film/hotBoxes/constant/fluid/cloudProperties.old @@ -0,0 +1,121 @@ +/*--------------------------------*- 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 + {} + + 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/hotBoxes/constant/fluid/fvModels b/tutorials/modules/multiRegion/film/hotBoxes/constant/fluid/fvModels new file mode 100644 index 0000000000..900d9f427f --- /dev/null +++ b/tutorials/modules/multiRegion/film/hotBoxes/constant/fluid/fvModels @@ -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 fvModels; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +#includeModel clouds + +// ************************************************************************* // diff --git a/tutorials/modules/multiRegion/film/hotBoxes/constant/fluid/g b/tutorials/modules/multiRegion/film/hotBoxes/constant/fluid/g new file mode 100644 index 0000000000..a27ab85e41 --- /dev/null +++ b/tutorials/modules/multiRegion/film/hotBoxes/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 0 -9.81); + + +// ************************************************************************* // diff --git a/tutorials/modules/multiRegion/film/hotBoxes/constant/fluid/momentumTransport b/tutorials/modules/multiRegion/film/hotBoxes/constant/fluid/momentumTransport new file mode 100644 index 0000000000..ba87a6681d --- /dev/null +++ b/tutorials/modules/multiRegion/film/hotBoxes/constant/fluid/momentumTransport @@ -0,0 +1,29 @@ +/*--------------------------------*- 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 RAS; + +RAS +{ + model kEpsilon; + + turbulence on; + + printCoeffs no; +} + + +// ************************************************************************* // diff --git a/tutorials/modules/multiRegion/film/hotBoxes/constant/fluid/pRef b/tutorials/modules/multiRegion/film/hotBoxes/constant/fluid/pRef new file mode 100644 index 0000000000..165e31d6fe --- /dev/null +++ b/tutorials/modules/multiRegion/film/hotBoxes/constant/fluid/pRef @@ -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 uniformDimensionedScalarField; + location "constant"; + object pRef; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [1 -1 -2 0 0 0 0]; +value 1e5; + +// ************************************************************************* // diff --git a/tutorials/modules/multiRegion/film/hotBoxes/constant/fluid/physicalProperties b/tutorials/modules/multiRegion/film/hotBoxes/constant/fluid/physicalProperties new file mode 100644 index 0000000000..dd9a543d5b --- /dev/null +++ b/tutorials/modules/multiRegion/film/hotBoxes/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/hotBoxes/constant/fluid/speciesThermo b/tutorials/modules/multiRegion/film/hotBoxes/constant/fluid/speciesThermo new file mode 100644 index 0000000000..1c990e67a4 --- /dev/null +++ b/tutorials/modules/multiRegion/film/hotBoxes/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/hotBoxes/system/controlDict b/tutorials/modules/multiRegion/film/hotBoxes/system/controlDict new file mode 100644 index 0000000000..3e8f42766c --- /dev/null +++ b/tutorials/modules/multiRegion/film/hotBoxes/system/controlDict @@ -0,0 +1,59 @@ +/*--------------------------------*- 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 +{ + film film; + fluid multicomponentFluid; +} + +startFrom startTime; + +startTime 0; + +stopAt endTime; + +endTime 2; + +deltaT 1e-4; + +writeControl adjustableRunTime; + +writeInterval 0.1; + +purgeWrite 0; + +writeFormat binary; + +writePrecision 10; + +writeCompression off; + +timeFormat general; + +timePrecision 6; + +runTimeModifiable yes; + +adjustTimeStep yes; + +maxCo 0.2; + +maxDeltaT 0.002; + +// ************************************************************************* // diff --git a/tutorials/modules/multiRegion/film/hotBoxes/system/decomposeParDict b/tutorials/modules/multiRegion/film/hotBoxes/system/decomposeParDict new file mode 100644 index 0000000000..7c3a0d3455 --- /dev/null +++ b/tutorials/modules/multiRegion/film/hotBoxes/system/decomposeParDict @@ -0,0 +1,28 @@ +/*--------------------------------*- 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 12; + +method hierarchical; + +hierarchicalCoeffs +{ + n (2 2 3); + order xyz; +} + + +// ************************************************************************* // diff --git a/tutorials/modules/multiRegion/film/hotBoxes/system/film/fvSchemes b/tutorials/modules/multiRegion/film/hotBoxes/system/film/fvSchemes new file mode 100644 index 0000000000..ddee59f067 --- /dev/null +++ b/tutorials/modules/multiRegion/film/hotBoxes/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/hotBoxes/system/film/fvSolution b/tutorials/modules/multiRegion/film/hotBoxes/system/film/fvSolution new file mode 100644 index 0000000000..e864f18088 --- /dev/null +++ b/tutorials/modules/multiRegion/film/hotBoxes/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/hotBoxes/system/fluid/blockMeshDict b/tutorials/modules/multiRegion/film/hotBoxes/system/fluid/blockMeshDict new file mode 100644 index 0000000000..6d185be91a --- /dev/null +++ b/tutorials/modules/multiRegion/film/hotBoxes/system/fluid/blockMeshDict @@ -0,0 +1,65 @@ +/*--------------------------------*- 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 0 0) + (1 0 0) + (1 1 0) + (0 1 0) + (0 0 1.5) + (1 0 1.5) + (1 1 1.5) + (0 1 1.5) +); + +blocks +( + hex (0 1 2 3 4 5 6 7) (80 80 120) simpleGrading (1 1 1) +); + +boundary +( + sides + { + type wall; + faces + ( + (0 4 7 3) + (2 6 5 1) + (4 5 6 7) + (3 7 6 2) + (1 5 4 0) + ); + } + + film + { + type mappedExtrudedWall; + neighbourRegion film; + neighbourPatch surface; + isExtrudedRegion no; + + faces + ( + (0 3 2 1) + ); + } +); + + +// ************************************************************************* // diff --git a/tutorials/modules/multiRegion/film/hotBoxes/system/fluid/blockMeshDict.old b/tutorials/modules/multiRegion/film/hotBoxes/system/fluid/blockMeshDict.old new file mode 100644 index 0000000000..1c1990db81 --- /dev/null +++ b/tutorials/modules/multiRegion/film/hotBoxes/system/fluid/blockMeshDict.old @@ -0,0 +1,149 @@ +/*--------------------------------*- 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 0.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 mappedExtrudedWall; + neighbourRegion film; + neighbourPatch surface; + isExtrudedRegion no; + + 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/hotBoxes/system/fluid/extrudeToRegionMeshDict b/tutorials/modules/multiRegion/film/hotBoxes/system/fluid/extrudeToRegionMeshDict new file mode 100644 index 0000000000..7d979d2709 --- /dev/null +++ b/tutorials/modules/multiRegion/film/hotBoxes/system/fluid/extrudeToRegionMeshDict @@ -0,0 +1,44 @@ +/*--------------------------------*- 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 film; + +patches (film); + +extrudeModel linearNormal; + +intrude yes; + +adaptMesh no; + +patchTypes (mappedExtrudedWall); +patchNames (film); + +regionPatchTypes (filmWall); +regionPatchNames (wall); + +regionOppositePatchTypes (mappedFilmSurface); +regionOppositePatchNames (surface); + +nLayers 1; + +expansionRatio 1; + +linearNormalCoeffs +{ + thickness 0.001; +} + +// ************************************************************************* // diff --git a/tutorials/modules/multiRegion/film/hotBoxes/system/fluid/extrudeToRegionMeshDict.old b/tutorials/modules/multiRegion/film/hotBoxes/system/fluid/extrudeToRegionMeshDict.old new file mode 100644 index 0000000000..7d979d2709 --- /dev/null +++ b/tutorials/modules/multiRegion/film/hotBoxes/system/fluid/extrudeToRegionMeshDict.old @@ -0,0 +1,44 @@ +/*--------------------------------*- 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 film; + +patches (film); + +extrudeModel linearNormal; + +intrude yes; + +adaptMesh no; + +patchTypes (mappedExtrudedWall); +patchNames (film); + +regionPatchTypes (filmWall); +regionPatchNames (wall); + +regionOppositePatchTypes (mappedFilmSurface); +regionOppositePatchNames (surface); + +nLayers 1; + +expansionRatio 1; + +linearNormalCoeffs +{ + thickness 0.001; +} + +// ************************************************************************* // diff --git a/tutorials/modules/multiRegion/film/hotBoxes/system/fluid/fvSchemes b/tutorials/modules/multiRegion/film/hotBoxes/system/fluid/fvSchemes new file mode 100644 index 0000000000..acfe41c68f --- /dev/null +++ b/tutorials/modules/multiRegion/film/hotBoxes/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/hotBoxes/system/fluid/fvSolution b/tutorials/modules/multiRegion/film/hotBoxes/system/fluid/fvSolution new file mode 100644 index 0000000000..a2121d3ae2 --- /dev/null +++ b/tutorials/modules/multiRegion/film/hotBoxes/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/hotBoxes/system/fluid/topoSetDict b/tutorials/modules/multiRegion/film/hotBoxes/system/fluid/topoSetDict new file mode 100644 index 0000000000..c4ca3c0906 --- /dev/null +++ b/tutorials/modules/multiRegion/film/hotBoxes/system/fluid/topoSetDict @@ -0,0 +1,59 @@ +/*--------------------------------*- 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 topoSetDict; +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +actions +( + { + name notBoxes; + type cellSet; + action clear; + } + { + name notBoxes; + type cellSet; + action invert; + } + { + name notBoxes; + type cellSet; + action delete; + source boxToCell; + box (0.4 0.1 0.1) (0.6 0.3 0.3); + } + { + name notBoxes; + type cellSet; + action delete; + source boxToCell; + box (0.4 0.1 0.4) (0.6 0.3 0.6); + } + { + name notBoxes; + type cellSet; + action delete; + source boxToCell; + box (0.4 0.4 0.1) (0.6 0.6 0.3); + } + { + name notBoxes; + type cellSet; + action delete; + source boxToCell; + box (0.4 0.4 0.4) (0.6 0.6 0.6); + } +); + +// ************************************************************************* // diff --git a/tutorials/modules/multiRegion/film/hotBoxes/system/fvSolution b/tutorials/modules/multiRegion/film/hotBoxes/system/fvSolution new file mode 100644 index 0000000000..f1497eb3b5 --- /dev/null +++ b/tutorials/modules/multiRegion/film/hotBoxes/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; +} + +// ************************************************************************* //