From bae45027f1cf3e494da3359dd4bdd19a88900dee Mon Sep 17 00:00:00 2001 From: Chris Greenshields Date: Sun, 1 Oct 2017 12:08:28 +0100 Subject: [PATCH] Added icoUncoupledKinematicCloud packaged function object --- .../icoUncoupledKinematicCloud | 20 +++ .../lagrangian/kinematicCloudProperties | 117 ++++++++++++++++++ 2 files changed, 137 insertions(+) create mode 100644 etc/caseDicts/postProcessing/solvers/icoUncoupledKinematicCloud/icoUncoupledKinematicCloud create mode 100644 etc/caseDicts/solvers/lagrangian/kinematicCloudProperties diff --git a/etc/caseDicts/postProcessing/solvers/icoUncoupledKinematicCloud/icoUncoupledKinematicCloud b/etc/caseDicts/postProcessing/solvers/icoUncoupledKinematicCloud/icoUncoupledKinematicCloud new file mode 100644 index 000000000..9b45c0789 --- /dev/null +++ b/etc/caseDicts/postProcessing/solvers/icoUncoupledKinematicCloud/icoUncoupledKinematicCloud @@ -0,0 +1,20 @@ +/*--------------------------------*- C++ -*----------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | + \\ / A nd | Web: www.OpenFOAM.org + \\/ M anipulation | +------------------------------------------------------------------------------- +Description + Tracks a cloud of parcels driven by the flow of the continuous phase. + + The cloud is specifed by a kinematicCloudProperties file in the constant + directory. A template file is provided in: + $FOAM_ETC/caseDicts/solvers/lagrangian + +\*---------------------------------------------------------------------------*/ + +type icoUncoupledKinematicCloud; +libs ("liblagrangianFunctionObjects.so"); + +// ************************************************************************* // diff --git a/etc/caseDicts/solvers/lagrangian/kinematicCloudProperties b/etc/caseDicts/solvers/lagrangian/kinematicCloudProperties new file mode 100644 index 000000000..11cca6b80 --- /dev/null +++ b/etc/caseDicts/solvers/lagrangian/kinematicCloudProperties @@ -0,0 +1,117 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 5 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object kinematicCloudProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +solution +{ + active true; + transient true; + coupled true; + cellValueSourceCorrection off; + + sourceTerms + { + schemes + { + U semiImplicit 1; + } + } + + integrationSchemes + { + U Euler; + } + + interpolationSchemes + { + rho cell; + U cellPoint; + mu cell; + } +} + +constantProperties +{ + rho0 1000; +} + +subModels +{ + particleForces + { + sphereDrag; +// gravity; + } + + injectionModels + { + model1 + { + type patchInjection; + patchName ; + parcelBasisType mass; // fixed; + + SOI 0; // Start time of injection + duration 0.1; + + U0 (1 0 0); + massTotal 1e-3; + parcelsPerSecond 1000; + flowRateProfile constant 1; + +// nParticle 100; // Required for fixed parcelBasisType + sizeDistribution + { + type fixedValue; + fixedValueDistribution + { + value 1e-3; + } + } + } + } + + dispersionModel stochasticDispersionRAS; + + patchInteractionModel localInteraction; + + localInteractionCoeffs + { + patches + ( + outlet + { + type escape; + } + ".*" + { + type rebound; // For Un = normal speed; Ut = tangential speed + e 1; // e = (Un_reflected / Un_incident) + mu 0; // mu = [1 - (Ut_reflected / Ut_incident)] + } + ); + } + + stochasticCollisionModel none; + + surfaceFilmModel none; + + collisionModel none; +} + +cloudFunctions +{} + +// ************************************************************************* //