commit
610317715d
|
@ -0,0 +1,53 @@
|
||||||
|
/* -------------------------------*- C++ -*--------------------------------- *\
|
||||||
|
| phasicFlow File |
|
||||||
|
| copyright: www.cemf.ir |
|
||||||
|
\* ------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
objectName interaction;
|
||||||
|
objectType dicrionary;
|
||||||
|
|
||||||
|
materials (prop1); // a list of materials names
|
||||||
|
densities (1000.0); // density of materials [kg/m3]
|
||||||
|
|
||||||
|
contactListType sortedContactList;
|
||||||
|
|
||||||
|
model
|
||||||
|
{
|
||||||
|
contactForceModel nonLinearNonLimited;
|
||||||
|
rollingFrictionModel normal;
|
||||||
|
|
||||||
|
Yeff (1.0e6); // Young modulus [Pa]
|
||||||
|
|
||||||
|
Geff (0.8e6); // Shear modulus [Pa]
|
||||||
|
|
||||||
|
nu (0.25); // Poisson's ratio [-]
|
||||||
|
|
||||||
|
en (0.7); // coefficient of normal restitution
|
||||||
|
|
||||||
|
et (1.0); // coefficient of tangential restitution
|
||||||
|
|
||||||
|
mu (0.3); // dynamic friction
|
||||||
|
|
||||||
|
mur (0.1); // rolling friction
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
contactSearch
|
||||||
|
{
|
||||||
|
method NBS; // method for broad search particle-particle
|
||||||
|
wallMapping cellMapping; // method for broad search particle-wall
|
||||||
|
|
||||||
|
NBSInfo
|
||||||
|
{
|
||||||
|
updateFrequency 10; // each 20 timesteps, update neighbor list
|
||||||
|
sizeRatio 1.1; // bounding box size to particle diameter (max)
|
||||||
|
}
|
||||||
|
|
||||||
|
cellMappingInfo
|
||||||
|
{
|
||||||
|
updateFrequency 10; // each 20 timesteps, update neighbor list
|
||||||
|
cellExtent 0.6; // bounding box for particle-wall search (> 0.5)
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,45 @@
|
||||||
|
/* -------------------------------*- C++ -*--------------------------------- *\
|
||||||
|
| phasicFlow File |
|
||||||
|
| copyright: www.cemf.ir |
|
||||||
|
\* ------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
objectName particleInsertion;
|
||||||
|
objectType dicrionary;
|
||||||
|
|
||||||
|
|
||||||
|
active yes; // is insertion active?
|
||||||
|
|
||||||
|
collisionCheck No; // not implemented for yes
|
||||||
|
|
||||||
|
/*
|
||||||
|
five layers of particles are packed one-by-one using 5 insertion steps.
|
||||||
|
*/
|
||||||
|
|
||||||
|
layer0
|
||||||
|
{
|
||||||
|
type cylinderRegion; // type of insertion region
|
||||||
|
rate 5000; // insertion rate (particles/s)
|
||||||
|
startTime 0; // (s)
|
||||||
|
endTime 100; // (s)
|
||||||
|
interval 0.025; //s
|
||||||
|
|
||||||
|
cylinderRegionInfo
|
||||||
|
{
|
||||||
|
radius 0.09; // radius of cylinder (m)
|
||||||
|
p1 (0.22 0.73 0.25); // (m,m,m)
|
||||||
|
p2 (0.22 0.742 0.25); // (m,m,m)
|
||||||
|
}
|
||||||
|
|
||||||
|
setFields
|
||||||
|
{
|
||||||
|
velocity realx3 (0.0 -0.6 -0); // initial velocity of inserted particles
|
||||||
|
}
|
||||||
|
|
||||||
|
mixture
|
||||||
|
{
|
||||||
|
sphere1 1; // mixture composition of inserted particles
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
/* -------------------------------*- C++ -*--------------------------------- *\
|
||||||
|
| phasicFlow File |
|
||||||
|
| copyright: www.cemf.ir |
|
||||||
|
\* ------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
objectName sphereDict;
|
||||||
|
objectType sphereShape;
|
||||||
|
|
||||||
|
names (sphere1); // names of shapes
|
||||||
|
diameters (0.01); // diameter of shapes
|
||||||
|
materials (prop1); // material names for shapes
|
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
|
ls | grep -P "^(([0-9]+\.?[0-9]*)|(\.[0-9]+))$" | xargs -d"\n" rm -rf
|
||||||
|
rm -rf VTK
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
|
@ -0,0 +1,21 @@
|
||||||
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
echo "\n<--------------------------------------------------------------------->"
|
||||||
|
echo "1) Creating particles"
|
||||||
|
echo "<--------------------------------------------------------------------->\n"
|
||||||
|
particlesPhasicFlow
|
||||||
|
|
||||||
|
echo "\n<--------------------------------------------------------------------->"
|
||||||
|
echo "2) Creating geometry"
|
||||||
|
echo "<--------------------------------------------------------------------->\n"
|
||||||
|
geometryPhasicFlow
|
||||||
|
|
||||||
|
echo "\n<--------------------------------------------------------------------->"
|
||||||
|
echo "3) Running the case"
|
||||||
|
echo "<--------------------------------------------------------------------->\n"
|
||||||
|
sphereGranFlow
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
|
@ -0,0 +1,44 @@
|
||||||
|
/* -------------------------------*- C++ -*--------------------------------- *\
|
||||||
|
| phasicFlow File |
|
||||||
|
| copyright: www.cemf.ir |
|
||||||
|
\* ------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
objectName geometryDict;
|
||||||
|
objectType dictionary;
|
||||||
|
|
||||||
|
// motion model: rotating object around an axis
|
||||||
|
motionModel rotatingAxisMotion;
|
||||||
|
|
||||||
|
surfaces
|
||||||
|
{
|
||||||
|
helix
|
||||||
|
{
|
||||||
|
type stlWall; // type of the wall
|
||||||
|
file helix.stl; // file name in stl folder
|
||||||
|
material prop1; // material name of this wall
|
||||||
|
motion rotAxis; // motion component name
|
||||||
|
}
|
||||||
|
|
||||||
|
shell
|
||||||
|
{
|
||||||
|
type stlWall; // type of the wall
|
||||||
|
file shell.stl; // file name in stl folder
|
||||||
|
material prop1; // material name of this wall
|
||||||
|
motion none; // motion component name
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
rotatingAxisMotionInfo
|
||||||
|
{
|
||||||
|
rotAxis
|
||||||
|
{
|
||||||
|
p1 (1.09635 0.2010556 0.22313511); // first point for the axis of rotation
|
||||||
|
p2 (0.0957492 0.201556 0.22313511); // second point for the axis of rotation
|
||||||
|
omega 3; // rotation speed (rad/s)
|
||||||
|
startTime 5;
|
||||||
|
endTime 30;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,31 @@
|
||||||
|
/* -------------------------------*- C++ -*--------------------------------- *\
|
||||||
|
| phasicFlow File |
|
||||||
|
| copyright: www.cemf.ir |
|
||||||
|
\* ------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
objectName particlesDict;
|
||||||
|
objectType dictionary;
|
||||||
|
|
||||||
|
setFields
|
||||||
|
{
|
||||||
|
defaultValue
|
||||||
|
{
|
||||||
|
velocity realx3 (0 0 0); // linear velocity (m/s)
|
||||||
|
acceleration realx3 (0 0 0); // linear acceleration (m/s2)
|
||||||
|
rotVelocity realx3 (0 0 0); // rotational velocity (rad/s)
|
||||||
|
shapeName word lightSphere; // name of the particle shape
|
||||||
|
}
|
||||||
|
|
||||||
|
selectors
|
||||||
|
{}
|
||||||
|
}
|
||||||
|
|
||||||
|
// positions particles
|
||||||
|
positionParticles
|
||||||
|
{
|
||||||
|
method empty; // creates the required fields with zero particles (empty).
|
||||||
|
|
||||||
|
maxNumberOfParticles 50000; // maximum number of particles in the simulation
|
||||||
|
mortonSorting Yes; // perform initial sorting based on morton code?
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,36 @@
|
||||||
|
/* -------------------------------*- C++ -*--------------------------------- *\
|
||||||
|
| phasicFlow File |
|
||||||
|
| copyright: www.cemf.ir |
|
||||||
|
\* ------------------------------------------------------------------------- */
|
||||||
|
objectName settingsDict;
|
||||||
|
objectType dictionary;;
|
||||||
|
|
||||||
|
run layerdSiloFilling;
|
||||||
|
|
||||||
|
dt 0.0001; // time step for integration (s)
|
||||||
|
|
||||||
|
startTime 0; // start time for simulation
|
||||||
|
|
||||||
|
endTime 20; // end time for simulation
|
||||||
|
|
||||||
|
saveInterval 0.05; // time interval for saving the simulation
|
||||||
|
|
||||||
|
timePrecision 6; // maximum number of digits for time folder
|
||||||
|
|
||||||
|
g (0 -9.8 0); // gravity vector (m/s2)
|
||||||
|
|
||||||
|
/*
|
||||||
|
Simulation domain
|
||||||
|
every particles that goes outside this domain is deleted.
|
||||||
|
*/
|
||||||
|
domain
|
||||||
|
{
|
||||||
|
min (0.0 -0.06 0.001);
|
||||||
|
max (1.2 1 0.5);
|
||||||
|
}
|
||||||
|
|
||||||
|
integrationMethod AdamsBashforth3; // integration method
|
||||||
|
|
||||||
|
timersReport Yes; // report timers?
|
||||||
|
|
||||||
|
timersReportInterval 0.01; // time interval for reporting timers
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue