TUT: multiphase: clean up tutorials

This commit is contained in:
Kutalmis Bercin
2021-06-04 13:32:37 +01:00
committed by Andrew Heather
parent 3a858ac682
commit 91c1e8efe2
1811 changed files with 1797 additions and 3089 deletions

View File

@ -50,4 +50,5 @@ boundaryField
}
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// ************************************************************************* //

View File

@ -8,7 +8,7 @@
FoamFile
{
version 2.0;
format binary;
format ascii;
class volVectorField;
object U.air;
}
@ -50,4 +50,5 @@ boundaryField
}
}
// ************************************************************************* //

View File

@ -48,4 +48,5 @@ boundaryField
}
}
// ************************************************************************* //

View File

@ -48,4 +48,5 @@ boundaryField
}
}
// ************************************************************************* //

View File

@ -50,4 +50,5 @@ boundaryField
}
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// ************************************************************************* //

View File

@ -51,4 +51,5 @@ boundaryField
}
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// ************************************************************************* //

View File

@ -6,7 +6,9 @@ cd "${0%/*}" || exit # Run from this directory
restore0Dir
runApplication blockMesh
runApplication setFields
runApplication $(getApplication)
#------------------------------------------------------------------------------

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class uniformDimensionedVectorField;
location "constant";
object g;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -46,7 +46,7 @@ vapour
}
thermodynamics
{
Hf 0;//-1.338e7; //[J/kg]
Hf 0;
Cp 1900;
}
transport

View File

@ -10,18 +10,19 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "constant";
object turbulenceProperties.air;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
simulationType RAS;
simulationType RAS;
RAS
{
RASModel kEpsilon;
turbulence on;
printCoeffs on;
}

View File

@ -79,4 +79,5 @@ boundary
}
);
// ************************************************************************* //

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "system";
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -55,4 +54,5 @@ maxAlphaCo 1.5;
maxAlphaDdt 1;
// ************************************************************************* //

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "system";
object fvSchemes;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -64,4 +63,6 @@ fluxRequired
Xvapour.gas;
"alpha.*";
}
// ************************************************************************* //

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "system";
object fvSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -70,12 +69,9 @@ solvers
preconditioner DIC;
tolerance 1e-8;
relTol 0.01;
nPreSweeps 0;
nPostSweeps 2;
cacheAgglomeration true;
nCellsInCoarsestLevel 10;
agglomerator faceAreaPair;
mergeLevels 1;

View File

@ -33,4 +33,5 @@ regions
}
);
// ************************************************************************* //

View File

@ -50,4 +50,5 @@ boundaryField
}
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// ************************************************************************* //

View File

@ -50,4 +50,5 @@ boundaryField
}
}
// ************************************************************************* //

View File

@ -50,4 +50,5 @@ boundaryField
}
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// ************************************************************************* //

View File

@ -51,4 +51,5 @@ boundaryField
}
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// ************************************************************************* //

View File

@ -6,7 +6,9 @@ cd "${0%/*}" || exit # Run from this directory
restore0Dir
runApplication blockMesh
runApplication setFields
runApplication $(getApplication)
#------------------------------------------------------------------------------

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class uniformDimensionedVectorField;
location "constant";
object g;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -81,4 +81,5 @@ O2
}
}
// ************************************************************************* //

View File

@ -71,4 +71,5 @@ mixture
}
}
// ************************************************************************* //

View File

@ -53,4 +53,5 @@ mixture
}
}
// ************************************************************************* //

View File

@ -10,16 +10,15 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "constant";
object turbulenceProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
simulationType laminar;
simulationType laminar;
laminar
{
model generalizedNewtonian;
model generalizedNewtonian;
viscosityModel powerLaw;
nuMin 1e-06;
@ -28,4 +27,5 @@ laminar
n 0.4;
}
// ************************************************************************* //

View File

@ -79,4 +79,5 @@ boundary
}
);
// ************************************************************************* //

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "system";
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -53,4 +52,5 @@ maxDeltaT 0.2;
maxAlphaCo 1;
// ************************************************************************* //

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "system";
object fvSchemes;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -76,4 +75,5 @@ fluxRequired
"alpha.*";
}
// ************************************************************************* //

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "system";
object fvSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -78,9 +77,7 @@ solvers
smoother DICGaussSeidel;
tolerance 1e-11;
relTol 0.01;
cacheAgglomeration true;
nCellsInCoarsestLevel 10;
agglomerator faceAreaPair;
mergeLevels 1;

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "system";
object setFieldsDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -41,7 +40,6 @@ regions
fieldValues
(
volScalarFieldValue alpha.liquid 1
volScalarFieldValue O2.liquid 0.01
volScalarFieldValue water.liquid 0.99
);
@ -65,20 +63,17 @@ regions
);
}
boxToCell
{
box (0 0.5 0) (0.5 1.1 1);
fieldValues
(
volScalarFieldValue alpha.gas 1
volScalarFieldValue vapour.gas 0.3
volScalarFieldValue CO2.gas 0.2
volScalarFieldValue air.gas 0.5
);
}
);

View File

@ -48,4 +48,5 @@ boundaryField
}
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// ************************************************************************* //

View File

@ -55,4 +55,5 @@ boundaryField
}
}
// ************************************************************************* //

View File

@ -55,4 +55,5 @@ boundaryField
}
}
// ************************************************************************* //

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object epsilon;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object k;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -55,4 +55,5 @@ boundaryField
}
}
// ************************************************************************* //

View File

@ -3,13 +3,16 @@ cd "${0%/*}" || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
#------------------------------------------------------------------------------
./makeMesh
./Allrun.pre
restore0Dir
runApplication setFields
#runApplication $(getApplication)
runApplication decomposePar
runParallel $(getApplication)
runApplication reconstructPar
#------------------------------------------------------------------------------

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "constant";
object dynamicMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -27,4 +26,5 @@ origin (0 0 0);
axis (0 0 1);
omega 1.2832; // rad/s
// ************************************************************************* //

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class uniformDimensionedVectorField;
location "constant";
object g;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -18,7 +18,6 @@ type massTransferMultiphaseSystem;
phases (gas mercury oil liquid);
oil
{
type pureMovingPhaseModel;

View File

@ -71,4 +71,5 @@ mixture
}
}
// ************************************************************************* //

View File

@ -53,4 +53,5 @@ mixture
}
}
// ************************************************************************* //

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "constant";
object turbulenceProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -10,14 +10,13 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "system";
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
application icoReactingMultiphaseInterFoam;
startFrom latestTime;//startTime;
startFrom latestTime;
startTime 0;
@ -53,4 +52,5 @@ maxDeltaT 0.2;
maxAlphaCo 0.7;
// ************************************************************************* //

View File

@ -22,9 +22,5 @@ numberOfSubdomains 4;
method scotch;
distributed no;
roots ( );
// ************************************************************************* //

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "system";
object fvSchemes;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -63,7 +62,7 @@ snGradSchemes
wallDist
{
method meshWave;
method meshWave;
}
fluxRequired
@ -73,4 +72,5 @@ fluxRequired
"alpha.*";
}
// ************************************************************************* //

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "system";
object fvSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -44,7 +43,6 @@ solvers
// Compressiion factor for species in each alpha phase
// NOTE: It should be similar to cAlpha
cYi 1;
}
"U.*"
@ -68,7 +66,6 @@ solvers
{
solver PBiCGStab;
preconditioner FDIC;
tolerance 1e-9;
relTol 0.01;
};

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "system";
object setFieldsDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -54,7 +53,6 @@ regions
);
}
boxToCell
{
box (0 -1 -1) (1 0 1);
@ -63,7 +61,6 @@ regions
volScalarFieldValue alpha.gas 1
);
}
);

View File

@ -29,4 +29,5 @@ actions
}
);
// ************************************************************************* //

View File

@ -58,11 +58,13 @@ boundaryField
kappaMethod fluidThermo;
value $internalField;
}
right
{
type zeroGradient;
value $internalField;
}
bottom
{
type externalWallHeatFluxTemperature;
@ -71,12 +73,14 @@ boundaryField
kappaMethod fluidThermo;
value $internalField;
}
top
{
type inletOutlet;
value uniform 371;
inletValue uniform 371;
}
frontAndBack
{
type zeroGradient;
@ -84,4 +88,5 @@ boundaryField
}
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// ************************************************************************* //

View File

@ -8,7 +8,7 @@
FoamFile
{
version 2.0;
format binary;
format ascii;
class volVectorField;
object U.air;
}
@ -25,22 +25,26 @@ boundaryField
type fixedValue;
value uniform (0 0 0);
}
right
{
type fixedValue;
value uniform (0 0 0);
}
bottom
{
type fixedValue;
value uniform (0 0 0);
}
top
{
type pressureInletOutletVelocity;
value uniform (0 0 0);
inletValue uniform (0 0 0);
}
frontAndBack
{
type fixedValue;
@ -48,4 +52,5 @@ boundaryField
}
}
// ************************************************************************* //

View File

@ -24,20 +24,24 @@ boundaryField
{
type zeroGradient;
}
right
{
type zeroGradient;
}
bottom
{
type zeroGradient;
}
top
{
type inletOutlet;
inletValue uniform 1;
value uniform 1;
}
frontAndBack
{
type zeroGradient;

View File

@ -20,28 +20,33 @@ internalField uniform 0;
boundaryField
{
left
left
{
type zeroGradient;
}
right
{
type zeroGradient;
}
bottom
{
type zeroGradient;
}
top
{
type inletOutlet;
inletValue uniform 1;
value uniform 1;
}
frontAndBack
{
type zeroGradient;
}
}
// ************************************************************************* //

View File

@ -24,24 +24,29 @@ boundaryField
{
type zeroGradient;
}
right
{
type zeroGradient;
}
bottom
{
type zeroGradient;
}
top
{
type inletOutlet;
inletValue uniform 0;
value uniform 0;
}
frontAndBack
{
type zeroGradient;
}
}
// ************************************************************************* //

View File

@ -25,22 +25,26 @@ boundaryField
type fixedFluxPressure;
value uniform 1e5;
}
right
{
type fixedFluxPressure;
value uniform 1e5;
}
bottom
{
type fixedFluxPressure;
value uniform 1e5;
}
top
{
type prghTotalPressure;
p0 $internalField;
value uniform 100000;
}
frontAndBack
{
type fixedFluxPressure;
@ -48,4 +52,5 @@ boundaryField
}
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// ************************************************************************* //

View File

@ -24,20 +24,24 @@ boundaryField
{
type zeroGradient;
}
right
{
type zeroGradient;
}
bottom
{
type zeroGradient;
}
top
{
type inletOutlet;
inletValue uniform 0;
value uniform 0;
}
frontAndBack
{
type zeroGradient;

View File

@ -8,9 +8,13 @@ canCompile || exit 0 # Dynamic code
restore0Dir
runApplication blockMesh
runApplication setFields
runApplication decomposePar
runParallel $(getApplication)
runApplication reconstructPar
#------------------------------------------------------------------------------

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class uniformDimensionedVectorField;
location "constant";
object g;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -18,4 +17,5 @@ FoamFile
dimensions [0 1 -2 0 0 0 0];
value (0 -9.81 0);
// ************************************************************************* //

View File

@ -10,10 +10,11 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "constant";
object phaseProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
type massTransferMultiphaseSystem;
phases (gas liquid);
@ -50,4 +51,5 @@ massTransferModel
}
);
// ************************************************************************* //

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "constant";
object thermophysicalProperties.gas;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -26,8 +25,6 @@ thermoType
energy sensibleEnthalpy;
}
// ************************************************************************* //
species
(
air
@ -81,3 +78,6 @@ air
Pr 0.7;
}
}
// ************************************************************************* //

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "constant";
object thermophysicalProperties.liquid;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -49,4 +48,5 @@ mixture
}
}
// ************************************************************************* //

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "constant";
object turbulenceProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -86,4 +86,5 @@ mergePatchPairs
(
);
// ************************************************************************* //

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "system";
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -55,7 +54,6 @@ maxAlphaDdt 1;
functions
{
mass
{
type volFieldValue;
@ -75,4 +73,5 @@ functions
}
}
// ************************************************************************* //

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "system";
object decomposeParDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -24,4 +23,5 @@ coeffs
n (2 2 1);
}
// ************************************************************************* //

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "system";
object fvSchemes;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -10,14 +10,12 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "system";
object fvSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
solvers
{
"alpha.*"
{
solver PBiCGStab;

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "system";
object setFieldsDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -33,4 +32,6 @@ regions
);
}
);
// ************************************************************************* //

View File

@ -8,7 +8,7 @@
FoamFile
{
version 2.0;
format binary;
format ascii;
class volScalarField;
object T;
}
@ -51,4 +51,5 @@ boundaryField
}
}
// ************************************************************************* //

View File

@ -17,4 +17,5 @@ FoamFile
dimensions [0 1 -2 0 0 0 0];
value (0 0 -9.81);
// ************************************************************************* //

View File

@ -48,4 +48,5 @@ massTransferModel
}
);
// ************************************************************************* //

View File

@ -50,4 +50,5 @@ mixture
}
}
// ************************************************************************* //

View File

@ -47,4 +47,5 @@ mixture
}
}
// ************************************************************************* //

View File

@ -16,4 +16,5 @@ FoamFile
simulationType laminar;
// ************************************************************************* //

View File

@ -82,4 +82,5 @@ boundary
}
);
// ************************************************************************* //

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "system";
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -57,4 +56,5 @@ maxAlphaDdt 2.3;
maxDi 25;
// ************************************************************************* //

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "system";
object fvSchemes;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "system";
object fvSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -50,7 +49,6 @@ solvers
preconditioner DIC;
tolerance 1e-09;
relTol 0.02;
//maxIter 0;
}
p_rghFinal
@ -65,7 +63,6 @@ solvers
smoother symGaussSeidel;
tolerance 1e-06;
relTol 0;
}
"Yi.*"