mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Merge branch 'feature-MPPICInterFoam' into 'develop'
Feature mppic inter foam
New MPPICInterFoam solver. Add MPPIC cloud to a VOF approach. Particles volume are considered into transport Eq fluxes.
Solves for 2 incompressible, isothermal immiscible fluids using a VOF
(volume of fluid) phase-fraction based interface capturing approach.
The momentum and other fluid properties are of the "mixture" and a single
momentum equation is solved.
Solver:
/applications/solvers/multiphase/MPPICInterFoam
Tutorial:
/tutorials/multiphase/MPPICInterFoam/twoPhasePachuka
See merge request !41
This commit is contained in:
52
tutorials/multiphase/MPPICInterFoam/twoPhasePachuka/0/U
Normal file
52
tutorials/multiphase/MPPICInterFoam/twoPhasePachuka/0/U
Normal file
@ -0,0 +1,52 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: plus |
|
||||
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format binary;
|
||||
class volVectorField;
|
||||
object Uair;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
dimensions [0 1 -1 0 0 0 0];
|
||||
|
||||
internalField uniform (0 0 0);
|
||||
|
||||
boundaryField
|
||||
{
|
||||
inlet
|
||||
{
|
||||
type uniformFixedValue;
|
||||
uniformValue table
|
||||
(
|
||||
(0 (0 0 0.1))
|
||||
(1 (0 0 0.1))
|
||||
(4 (0 0 0.3))
|
||||
(14 (0 0 0.5))
|
||||
);
|
||||
}
|
||||
outlet
|
||||
{
|
||||
type pressureInletOutletVelocity;
|
||||
value $internalField;
|
||||
inletValue $internalField;
|
||||
}
|
||||
walls
|
||||
{
|
||||
type fixedValue;
|
||||
value uniform (0 0 0);
|
||||
}
|
||||
base
|
||||
{
|
||||
type fixedValue;
|
||||
value uniform (0 0 0);
|
||||
}
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,56 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: plus |
|
||||
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class volScalarField;
|
||||
object alpha.water;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
dimensions [0 0 0 0 0 0 0];
|
||||
|
||||
internalField uniform 1;
|
||||
|
||||
boundaryField
|
||||
{
|
||||
inlet
|
||||
{
|
||||
type uniformFixedValue;
|
||||
uniformValue table
|
||||
(
|
||||
(0 1)
|
||||
(1 1)
|
||||
(1.01 0)
|
||||
(14 0)
|
||||
);
|
||||
|
||||
}
|
||||
outlet
|
||||
{
|
||||
type inletOutlet;
|
||||
inletValue uniform 0;
|
||||
value uniform 0;
|
||||
}
|
||||
walls
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
base
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
defaultFaces
|
||||
{
|
||||
type empty;
|
||||
}
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,48 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: plus |
|
||||
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class volScalarField;
|
||||
location "0";
|
||||
object epsilon;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
dimensions [0 2 -3 0 0 0 0];
|
||||
|
||||
internalField uniform 0.1;
|
||||
|
||||
boundaryField
|
||||
{
|
||||
inlet
|
||||
{
|
||||
type fixedValue;
|
||||
value $internalField;
|
||||
}
|
||||
outlet
|
||||
{
|
||||
type inletOutlet;
|
||||
inletValue $internalField;
|
||||
value $internalField;
|
||||
}
|
||||
walls
|
||||
{
|
||||
type epsilonWallFunction;
|
||||
value $internalField;
|
||||
}
|
||||
base
|
||||
{
|
||||
type epsilonWallFunction;
|
||||
value $internalField;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
48
tutorials/multiphase/MPPICInterFoam/twoPhasePachuka/0/k
Normal file
48
tutorials/multiphase/MPPICInterFoam/twoPhasePachuka/0/k
Normal file
@ -0,0 +1,48 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: plus |
|
||||
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class volScalarField;
|
||||
location "0";
|
||||
object k;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
dimensions [0 2 -2 0 0 0 0];
|
||||
|
||||
internalField uniform 1e-2;
|
||||
|
||||
boundaryField
|
||||
{
|
||||
inlet
|
||||
{
|
||||
type fixedValue;
|
||||
value $internalField;
|
||||
}
|
||||
outlet
|
||||
{
|
||||
type inletOutlet;
|
||||
inletValue $internalField;
|
||||
value $internalField;
|
||||
}
|
||||
walls
|
||||
{
|
||||
type kqRWallFunction;
|
||||
value $internalField;
|
||||
}
|
||||
base
|
||||
{
|
||||
type kqRWallFunction;
|
||||
value $internalField;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
47
tutorials/multiphase/MPPICInterFoam/twoPhasePachuka/0/nut
Normal file
47
tutorials/multiphase/MPPICInterFoam/twoPhasePachuka/0/nut
Normal file
@ -0,0 +1,47 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: plus |
|
||||
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class volScalarField;
|
||||
location "0";
|
||||
object nut;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
dimensions [0 2 -1 0 0 0 0];
|
||||
|
||||
internalField uniform 0;
|
||||
|
||||
boundaryField
|
||||
{
|
||||
inlet
|
||||
{
|
||||
type calculated;
|
||||
value uniform 0;
|
||||
}
|
||||
outlet
|
||||
{
|
||||
type calculated;
|
||||
value uniform 0;
|
||||
}
|
||||
walls
|
||||
{
|
||||
type nutkWallFunction;
|
||||
value uniform 0;
|
||||
}
|
||||
base
|
||||
{
|
||||
type nutkWallFunction;
|
||||
value uniform 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
46
tutorials/multiphase/MPPICInterFoam/twoPhasePachuka/0/p_rgh
Normal file
46
tutorials/multiphase/MPPICInterFoam/twoPhasePachuka/0/p_rgh
Normal file
@ -0,0 +1,46 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: plus |
|
||||
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class volScalarField;
|
||||
object p_rgh;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
dimensions [ 1 -1 -2 0 0 0 0 ];
|
||||
|
||||
internalField uniform 0;
|
||||
|
||||
boundaryField
|
||||
{
|
||||
inlet
|
||||
{
|
||||
type fixedFluxPressure;
|
||||
value uniform 0;
|
||||
}
|
||||
outlet
|
||||
{
|
||||
type prghTotalPressure;
|
||||
p0 uniform 0;
|
||||
value uniform 0;
|
||||
}
|
||||
walls
|
||||
{
|
||||
type fixedFluxPressure;
|
||||
value uniform 0;
|
||||
}
|
||||
base
|
||||
{
|
||||
type fixedFluxPressure;
|
||||
value uniform 0;
|
||||
}
|
||||
}
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
12
tutorials/multiphase/MPPICInterFoam/twoPhasePachuka/Allclean
Executable file
12
tutorials/multiphase/MPPICInterFoam/twoPhasePachuka/Allclean
Executable file
@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
# Source tutorial clean functions
|
||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||
|
||||
cleanCase
|
||||
|
||||
rm system/blockMeshDict
|
||||
rm 0/alpha.water
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
36
tutorials/multiphase/MPPICInterFoam/twoPhasePachuka/Allrun
Executable file
36
tutorials/multiphase/MPPICInterFoam/twoPhasePachuka/Allrun
Executable file
@ -0,0 +1,36 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||
|
||||
|
||||
# Set application name
|
||||
application=`getApplication`
|
||||
|
||||
# create the underlying block mesh
|
||||
m4 system/pachuka.m4 > system/blockMeshDict
|
||||
|
||||
runApplication blockMesh
|
||||
|
||||
cp 0/alpha.water.org 0/alpha.water
|
||||
|
||||
# create faceSet for burner inlet and faceZone for coupled wall
|
||||
runApplication topoSet
|
||||
|
||||
# create burner inlet
|
||||
runApplication createPatch -overwrite
|
||||
|
||||
# Set alpha.water
|
||||
runApplication setFields
|
||||
|
||||
# Decompose mesh
|
||||
decomposePar > log.decomposePar 2>&1
|
||||
|
||||
# Run
|
||||
runParallel `getApplication`
|
||||
|
||||
# Reconstruct case
|
||||
runApplication reconstructPar
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
@ -0,0 +1,22 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: plus |
|
||||
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class uniformDimensionedVectorField;
|
||||
location "constant";
|
||||
object g;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
dimensions [0 1 -2 0 0 0 0];
|
||||
value ( 0 0 -9.81);
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,205 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: plus |
|
||||
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "constant";
|
||||
object particleProperties;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
solution
|
||||
{
|
||||
active true;
|
||||
coupled true;
|
||||
transient yes;
|
||||
cellValueSourceCorrection no;
|
||||
|
||||
maxCo 0.3;
|
||||
|
||||
interpolationSchemes
|
||||
{
|
||||
rho cell;
|
||||
U cellPoint;
|
||||
mu cell;
|
||||
gradAlpha cellPoint;
|
||||
}
|
||||
|
||||
averagingMethod dual;
|
||||
|
||||
integrationSchemes
|
||||
{
|
||||
U Euler;
|
||||
}
|
||||
|
||||
sourceTerms
|
||||
{
|
||||
schemes
|
||||
{
|
||||
U semiImplicit 0.8;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
constantProperties
|
||||
{
|
||||
rho0 1200;
|
||||
alphaMax 0.9;
|
||||
}
|
||||
|
||||
subModels
|
||||
{
|
||||
particleForces
|
||||
{
|
||||
WenYuDrag
|
||||
{
|
||||
alphac alphac;
|
||||
}
|
||||
gravity;
|
||||
interface
|
||||
{
|
||||
C -10;
|
||||
alphaName alpha.water;
|
||||
}
|
||||
}
|
||||
|
||||
injectionModels
|
||||
{
|
||||
model1
|
||||
{
|
||||
type patchInjection;
|
||||
massTotal 140e-3;
|
||||
SOI 0;
|
||||
parcelBasisType fixed;//mass;
|
||||
nParticle 1;
|
||||
patchName inlet;
|
||||
duration 1;
|
||||
parcelsPerSecond 1e5;
|
||||
U0 (0 0 0.1);
|
||||
flowRateProfile constant 1;
|
||||
sizeDistribution
|
||||
{
|
||||
type normal;
|
||||
normalDistribution
|
||||
{
|
||||
expectation 550e-6;
|
||||
variance 50e-6;
|
||||
minValue 400e-6;
|
||||
maxValue 800e-6;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dispersionModel none;
|
||||
|
||||
patchInteractionModel localInteraction;
|
||||
|
||||
localInteractionCoeffs
|
||||
{
|
||||
patches
|
||||
(
|
||||
walls
|
||||
{
|
||||
type rebound;
|
||||
e 0.95;
|
||||
mu 0.09;
|
||||
}
|
||||
base
|
||||
{
|
||||
type rebound;
|
||||
e 0.95;
|
||||
mu 0.09;
|
||||
}
|
||||
inlet
|
||||
{
|
||||
type escape;
|
||||
}
|
||||
outlet
|
||||
{
|
||||
type escape;
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
heatTransferModel none;
|
||||
|
||||
surfaceFilmModel none;
|
||||
|
||||
packingModel implicit;
|
||||
|
||||
explicitCoeffs
|
||||
{
|
||||
particleStressModel
|
||||
{
|
||||
type HarrisCrighton;
|
||||
alphaPacked 0.6;
|
||||
pSolid 10.0;
|
||||
beta 2.0;
|
||||
eps 1.0e-7;
|
||||
}
|
||||
correctionLimitingMethod
|
||||
{
|
||||
type absolute;
|
||||
e 0.9;
|
||||
}
|
||||
}
|
||||
|
||||
implicitCoeffs
|
||||
{
|
||||
alphaMin 0.001;
|
||||
rhoMin 1.0;
|
||||
applyGravity false;
|
||||
applyLimiting false;
|
||||
particleStressModel
|
||||
{
|
||||
type HarrisCrighton;
|
||||
alphaPacked 0.9;
|
||||
pSolid 5.0;
|
||||
beta 2.0;
|
||||
eps 1.0e-2;
|
||||
}
|
||||
}
|
||||
|
||||
dampingModel relaxation;
|
||||
|
||||
relaxationCoeffs
|
||||
{
|
||||
timeScaleModel
|
||||
{
|
||||
type nonEquilibrium;
|
||||
alphaPacked 0.7;
|
||||
e 0.8;
|
||||
}
|
||||
}
|
||||
|
||||
isotropyModel stochastic;
|
||||
|
||||
stochasticCoeffs
|
||||
{
|
||||
timeScaleModel
|
||||
{
|
||||
type isotropic;
|
||||
alphaPacked 0.7;
|
||||
e 0.8;
|
||||
}
|
||||
}
|
||||
|
||||
stochasticCollisionModel none;
|
||||
|
||||
radiation off;
|
||||
}
|
||||
|
||||
|
||||
cloudFunctions
|
||||
{}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,67 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: plus |
|
||||
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "constant";
|
||||
object transportProperties;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
phases (water air);
|
||||
|
||||
water
|
||||
{
|
||||
transportModel Newtonian;
|
||||
nu nu [ 0 2 -1 0 0 0 0 ] 1e-06;
|
||||
rho rho [ 1 -3 0 0 0 0 0 ] 1000;
|
||||
CrossPowerLawCoeffs
|
||||
{
|
||||
nu0 nu0 [ 0 2 -1 0 0 0 0 ] 1e-06;
|
||||
nuInf nuInf [ 0 2 -1 0 0 0 0 ] 1e-06;
|
||||
m m [ 0 0 1 0 0 0 0 ] 1;
|
||||
n n [ 0 0 0 0 0 0 0 ] 0;
|
||||
}
|
||||
|
||||
BirdCarreauCoeffs
|
||||
{
|
||||
nu0 nu0 [ 0 2 -1 0 0 0 0 ] 0.0142515;
|
||||
nuInf nuInf [ 0 2 -1 0 0 0 0 ] 1e-06;
|
||||
k k [ 0 0 1 0 0 0 0 ] 99.6;
|
||||
n n [ 0 0 0 0 0 0 0 ] 0.1003;
|
||||
}
|
||||
}
|
||||
|
||||
air
|
||||
{
|
||||
transportModel Newtonian;
|
||||
nu nu [ 0 2 -1 0 0 0 0 ] 1.48e-05;
|
||||
rho rho [ 1 -3 0 0 0 0 0 ] 1;
|
||||
CrossPowerLawCoeffs
|
||||
{
|
||||
nu0 nu0 [ 0 2 -1 0 0 0 0 ] 1e-06;
|
||||
nuInf nuInf [ 0 2 -1 0 0 0 0 ] 1e-06;
|
||||
m m [ 0 0 1 0 0 0 0 ] 1;
|
||||
n n [ 0 0 0 0 0 0 0 ] 0;
|
||||
}
|
||||
|
||||
BirdCarreauCoeffs
|
||||
{
|
||||
nu0 nu0 [ 0 2 -1 0 0 0 0 ] 0.0142515;
|
||||
nuInf nuInf [ 0 2 -1 0 0 0 0 ] 1e-06;
|
||||
k k [ 0 0 1 0 0 0 0 ] 99.6;
|
||||
n n [ 0 0 0 0 0 0 0 ] 0.1003;
|
||||
}
|
||||
}
|
||||
|
||||
sigma sigma [ 1 0 -2 0 0 0 0 ] 0.07;
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,26 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: plus |
|
||||
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "constant";
|
||||
object turbulenceProperties;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
simulationType RAS;
|
||||
|
||||
RAS
|
||||
{
|
||||
RASModel kEpsilon;
|
||||
turbulence on;
|
||||
printCoeffs on;
|
||||
}
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,67 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: plus |
|
||||
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "system";
|
||||
object controlDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
application MPPICInterFoam;
|
||||
|
||||
startFrom startTime;
|
||||
|
||||
startTime 0;
|
||||
|
||||
stopAt endTime;
|
||||
|
||||
endTime 14.0;
|
||||
|
||||
deltaT 0.001;
|
||||
|
||||
writeControl adjustableRunTime;
|
||||
|
||||
writeInterval 0.2;
|
||||
|
||||
purgeWrite 0;
|
||||
|
||||
writeFormat ascii;
|
||||
|
||||
writePrecision 6;
|
||||
|
||||
writeCompression uncompressed;
|
||||
|
||||
timeFormat general;
|
||||
|
||||
timePrecision 6;
|
||||
|
||||
runTimeModifiable yes;
|
||||
|
||||
adjustTimeStep yes;
|
||||
|
||||
maxCo 1.0;
|
||||
maxAlphaCo 1.0;
|
||||
|
||||
maxDeltaT 0.05;
|
||||
|
||||
functions
|
||||
{
|
||||
|
||||
minMax
|
||||
{
|
||||
type fieldMinMax;
|
||||
functionObjectLibs ("libfieldFunctionObjects.so");
|
||||
outputControl timeStep; //outputTime;
|
||||
fields (U);
|
||||
}
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,41 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: plus |
|
||||
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
object createPatchDict;
|
||||
}
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
pointSync false;
|
||||
|
||||
// Patches to create.
|
||||
patches
|
||||
(
|
||||
{
|
||||
// Name of new patch
|
||||
name inlet;
|
||||
|
||||
// Type of new patch
|
||||
patchInfo
|
||||
{
|
||||
type patch;
|
||||
}
|
||||
|
||||
// How to construct: either from 'patches' or 'set'
|
||||
constructFrom set;
|
||||
|
||||
// If constructFrom = set : name of faceSet
|
||||
set inlet;
|
||||
}
|
||||
);
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,30 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: plus |
|
||||
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
object decomposeParDict;
|
||||
}
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
numberOfSubdomains 4;
|
||||
|
||||
method hierarchical;
|
||||
|
||||
hierarchicalCoeffs
|
||||
{
|
||||
n (1 1 4);
|
||||
delta 0.001;
|
||||
order xyz;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,64 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: plus |
|
||||
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "system";
|
||||
object fvSchemes;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
ddtSchemes
|
||||
{
|
||||
default Euler;
|
||||
}
|
||||
|
||||
gradSchemes
|
||||
{
|
||||
default Gauss linear;
|
||||
}
|
||||
|
||||
divSchemes
|
||||
{
|
||||
default none;
|
||||
div(rhoPhi,U) Gauss upwind;
|
||||
div(phi,alpha) Gauss vanLeer;
|
||||
div(phirb,alpha) Gauss linear;
|
||||
div(alphaRhoPhic,k) Gauss upwind;
|
||||
div(alphaRhoPhic,epsilon) Gauss upwind;
|
||||
div((((alphac*rho)*nuEff)*dev2(T(grad(U))))) Gauss linear;
|
||||
div(phiGByA,kinematicCloud:alpha) Gauss linear;
|
||||
}
|
||||
|
||||
laplacianSchemes
|
||||
{
|
||||
default Gauss linear corrected;
|
||||
}
|
||||
|
||||
interpolationSchemes
|
||||
{
|
||||
default linear;
|
||||
}
|
||||
|
||||
snGradSchemes
|
||||
{
|
||||
default corrected;
|
||||
}
|
||||
|
||||
fluxRequired
|
||||
{
|
||||
default no;
|
||||
p_rgh;
|
||||
pcorr;
|
||||
alpha.water;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,95 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: plus |
|
||||
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "system";
|
||||
object fvSolution;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
solvers
|
||||
{
|
||||
"alpha.water.*"
|
||||
{
|
||||
nAlphaCorr 2;
|
||||
nAlphaSubCycles 2;
|
||||
cAlpha 1;
|
||||
|
||||
MULESCorr yes;
|
||||
nLimiterIter 2;
|
||||
|
||||
solver smoothSolver;
|
||||
smoother symGaussSeidel;
|
||||
tolerance 1e-7;
|
||||
relTol 0;
|
||||
maxIter 100;
|
||||
}
|
||||
|
||||
pcorr
|
||||
{
|
||||
solver PCG;
|
||||
preconditioner DIC;
|
||||
tolerance 1e-5;
|
||||
relTol 0;
|
||||
}
|
||||
|
||||
p_rgh
|
||||
{
|
||||
solver PCG;
|
||||
preconditioner DIC;
|
||||
tolerance 1e-07;
|
||||
relTol 0.05;
|
||||
}
|
||||
|
||||
p_rghFinal
|
||||
{
|
||||
$p_rgh;
|
||||
relTol 0;
|
||||
}
|
||||
|
||||
"(U|k|epsilon).*"
|
||||
{
|
||||
solver smoothSolver;
|
||||
smoother symGaussSeidel;
|
||||
tolerance 1e-06;
|
||||
relTol 0;
|
||||
}
|
||||
|
||||
kinematicCloud:alpha
|
||||
{
|
||||
solver GAMG;
|
||||
tolerance 1e-06;
|
||||
relTol 0.1;
|
||||
smoother GaussSeidel;
|
||||
cacheAgglomeration true;
|
||||
nCellsInCoarsestLevel 10;
|
||||
agglomerator faceAreaPair;
|
||||
mergeLevels 1;
|
||||
}
|
||||
}
|
||||
|
||||
PIMPLE
|
||||
{
|
||||
momentumPredictor no;
|
||||
nOuterCorrectors 1;
|
||||
nCorrectors 3;
|
||||
nNonOrthogonalCorrectors 0;
|
||||
}
|
||||
|
||||
relaxationFactors
|
||||
{
|
||||
equations
|
||||
{
|
||||
".*" 1;
|
||||
}
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
936
tutorials/multiphase/MPPICInterFoam/twoPhasePachuka/system/pachuka.m4
Executable file
936
tutorials/multiphase/MPPICInterFoam/twoPhasePachuka/system/pachuka.m4
Executable file
@ -0,0 +1,936 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: plus |
|
||||
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
object blockMeshDict;
|
||||
}
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
convertToMeters 0.001;
|
||||
|
||||
changecom(//)changequote([,])
|
||||
define(calc, [esyscmd(perl -e 'printf ($1)')])
|
||||
define(VCOUNT, 0)
|
||||
define(vlabel, [[// ]Vertex $1 = VCOUNT define($1, VCOUNT)define([VCOUNT], incr(VCOUNT))])
|
||||
|
||||
define(Dt, 220)
|
||||
define(DdDt, 0.33)
|
||||
define(HtDt, 3)
|
||||
define(PI, 3.14159265)
|
||||
|
||||
define(Dd, calc(Dt * DdDt))
|
||||
define(Ht, calc(HtDt * Dt))
|
||||
define(psB, calc(Ht/10.0))
|
||||
define(psH, calc(psB * 1.5))
|
||||
|
||||
define(Hl, calc(Ht-psH-psB))
|
||||
define(Hl2, calc((Hl/2.0)+psB))
|
||||
define(Hl3, calc(Hl+psB))
|
||||
|
||||
define(eDd, calc(Dt/100))
|
||||
|
||||
define(Rd, calc(Dd/2))
|
||||
define(Rd2, calc(Dd/4))
|
||||
define(Rd3, calc(Rd + eDd))
|
||||
|
||||
define(Rt, calc(Dt/2))
|
||||
define(qRt, calc(Rt * 0.75))
|
||||
|
||||
define(cx, calc(Rd2*cos((PI/180)*45)))
|
||||
define(cy, calc(Rd2*sin((PI/180)*45)))
|
||||
|
||||
define(ccx, calc(Rd*cos((PI/180)*45)))
|
||||
define(ccy, calc(Rd*sin((PI/180)*45)))
|
||||
|
||||
define(ecx, calc(Rd3*cos((PI/180)*45)))
|
||||
define(ecy, calc(Rd3*sin((PI/180)*45)))
|
||||
|
||||
define(tcx, calc(Rt*cos((PI/180)*45)))
|
||||
define(tcy, calc(Rt*sin((PI/180)*45)))
|
||||
|
||||
define(qcx, calc(Rt*0.75*cos((PI/180)*45)))
|
||||
define(qcy, calc(Rt*0.75*sin((PI/180)*45)))
|
||||
|
||||
define(NPS, 7) //square section
|
||||
define(NPS1, 25)
|
||||
define(NPS2, 5) //vertical in the lower cylinder
|
||||
define(NPS3, 10) //vertical in the upper cylindre
|
||||
define(NPD, 8) //square section to perimeter
|
||||
define(NPC, 1) //center
|
||||
define(NPE, 8) //external
|
||||
|
||||
|
||||
vertices
|
||||
(
|
||||
( -cx -cy 0.0)
|
||||
( cx -cy 0.0)
|
||||
( cx cy 0.0)
|
||||
( -cx cy 0.0)
|
||||
|
||||
( -cx -cy psB)
|
||||
( cx -cy psB)
|
||||
( cx cy psB)
|
||||
( -cx cy psB)
|
||||
|
||||
( ccx -ccy 0.0)
|
||||
( ccx ccy 0.0)
|
||||
( ccx -ccy psB)
|
||||
( ccx ccy psB)
|
||||
|
||||
( -ccx -ccy 0.0)
|
||||
( -ccx ccy 0.0)
|
||||
( -ccx -ccy psB)
|
||||
( -ccx ccy psB)
|
||||
|
||||
( ecx -ecy 0.0) //16
|
||||
( ecx ecy 0.0)
|
||||
( ecx -ecy psB)
|
||||
( ecx ecy psB)
|
||||
|
||||
( -ecx -ecy 0.0)
|
||||
( -ecx ecy 0.0)
|
||||
( -ecx -ecy psB)
|
||||
( -ecx ecy psB)
|
||||
|
||||
( qcx -qcy 0.0) //24
|
||||
( qcx qcy 0.0)
|
||||
( qcx -qcy psB)
|
||||
( qcx qcy psB)
|
||||
|
||||
( -qcx -qcy 0.0)
|
||||
( -qcx qcy 0.0)
|
||||
( -qcx -qcy psB)
|
||||
( -qcx qcy psB)
|
||||
|
||||
( tcx -tcy 0.0) //32
|
||||
( tcx tcy 0.0)
|
||||
( tcx -tcy psB)
|
||||
( tcx tcy psB)
|
||||
|
||||
( -tcx -tcy 0.0)
|
||||
( -tcx tcy 0.0)
|
||||
( -tcx -tcy psB)
|
||||
( -tcx tcy psB)
|
||||
|
||||
( qcx -qcy Hl2) //40
|
||||
( qcx qcy Hl2)
|
||||
( -qcx -qcy Hl2)
|
||||
( -qcx qcy Hl2)
|
||||
|
||||
( tcx -tcy Hl2) //44
|
||||
( tcx tcy Hl2)
|
||||
( -tcx -tcy Hl2)
|
||||
( -tcx tcy Hl2)
|
||||
|
||||
( ecx -ecy Hl2) //48
|
||||
( ecx ecy Hl2)
|
||||
( -ecx -ecy Hl2)
|
||||
( -ecx ecy Hl2)
|
||||
|
||||
( -cx -cy Hl2) //52
|
||||
( cx -cy Hl2)
|
||||
( cx cy Hl2)
|
||||
( -cx cy Hl2)
|
||||
|
||||
( ccx -ccy Hl2) //56
|
||||
( ccx ccy Hl2)
|
||||
( -ccx -ccy Hl2)
|
||||
( -ccx ccy Hl2)
|
||||
|
||||
( -cx -cy Hl3) //60
|
||||
( cx -cy Hl3)
|
||||
( cx cy Hl3)
|
||||
( -cx cy Hl3)
|
||||
|
||||
( ccx -ccy Hl3) //64
|
||||
( ccx ccy Hl3)
|
||||
( -ccx -ccy Hl3)
|
||||
( -ccx ccy Hl3)
|
||||
|
||||
( qcx -qcy Hl3) //68
|
||||
( qcx qcy Hl3)
|
||||
( -qcx -qcy Hl3)
|
||||
( -qcx qcy Hl3)
|
||||
|
||||
( ecx -ecy Hl3) //72
|
||||
( ecx ecy Hl3)
|
||||
( -ecx -ecy Hl3)
|
||||
( -ecx ecy Hl3)
|
||||
|
||||
( tcx -tcy Hl3) //76
|
||||
( tcx tcy Hl3)
|
||||
( -tcx -tcy Hl3)
|
||||
( -tcx tcy Hl3)
|
||||
|
||||
( -cx -cy Ht) //80
|
||||
( cx -cy Ht)
|
||||
( cx cy Ht)
|
||||
( -cx cy Ht)
|
||||
|
||||
( ccx -ccy Ht) //84
|
||||
( ccx ccy Ht)
|
||||
( -ccx -ccy Ht)
|
||||
( -ccx ccy Ht)
|
||||
|
||||
( qcx -qcy Ht) //88
|
||||
( qcx qcy Ht)
|
||||
( -qcx -qcy Ht)
|
||||
( -qcx qcy Ht)
|
||||
|
||||
( ecx -ecy Ht) //92
|
||||
( ecx ecy Ht)
|
||||
( -ecx -ecy Ht)
|
||||
( -ecx ecy Ht)
|
||||
|
||||
( tcx -tcy Ht) //96
|
||||
( tcx tcy Ht)
|
||||
( -tcx -tcy Ht)
|
||||
( -tcx tcy Ht)
|
||||
);
|
||||
|
||||
blocks
|
||||
(
|
||||
hex
|
||||
(
|
||||
0 1 2 3
|
||||
4 5 6 7
|
||||
)
|
||||
(NPS NPS NPS2)
|
||||
simpleGrading (1 1 1)
|
||||
|
||||
//quartier est
|
||||
hex
|
||||
(
|
||||
1 8 9 2
|
||||
5 10 11 6
|
||||
)
|
||||
(NPD NPS NPS2)
|
||||
simpleGrading (0.9 1 1)
|
||||
|
||||
//quartier ouest
|
||||
hex
|
||||
(
|
||||
3 13 12 0
|
||||
7 15 14 4
|
||||
)
|
||||
(NPD NPS NPS2)
|
||||
simpleGrading (0.9 1 1)
|
||||
|
||||
//quartier sud
|
||||
hex
|
||||
(
|
||||
0 12 8 1
|
||||
4 14 10 5
|
||||
)
|
||||
(NPD NPS NPS2)
|
||||
simpleGrading (0.9 1 1)
|
||||
|
||||
//quartier nord
|
||||
hex
|
||||
(
|
||||
2 9 13 3
|
||||
6 11 15 7
|
||||
)
|
||||
(NPD NPS NPS2)
|
||||
simpleGrading (0.9 1 1)
|
||||
|
||||
// **************************************
|
||||
|
||||
// Fabrication couronne inférieure 4 et 5
|
||||
|
||||
//ceinture est
|
||||
hex
|
||||
(
|
||||
8 16 17 9
|
||||
10 18 19 11
|
||||
)
|
||||
(NPC NPS NPS2)
|
||||
simpleGrading (1 1 1)
|
||||
|
||||
//ceinture ouest
|
||||
hex
|
||||
(
|
||||
13 21 20 12
|
||||
15 23 22 14
|
||||
)
|
||||
(NPC NPS NPS2)
|
||||
simpleGrading (1 1 1)
|
||||
|
||||
//ceinture sud
|
||||
hex
|
||||
(
|
||||
12 20 16 8
|
||||
14 22 18 10
|
||||
)
|
||||
(NPC NPS NPS2)
|
||||
simpleGrading (1 1 1)
|
||||
|
||||
//ceinture nord
|
||||
hex
|
||||
(
|
||||
9 17 21 13
|
||||
11 19 23 15
|
||||
)
|
||||
(NPC NPS NPS2)
|
||||
simpleGrading (1 1 1)
|
||||
|
||||
|
||||
// Couronne inférieure externe
|
||||
//mi-couronne est
|
||||
hex
|
||||
(
|
||||
16 24 25 17
|
||||
18 26 27 19
|
||||
)
|
||||
(NPE NPS NPS2)
|
||||
simpleGrading (1.1 1 1)
|
||||
|
||||
//mi-couronne ouest
|
||||
hex
|
||||
(
|
||||
21 29 28 20
|
||||
23 31 30 22
|
||||
)
|
||||
(NPE NPS NPS2)
|
||||
simpleGrading (1.1 1 1)
|
||||
|
||||
//mi-couronne sud
|
||||
hex
|
||||
(
|
||||
20 28 24 16
|
||||
22 30 26 18
|
||||
)
|
||||
(NPE NPS NPS2)
|
||||
simpleGrading (1.1 1 1)
|
||||
|
||||
//mi-couronne nord
|
||||
hex
|
||||
(
|
||||
17 25 29 21
|
||||
19 27 31 23
|
||||
)
|
||||
(NPE NPS NPS2)
|
||||
simpleGrading (1.1 1 1)
|
||||
|
||||
//mi-couronne est2
|
||||
hex
|
||||
(
|
||||
24 32 33 25
|
||||
26 34 35 27
|
||||
)
|
||||
(NPE NPS NPS2)
|
||||
simpleGrading (0.9 1 1)
|
||||
|
||||
//mi-couronne ouest2
|
||||
hex
|
||||
(
|
||||
29 37 36 28
|
||||
31 39 38 30
|
||||
)
|
||||
(NPE NPS NPS2)
|
||||
simpleGrading (0.9 1 1)
|
||||
|
||||
//mi-couronne sud2
|
||||
hex
|
||||
(
|
||||
28 36 32 24
|
||||
30 38 34 26
|
||||
)
|
||||
(NPE NPS NPS2)
|
||||
simpleGrading (0.9 1 1)
|
||||
|
||||
//mi-couronne nord2
|
||||
hex
|
||||
(
|
||||
25 33 37 29
|
||||
27 35 39 31
|
||||
)
|
||||
(NPE NPS NPS2)
|
||||
simpleGrading (0.9 1 1)
|
||||
|
||||
// LongBas
|
||||
|
||||
//est
|
||||
hex
|
||||
(
|
||||
18 26 27 19
|
||||
48 40 41 49
|
||||
)
|
||||
(NPE NPS NPS1)
|
||||
simpleGrading (1.1 1 1)
|
||||
|
||||
//ouest
|
||||
hex
|
||||
(
|
||||
23 31 30 22
|
||||
51 43 42 50
|
||||
)
|
||||
(NPE NPS NPS1)
|
||||
simpleGrading (1.1 1 1)
|
||||
|
||||
//sud
|
||||
hex
|
||||
(
|
||||
22 30 26 18
|
||||
50 42 40 48
|
||||
)
|
||||
(NPE NPS NPS1)
|
||||
simpleGrading (1.1 1 1)
|
||||
|
||||
//Nord
|
||||
hex
|
||||
(
|
||||
19 27 31 23
|
||||
49 41 43 51
|
||||
)
|
||||
(NPE NPS NPS1)
|
||||
simpleGrading (1.1 1 1)
|
||||
|
||||
//square
|
||||
hex
|
||||
(
|
||||
4 5 6 7
|
||||
52 53 54 55
|
||||
)
|
||||
(NPS NPS NPS1)
|
||||
simpleGrading (1 1 1)
|
||||
|
||||
// est-in
|
||||
hex
|
||||
(
|
||||
5 10 11 6
|
||||
53 56 57 54
|
||||
)
|
||||
(NPD NPS NPS1)
|
||||
simpleGrading (0.9 1 1)
|
||||
|
||||
// ouest-in
|
||||
hex
|
||||
(
|
||||
7 15 14 4
|
||||
55 59 58 52
|
||||
)
|
||||
(NPD NPS NPS1)
|
||||
simpleGrading (0.9 1 1)
|
||||
|
||||
// sud-in
|
||||
hex
|
||||
(
|
||||
4 14 10 5
|
||||
52 58 56 53
|
||||
)
|
||||
(NPD NPS NPS1)
|
||||
simpleGrading (0.9 1 1)
|
||||
|
||||
// nord-in
|
||||
hex
|
||||
(
|
||||
6 11 15 7
|
||||
54 57 59 55
|
||||
)
|
||||
(NPD NPS NPS1)
|
||||
simpleGrading (0.9 1 1)
|
||||
|
||||
// Couronne exterieure longue
|
||||
|
||||
// est
|
||||
hex
|
||||
(
|
||||
26 34 35 27
|
||||
40 44 45 41
|
||||
)
|
||||
(NPE NPS NPS1)
|
||||
simpleGrading (0.9 1 1)
|
||||
|
||||
// ouest
|
||||
hex
|
||||
(
|
||||
31 39 38 30
|
||||
43 47 46 42
|
||||
)
|
||||
(NPE NPS NPS1)
|
||||
simpleGrading (0.9 1 1)
|
||||
|
||||
// sud
|
||||
hex
|
||||
(
|
||||
30 38 34 26
|
||||
42 46 44 40
|
||||
)
|
||||
(NPE NPS NPS1)
|
||||
simpleGrading (0.9 1 1)
|
||||
|
||||
// nord
|
||||
hex
|
||||
(
|
||||
27 35 39 31
|
||||
41 45 47 43
|
||||
)
|
||||
(NPE NPS NPS1)
|
||||
simpleGrading (0.9 1 1)
|
||||
|
||||
// longHaut
|
||||
|
||||
//square
|
||||
hex
|
||||
(
|
||||
52 53 54 55
|
||||
60 61 62 63
|
||||
)
|
||||
(NPS NPS NPS1)
|
||||
simpleGrading (1 1 1)
|
||||
|
||||
// est-in
|
||||
hex
|
||||
(
|
||||
53 56 57 54
|
||||
61 64 65 62
|
||||
)
|
||||
(NPD NPS NPS1)
|
||||
simpleGrading (0.9 1 1)
|
||||
|
||||
// ouest-in
|
||||
hex
|
||||
(
|
||||
55 59 58 52
|
||||
63 67 66 60
|
||||
)
|
||||
(NPD NPS NPS1)
|
||||
simpleGrading (0.9 1 1)
|
||||
|
||||
// sud-in
|
||||
hex
|
||||
(
|
||||
52 58 56 53
|
||||
60 66 64 61
|
||||
)
|
||||
(NPD NPS NPS1)
|
||||
simpleGrading (0.9 1 1)
|
||||
|
||||
// nord-in
|
||||
hex
|
||||
(
|
||||
54 57 59 55
|
||||
62 65 67 63
|
||||
)
|
||||
(NPD NPS NPS1)
|
||||
simpleGrading (0.9 1 1)
|
||||
|
||||
//est
|
||||
hex
|
||||
(
|
||||
48 40 41 49
|
||||
72 68 69 73
|
||||
)
|
||||
(NPE NPS NPS1)
|
||||
simpleGrading (1.1 1 1)
|
||||
|
||||
//ouest
|
||||
hex
|
||||
(
|
||||
51 43 42 50
|
||||
75 71 70 74
|
||||
)
|
||||
(NPE NPS NPS1)
|
||||
simpleGrading (1.1 1 1)
|
||||
|
||||
//sud
|
||||
hex
|
||||
(
|
||||
50 42 40 48
|
||||
74 70 68 72
|
||||
)
|
||||
(NPE NPS NPS1)
|
||||
simpleGrading (1.1 1 1)
|
||||
|
||||
//Nord
|
||||
hex
|
||||
(
|
||||
49 41 43 51
|
||||
73 69 71 75
|
||||
)
|
||||
(NPE NPS NPS1)
|
||||
simpleGrading (1.1 1 1)
|
||||
|
||||
// couronne externe haute
|
||||
|
||||
// est
|
||||
hex
|
||||
(
|
||||
40 44 45 41
|
||||
68 76 77 69
|
||||
)
|
||||
(NPE NPS NPS1)
|
||||
simpleGrading (0.9 1 1)
|
||||
|
||||
// ouest
|
||||
hex
|
||||
(
|
||||
43 47 46 42
|
||||
71 79 78 70
|
||||
)
|
||||
(NPE NPS NPS1)
|
||||
simpleGrading (0.9 1 1)
|
||||
|
||||
// sud
|
||||
hex
|
||||
(
|
||||
42 46 44 40
|
||||
70 78 76 68
|
||||
)
|
||||
(NPE NPS NPS1)
|
||||
simpleGrading (0.9 1 1)
|
||||
|
||||
// nord
|
||||
hex
|
||||
(
|
||||
41 45 47 43
|
||||
69 77 79 71
|
||||
)
|
||||
(NPE NPS NPS1)
|
||||
simpleGrading (0.9 1 1)
|
||||
|
||||
// Bloc supérieur
|
||||
|
||||
//square
|
||||
hex
|
||||
(
|
||||
60 61 62 63
|
||||
80 81 82 83
|
||||
)
|
||||
(NPS NPS NPS3)
|
||||
simpleGrading (1 1 1)
|
||||
|
||||
// est-in
|
||||
hex
|
||||
(
|
||||
61 64 65 62
|
||||
81 84 85 82
|
||||
)
|
||||
(NPD NPS NPS3)
|
||||
simpleGrading (0.9 1 1)
|
||||
|
||||
// ouest-in
|
||||
hex
|
||||
(
|
||||
63 67 66 60
|
||||
83 87 86 80
|
||||
)
|
||||
(NPD NPS NPS3)
|
||||
simpleGrading (0.9 1 1)
|
||||
|
||||
// sud-in
|
||||
hex
|
||||
(
|
||||
60 66 64 61
|
||||
80 86 84 81
|
||||
)
|
||||
(NPD NPS NPS3)
|
||||
simpleGrading (0.9 1 1)
|
||||
|
||||
// nord-in
|
||||
hex
|
||||
(
|
||||
62 65 67 63
|
||||
82 85 87 83
|
||||
)
|
||||
(NPD NPS NPS3)
|
||||
simpleGrading (0.9 1 1)
|
||||
|
||||
// Fabrication couronne supérieure 6 et 7
|
||||
|
||||
//ceinture est
|
||||
hex
|
||||
(
|
||||
64 72 73 65
|
||||
84 92 93 85
|
||||
)
|
||||
(NPC NPS NPS3)
|
||||
simpleGrading (1 1 1)
|
||||
|
||||
//ceinture ouest
|
||||
hex
|
||||
(
|
||||
67 75 74 66
|
||||
87 95 94 86
|
||||
)
|
||||
(NPC NPS NPS3)
|
||||
simpleGrading (1 1 1)
|
||||
|
||||
//ceinture sud
|
||||
hex
|
||||
(
|
||||
66 74 72 64
|
||||
86 94 92 84
|
||||
)
|
||||
(NPC NPS NPS3)
|
||||
simpleGrading (1 1 1)
|
||||
|
||||
//ceinture nord
|
||||
hex
|
||||
(
|
||||
65 73 75 67
|
||||
85 93 95 87
|
||||
)
|
||||
(NPC NPS NPS3)
|
||||
simpleGrading (1 1 1)
|
||||
|
||||
//est
|
||||
hex
|
||||
(
|
||||
72 68 69 73
|
||||
92 88 89 93
|
||||
)
|
||||
(NPE NPS NPS3)
|
||||
simpleGrading (1.1 1 1)
|
||||
|
||||
//ouest
|
||||
hex
|
||||
(
|
||||
75 71 70 74
|
||||
95 91 90 94
|
||||
)
|
||||
(NPE NPS NPS3)
|
||||
simpleGrading (1.1 1 1)
|
||||
|
||||
//sud
|
||||
hex
|
||||
(
|
||||
74 70 68 72
|
||||
94 90 88 92
|
||||
)
|
||||
(NPE NPS NPS3)
|
||||
simpleGrading (1.1 1 1)
|
||||
|
||||
//Nord
|
||||
hex
|
||||
(
|
||||
73 69 71 75
|
||||
93 89 91 95
|
||||
)
|
||||
(NPE NPS NPS3)
|
||||
simpleGrading (1.1 1 1)
|
||||
|
||||
// couronne externe
|
||||
|
||||
// est
|
||||
hex
|
||||
(
|
||||
68 76 77 69
|
||||
88 96 97 89
|
||||
)
|
||||
(NPE NPS NPS3)
|
||||
simpleGrading (0.9 1 1)
|
||||
|
||||
// ouest
|
||||
hex
|
||||
(
|
||||
71 79 78 70
|
||||
91 99 98 90
|
||||
)
|
||||
(NPE NPS NPS3)
|
||||
simpleGrading (0.9 1 1)
|
||||
|
||||
// sud
|
||||
hex
|
||||
(
|
||||
70 78 76 68
|
||||
90 98 96 88
|
||||
)
|
||||
(NPE NPS NPS3)
|
||||
simpleGrading (0.9 1 1)
|
||||
|
||||
// nord
|
||||
hex
|
||||
(
|
||||
69 77 79 71
|
||||
89 97 99 91
|
||||
)
|
||||
(NPE NPS NPS3)
|
||||
simpleGrading (0.9 1 1)
|
||||
);
|
||||
|
||||
edges
|
||||
(
|
||||
arc 8 9 (Rd 0.0 0.0)
|
||||
arc 10 11 (Rd 0.0 psB)
|
||||
|
||||
arc 13 12 (-Rd 0.0 0.0)
|
||||
arc 15 14 (-Rd 0.0 psB)
|
||||
|
||||
arc 12 8 (0.0 -Rd 0.0)
|
||||
arc 14 10 (0.0 -Rd psB)
|
||||
|
||||
arc 9 13 (0.0 Rd 0.0)
|
||||
arc 11 15 (0.0 Rd psB)
|
||||
|
||||
arc 16 17 (Rd3 0.0 0.0)
|
||||
arc 18 19 (Rd3 0.0 psB)
|
||||
|
||||
arc 21 20 (-Rd3 0.0 0.0)
|
||||
arc 23 22 (-Rd3 0.0 psB)
|
||||
|
||||
arc 20 16 (0.0 -Rd3 0.0)
|
||||
arc 22 18 (0.0 -Rd3 psB)
|
||||
|
||||
arc 17 21 (0.0 Rd3 0.0)
|
||||
arc 19 23 (0.0 Rd3 psB)
|
||||
|
||||
arc 24 25 (qRt 0.0 0.0)
|
||||
arc 26 27 (qRt 0.0 psB)
|
||||
|
||||
arc 28 29 (-qRt 0.0 0.0)
|
||||
arc 30 31 (-qRt 0.0 psB)
|
||||
|
||||
arc 28 24 (0.0 -qRt 0.0)
|
||||
arc 30 26 (0.0 -qRt psB)
|
||||
|
||||
arc 25 29 (0.0 qRt 0.0)
|
||||
arc 27 31 (0.0 qRt psB)
|
||||
|
||||
arc 32 33 (Rt 0.0 0.0)
|
||||
arc 34 35 (Rt 0.0 psB)
|
||||
|
||||
arc 37 36 (-Rt 0.0 0.0)
|
||||
arc 39 38 (-Rt 0.0 psB)
|
||||
|
||||
arc 36 32 (0.0 -Rt 0.0)
|
||||
arc 38 34 (0.0 -Rt psB)
|
||||
|
||||
arc 33 37 (0.0 Rt 0.0)
|
||||
arc 35 39 (0.0 Rt psB)
|
||||
|
||||
arc 48 49 (Rd3 0.0 Hl2)
|
||||
arc 40 41 (qRt 0.0 Hl2)
|
||||
|
||||
arc 51 50 (-Rd3 0.0 Hl2)
|
||||
arc 43 42 (-qRt 0.0 Hl2)
|
||||
|
||||
arc 42 40 (0.0 -qRt Hl2)
|
||||
arc 50 48 (0.0 -Rd3 Hl2)
|
||||
|
||||
arc 41 43 (0.0 qRt Hl2)
|
||||
arc 49 51 (0.0 Rd3 Hl2)
|
||||
|
||||
arc 56 57 (Rd 0.0 Hl2)
|
||||
arc 58 59 (-Rd 0.0 Hl2)
|
||||
|
||||
arc 58 56 (0.0 -Rd Hl2)
|
||||
arc 57 59 (0.0 Rd Hl2)
|
||||
|
||||
arc 44 45 (Rt 0.0 Hl2)
|
||||
arc 46 47 (-Rt 0.0 Hl2)
|
||||
|
||||
arc 46 44 (0.0 -Rt Hl2)
|
||||
arc 45 47 (0.0 Rt Hl2)
|
||||
|
||||
arc 64 65 (Rd 0.0 Hl3)
|
||||
arc 67 66 (-Rd 0.0 Hl3)
|
||||
|
||||
arc 64 66 (0.0 -Rd Hl3)
|
||||
arc 65 67 (0.0 Rd Hl3)
|
||||
|
||||
arc 72 73 (Rd3 0.0 Hl3)
|
||||
arc 68 69 (qRt 0.0 Hl3)
|
||||
|
||||
arc 70 71 (-qRt 0.0 Hl3)
|
||||
arc 74 75 (-Rd3 0.0 Hl3)
|
||||
|
||||
arc 72 74 (0.0 -Rd3 Hl3)
|
||||
arc 68 70 (0.0 -qRt Hl3)
|
||||
|
||||
arc 73 75 (0.0 Rd3 Hl3)
|
||||
arc 69 71 (0.0 qRt Hl3)
|
||||
|
||||
arc 68 69 (qRt 0.0 Hl3)
|
||||
arc 76 77 (Rt 0.0 Hl3)
|
||||
|
||||
arc 78 79 (-Rt 0.0 Hl3)
|
||||
arc 76 78 (0.0 -Rt Hl3)
|
||||
|
||||
arc 77 79 (0.0 Rt Hl3)
|
||||
arc 84 85 (Rd 0.0 Ht)
|
||||
|
||||
arc 86 87 (-Rd 0.0 Ht)
|
||||
arc 84 86 (0.0 -Rd Ht)
|
||||
|
||||
arc 85 87 (0.0 Rd Ht)
|
||||
arc 92 93 (Rd3 0.0 Ht)
|
||||
|
||||
arc 94 95 (-Rd3 0.0 Ht)
|
||||
arc 94 92 (0.0 -Rd3 Ht)
|
||||
|
||||
arc 93 95 (0.0 Rd3 Ht)
|
||||
arc 88 89 (qRt 0.0 Ht)
|
||||
|
||||
arc 90 91 (-qRt 0.0 Ht)
|
||||
arc 88 90 (0.0 -qRt Ht)
|
||||
|
||||
arc 89 91 (0.0 qRt Ht)
|
||||
arc 96 97 (Rt 0.0 Ht)
|
||||
|
||||
arc 98 99 (-Rt 0.0 Ht)
|
||||
arc 98 96 (0.0 -Rt Ht)
|
||||
|
||||
arc 97 99 (0.0 Rt Ht)
|
||||
);
|
||||
|
||||
|
||||
defaultPatch
|
||||
{
|
||||
name walls;
|
||||
type wall;
|
||||
}
|
||||
|
||||
boundary
|
||||
(
|
||||
base
|
||||
{
|
||||
type wall;
|
||||
faces
|
||||
(
|
||||
(0 1 2 3)
|
||||
(1 8 9 2)
|
||||
(2 9 13 3)
|
||||
(3 13 12 0)
|
||||
(0 12 8 1)
|
||||
);
|
||||
}
|
||||
|
||||
outlet
|
||||
{
|
||||
type patch;
|
||||
faces
|
||||
(
|
||||
(80 81 82 83)
|
||||
(81 84 85 82)
|
||||
(83 87 86 80)
|
||||
(80 86 84 81)
|
||||
(82 85 87 83)
|
||||
|
||||
(84 92 93 85)
|
||||
(87 95 94 86)
|
||||
(86 94 92 84)
|
||||
(85 93 95 87)
|
||||
|
||||
(92 88 89 93)
|
||||
(95 91 90 94)
|
||||
(94 90 88 92)
|
||||
(93 89 91 95)
|
||||
|
||||
(88 96 97 89)
|
||||
(91 99 98 90)
|
||||
(90 98 96 88)
|
||||
(89 97 99 91)
|
||||
);
|
||||
}
|
||||
);
|
||||
@ -0,0 +1,36 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: plus |
|
||||
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "system";
|
||||
object setFieldsDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
defaultFieldValues
|
||||
(
|
||||
volScalarFieldValue alpha.water 0
|
||||
);
|
||||
|
||||
regions
|
||||
(
|
||||
boxToCell
|
||||
{
|
||||
box (-1 -1 0) (1 1 0.58);
|
||||
fieldValues
|
||||
(
|
||||
volScalarFieldValue alpha.water 1
|
||||
);
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -0,0 +1,43 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: plus |
|
||||
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "system";
|
||||
object topoSetDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
actions
|
||||
(
|
||||
{
|
||||
name inlet;
|
||||
type faceSet;
|
||||
action new;
|
||||
source boxToFace;
|
||||
sourceInfo
|
||||
{
|
||||
box (-0.01 -0.01 -0.03)(0.01 0.01 0.001);
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
name inletZone;
|
||||
type faceZoneSet;
|
||||
action new;
|
||||
source setToFaceZone;
|
||||
sourceInfo
|
||||
{
|
||||
faceSet inlet;
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
// ************************************************************************* //
|
||||
Reference in New Issue
Block a user