It is better to not select and instantiate a model, fvOption etc. than to create it and set it inactive as the creation process requires reading of settings, parameters, fields etc. with all the associated specification and storage without being used. Also the incomplete implementation added a lot of complexity in the low-level operation of models introducing a significant maintenance overhead and development overhead for new models.
140 lines
3.1 KiB
C++
140 lines
3.1 KiB
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
========= |
|
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
\\ / O peration | Website: https://openfoam.org
|
|
\\ / A nd | Version: dev
|
|
\\/ M anipulation |
|
|
\*---------------------------------------------------------------------------*/
|
|
FoamFile
|
|
{
|
|
version 2.0;
|
|
format ascii;
|
|
class dictionary;
|
|
location "constant";
|
|
object cloudProperties;
|
|
}
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
type cloud;
|
|
|
|
solution
|
|
{
|
|
coupled false;
|
|
transient yes;
|
|
cellValueSourceCorrection off;
|
|
maxCo 0.3;
|
|
|
|
interpolationSchemes
|
|
{
|
|
rho cell;
|
|
U cellPoint;
|
|
mu cell;
|
|
}
|
|
|
|
integrationSchemes
|
|
{
|
|
U Euler;
|
|
}
|
|
}
|
|
|
|
constantProperties
|
|
{
|
|
rho0 964;
|
|
youngsModulus 6e8;
|
|
poissonsRatio 0.35;
|
|
}
|
|
|
|
subModels
|
|
{
|
|
particleForces
|
|
{
|
|
sphereDrag;
|
|
gravity;
|
|
}
|
|
|
|
injectionModels
|
|
{
|
|
model1
|
|
{
|
|
type manualInjection;
|
|
massTotal 0;
|
|
parcelBasisType fixed;
|
|
nParticle 1;
|
|
SOI 0;
|
|
positionsFile "cloudPositions";
|
|
U0 (0 0 0);
|
|
sizeDistribution
|
|
{
|
|
type fixedValue;
|
|
fixedValueDistribution
|
|
{
|
|
value 0.006;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
dispersionModel none;
|
|
|
|
patchInteractionModel none;
|
|
|
|
surfaceFilmModel none;
|
|
|
|
stochasticCollisionModel none;
|
|
|
|
collisionModel pairCollision;
|
|
|
|
pairCollisionCoeffs
|
|
{
|
|
// Maximum possible particle diameter expected at any time
|
|
maxInteractionDistance 0.006;
|
|
|
|
writeReferredParticleCloud no;
|
|
|
|
pairModel pairSpringSliderDashpot;
|
|
|
|
pairSpringSliderDashpotCoeffs
|
|
{
|
|
useEquivalentSize no;
|
|
alpha 0.12;
|
|
b 1.5;
|
|
mu 0.52;
|
|
cohesionEnergyDensity 0;
|
|
collisionResolutionSteps 12;
|
|
};
|
|
|
|
wallModel wallLocalSpringSliderDashpot;
|
|
|
|
wallLocalSpringSliderDashpotCoeffs
|
|
{
|
|
useEquivalentSize no;
|
|
collisionResolutionSteps 12;
|
|
walls
|
|
{
|
|
youngsModulus 1e10;
|
|
poissonsRatio 0.23;
|
|
alpha 0.12;
|
|
b 1.5;
|
|
mu 0.43;
|
|
cohesionEnergyDensity 0;
|
|
}
|
|
frontAndBack
|
|
{
|
|
youngsModulus 1e10;
|
|
poissonsRatio 0.23;
|
|
alpha 0.12;
|
|
b 1.5;
|
|
mu 0.1;
|
|
cohesionEnergyDensity 0;
|
|
}
|
|
};
|
|
}
|
|
}
|
|
|
|
|
|
cloudFunctions
|
|
{}
|
|
|
|
|
|
// ************************************************************************* //
|