mirror of
https://github.com/PhasicFlow/phasicFlow.git
synced 2025-06-12 16:26:23 +00:00
tutorials-1 after diameter->distance
This commit is contained in:
@ -3,7 +3,7 @@
|
||||
## Problem
|
||||
A homogenization silo is used to mix particles inside a silo using the circulation of particles. A pneumatic conveying system carries particles from the exit and re-enters them from the top. Here, we use a `periodic` boundary to simulate the action of the pneumatic conveyor system for circulating particles. Particles exiting from the bottom are re-entered from the top using this boundary (`periodic`).
|
||||
|
||||
The simulation case setup is essentially similar to the [`layeredSiloFilling`](https://github.com/PhasicFlow/phasicFlow/tree/main/tutorials/sphereGranFlow/layeredSiloFilling) tutorial. There is also another change with regard to `layeredSiloFilling`. The exit gate is opened after the filling phase of the silo (see `settings/geometryDict` for more details).
|
||||
The simulation case setup is essentially similar to the [`layeredSiloFilling`](../layeredSiloFilling/) tutorial. There is also another change with regard to `layeredSiloFilling`. The exit gate is opened after the filling phase of the silo (see `settings/geometryDict` for more details).
|
||||
|
||||
<div align ="center">
|
||||
<img src="./homoSilo.jpeg" style="width: 400px;">
|
||||
|
@ -37,7 +37,6 @@ model
|
||||
heavyMat-heavyMat heavyMat-wallMat
|
||||
wallMat-wallMat );
|
||||
*/
|
||||
|
||||
Yeff (1.0e6 1.0e6 1.0e6 // Young modulus [Pa]
|
||||
1.0e6 1.0e6
|
||||
1.0e6);
|
||||
|
@ -26,189 +26,185 @@ layer0
|
||||
|
||||
insertionInterval 0.025; // s
|
||||
|
||||
cylinderInfo
|
||||
{
|
||||
radius 0.09; // radius of cylinder (m)
|
||||
cylinderInfo
|
||||
{
|
||||
radius 0.09; // radius of cylinder (m)
|
||||
|
||||
p1 (0.0 0.0 0.1); // (m,m,m)
|
||||
p1 (0.0 0.0 0.1); // (m,m,m)
|
||||
|
||||
p2 (0.0 0.0 0.11); // (m,m,m)
|
||||
}
|
||||
|
||||
setFields
|
||||
{
|
||||
velocity realx3 (0.0 0.0 -0.6); // initial velocity of inserted particles
|
||||
}
|
||||
|
||||
mixture
|
||||
{
|
||||
parType1 1; // mixture composition of inserted particles
|
||||
}
|
||||
p2 (0.0 0.0 0.11); // (m,m,m)
|
||||
}
|
||||
|
||||
setFields
|
||||
{
|
||||
velocity realx3 (0.0 0.0 -0.6); // initial velocity of inserted particles
|
||||
}
|
||||
|
||||
mixture
|
||||
{
|
||||
parType1 1; // mixture composition of inserted particles
|
||||
}
|
||||
}
|
||||
|
||||
layer1
|
||||
{
|
||||
timeControl simulationTime;
|
||||
timeControl simulationTime;
|
||||
|
||||
regionType cylinder; // type of insertion region
|
||||
regionType cylinder; // type of insertion region
|
||||
|
||||
rate 5100; // insertion rate (particles/s)
|
||||
rate 5100; // insertion rate (particles/s)
|
||||
|
||||
startTime 0.7; // (s)
|
||||
startTime 0.7; // (s)
|
||||
|
||||
endTime 1.2; // (s)
|
||||
endTime 1.2; // (s)
|
||||
|
||||
insertionInterval 0.025; // s
|
||||
insertionInterval 0.025; // s
|
||||
|
||||
|
||||
cylinderInfo
|
||||
{
|
||||
radius 0.09;
|
||||
p1 (0.0 0.0 0.16 ); // (m,m,m)
|
||||
p2 (0.0 0.0 0.17); // (m,m,m)
|
||||
}
|
||||
|
||||
setFields
|
||||
{
|
||||
velocity realx3 (0.0 0.0 -0.6);
|
||||
}
|
||||
|
||||
mixture
|
||||
{
|
||||
parType2 1; // only parType2
|
||||
|
||||
}
|
||||
|
||||
cylinderInfo
|
||||
{
|
||||
radius 0.09;
|
||||
p1 (0.0 0.0 0.16 ); // (m,m,m)
|
||||
p2 (0.0 0.0 0.17); // (m,m,m)
|
||||
}
|
||||
|
||||
setFields
|
||||
{
|
||||
velocity realx3 (0.0 0.0 -0.6);
|
||||
}
|
||||
|
||||
mixture
|
||||
{
|
||||
parType2 1; // only parType2
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
layer2
|
||||
{
|
||||
timeControl simulationTime;
|
||||
timeControl simulationTime;
|
||||
|
||||
regionType cylinder; // type of insertion region
|
||||
regionType cylinder; // type of insertion region
|
||||
|
||||
rate 5100; // insertion rate (particles/s)
|
||||
rate 5100; // insertion rate (particles/s)
|
||||
|
||||
startTime 1.4; // (s)
|
||||
startTime 1.4; // (s)
|
||||
|
||||
endTime 1.9; // (s)
|
||||
endTime 1.9; // (s)
|
||||
|
||||
insertionInterval 0.025; // s
|
||||
insertionInterval 0.025; // s
|
||||
|
||||
cylinderInfo
|
||||
{
|
||||
radius 0.09;
|
||||
p1 ( 0.0 0.0 0.2 ); // (m,m,m)
|
||||
p2 ( 0.0 0.0 0.21); // (m,m,m)
|
||||
}
|
||||
|
||||
setFields
|
||||
{
|
||||
velocity realx3 (0.0 0.0 -0.6);
|
||||
}
|
||||
|
||||
mixture
|
||||
{
|
||||
parType1 1; // only parType1
|
||||
|
||||
}
|
||||
cylinderInfo
|
||||
{
|
||||
radius 0.09;
|
||||
p1 ( 0.0 0.0 0.2 ); // (m,m,m)
|
||||
p2 ( 0.0 0.0 0.21); // (m,m,m)
|
||||
}
|
||||
|
||||
setFields
|
||||
{
|
||||
velocity realx3 (0.0 0.0 -0.6);
|
||||
}
|
||||
|
||||
mixture
|
||||
{
|
||||
parType1 1; // only parType1
|
||||
}
|
||||
}
|
||||
|
||||
layer3
|
||||
{
|
||||
timeControl simulationTime;
|
||||
timeControl simulationTime;
|
||||
|
||||
regionType cylinder; // type of insertion region
|
||||
regionType cylinder; // type of insertion region
|
||||
|
||||
rate 5100; // insertion rate (particles/s)
|
||||
rate 5100; // insertion rate (particles/s)
|
||||
|
||||
startTime 2.1; // (s)
|
||||
startTime 2.1; // (s)
|
||||
|
||||
endTime 2.6; // (s)
|
||||
endTime 2.6; // (s)
|
||||
|
||||
insertionInterval 0.025; // s
|
||||
|
||||
insertionInterval 0.025; // s
|
||||
|
||||
cylinderInfo
|
||||
{
|
||||
radius 0.09;
|
||||
p1 ( 0.0 0.0 0.28 ); // (m,m,m)
|
||||
p2 ( 0.0 0.0 0.29); // (m,m,m)
|
||||
}
|
||||
|
||||
setFields
|
||||
{
|
||||
velocity realx3 (0.0 0.0 -0.6);
|
||||
}
|
||||
|
||||
mixture
|
||||
{
|
||||
parType2 1;
|
||||
|
||||
}
|
||||
|
||||
cylinderInfo
|
||||
{
|
||||
radius 0.09;
|
||||
p1 ( 0.0 0.0 0.28 ); // (m,m,m)
|
||||
p2 ( 0.0 0.0 0.29); // (m,m,m)
|
||||
}
|
||||
|
||||
setFields
|
||||
{
|
||||
velocity realx3 (0.0 0.0 -0.6);
|
||||
}
|
||||
|
||||
mixture
|
||||
{
|
||||
parType2 1;
|
||||
}
|
||||
}
|
||||
|
||||
layer4
|
||||
{
|
||||
timeControl simulationTime;
|
||||
timeControl simulationTime;
|
||||
|
||||
regionType cylinder; // type of insertion region
|
||||
regionType cylinder; // type of insertion region
|
||||
|
||||
rate 5100; // insertion rate (particles/s)
|
||||
rate 5100; // insertion rate (particles/s)
|
||||
|
||||
startTime 2.8; // (s)
|
||||
startTime 2.8; // (s)
|
||||
|
||||
endTime 3.3; // (s)
|
||||
endTime 3.3; // (s)
|
||||
|
||||
insertionInterval 0.025; // s
|
||||
insertionInterval 0.025; // s
|
||||
|
||||
cylinderInfo
|
||||
{
|
||||
radius 0.09;
|
||||
p1 ( 0.0 0.0 0.37 ); // (m,m,m)
|
||||
p2 ( 0.0 0.0 0.38); // (m,m,m)
|
||||
}
|
||||
|
||||
setFields
|
||||
{
|
||||
velocity realx3 (0.0 0.0 -0.6);
|
||||
}
|
||||
|
||||
mixture
|
||||
{
|
||||
parType1 1;
|
||||
|
||||
}
|
||||
cylinderInfo
|
||||
{
|
||||
radius 0.09;
|
||||
p1 ( 0.0 0.0 0.37 ); // (m,m,m)
|
||||
p2 ( 0.0 0.0 0.38); // (m,m,m)
|
||||
}
|
||||
|
||||
setFields
|
||||
{
|
||||
velocity realx3 (0.0 0.0 -0.6);
|
||||
}
|
||||
|
||||
mixture
|
||||
{
|
||||
parType1 1;
|
||||
}
|
||||
}
|
||||
|
||||
layer5
|
||||
{
|
||||
timeControl simulationTime;
|
||||
timeControl simulationTime;
|
||||
|
||||
regionType cylinder; // type of insertion region
|
||||
regionType cylinder; // type of insertion region
|
||||
|
||||
rate 5100; // insertion rate (particles/s)
|
||||
rate 5100; // insertion rate (particles/s)
|
||||
|
||||
startTime 3.4; // (s)
|
||||
startTime 3.4; // (s)
|
||||
|
||||
endTime 3.9; // (s)
|
||||
endTime 3.9; // (s)
|
||||
|
||||
insertionInterval 0.025; // s
|
||||
insertionInterval 0.025; // s
|
||||
|
||||
cylinderInfo
|
||||
{
|
||||
radius 0.09;
|
||||
p1 ( 0.0 0.0 0.38 ); // (m,m,m)
|
||||
p2 ( 0.0 0.0 0.39); // (m,m,m)
|
||||
}
|
||||
|
||||
setFields
|
||||
{
|
||||
velocity realx3 (0.0 0.0 -0.6);
|
||||
}
|
||||
|
||||
mixture
|
||||
{
|
||||
parType2 1;
|
||||
|
||||
}
|
||||
cylinderInfo
|
||||
{
|
||||
radius 0.09;
|
||||
p1 ( 0.0 0.0 0.38 ); // (m,m,m)
|
||||
p2 ( 0.0 0.0 0.39); // (m,m,m)
|
||||
}
|
||||
|
||||
setFields
|
||||
{
|
||||
velocity realx3 (0.0 0.0 -0.6);
|
||||
}
|
||||
|
||||
mixture
|
||||
{
|
||||
parType2 1;
|
||||
}
|
||||
}
|
@ -2,51 +2,51 @@
|
||||
| phasicFlow File |
|
||||
| copyright: www.cemf.ir |
|
||||
\* ------------------------------------------------------------------------- */
|
||||
objectName domainDict;
|
||||
objectType dictionary;
|
||||
objectName domainDict;
|
||||
objectType dictionary;
|
||||
fileFormat ASCII;
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
||||
// Simulation domain: every particles that goes outside this domain will be deleted
|
||||
globalBox
|
||||
{
|
||||
min (-0.11 -0.11 -0.15);
|
||||
|
||||
max ( 0.11 0.11 0.4);
|
||||
min (-0.11 -0.11 -0.15);
|
||||
|
||||
max ( 0.11 0.11 0.4);
|
||||
}
|
||||
|
||||
boundaries
|
||||
{
|
||||
|
||||
left
|
||||
{
|
||||
type exit;
|
||||
}
|
||||
|
||||
left
|
||||
{
|
||||
type exit;
|
||||
}
|
||||
|
||||
right
|
||||
{
|
||||
type exit;
|
||||
}
|
||||
right
|
||||
{
|
||||
type exit;
|
||||
}
|
||||
|
||||
bottom
|
||||
{
|
||||
type exit;
|
||||
}
|
||||
bottom
|
||||
{
|
||||
type exit;
|
||||
}
|
||||
|
||||
top
|
||||
{
|
||||
type exit;
|
||||
}
|
||||
top
|
||||
{
|
||||
type exit;
|
||||
}
|
||||
|
||||
rear
|
||||
{
|
||||
type periodic;
|
||||
}
|
||||
rear // z-
|
||||
{
|
||||
type periodic;
|
||||
}
|
||||
|
||||
front
|
||||
{
|
||||
type periodic;
|
||||
}
|
||||
front // z+
|
||||
{
|
||||
type periodic;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -2,8 +2,8 @@
|
||||
| phasicFlow File |
|
||||
| copyright: www.cemf.ir |
|
||||
\* ------------------------------------------------------------------------- */
|
||||
objectName geometryDict;
|
||||
objectType dictionary;
|
||||
objectName geometryDict;
|
||||
objectType dictionary;
|
||||
fileFormat ASCII;
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
||||
@ -11,73 +11,72 @@ motionModel rotatingAxis;
|
||||
|
||||
rotatingAxisInfo
|
||||
{
|
||||
// for opening the gate of silo between time 4.1 and 5.1 s
|
||||
gateMotion
|
||||
{
|
||||
p1 (-0.04 -0.04 -0.1);
|
||||
p2 (-0.04 -0.04 0.0);
|
||||
omega 3.14;
|
||||
startTime 4.1;
|
||||
endTime 5.1;
|
||||
}
|
||||
// for opening the gate of silo between time 4.1 and 5.1 s
|
||||
gateMotion
|
||||
{
|
||||
p1 (-0.04 -0.04 -0.1);
|
||||
p2 (-0.04 -0.04 0.0);
|
||||
omega 3.14;
|
||||
startTime 4.1;
|
||||
endTime 5.1;
|
||||
}
|
||||
}
|
||||
|
||||
surfaces
|
||||
{
|
||||
cylinderShell
|
||||
{
|
||||
type cylinderWall; // other options: cuboidWall and planeWall
|
||||
cylinderShell
|
||||
{
|
||||
type cylinderWall; // other options: cuboidWall and planeWall
|
||||
|
||||
p1 (0.0 0.0 0.0); // begin point of cylinder axis
|
||||
p1 (0.0 0.0 0.0); // begin point of cylinder axis
|
||||
|
||||
p2 (0.0 0.0 0.4); // end point of cylinder axis
|
||||
p2 (0.0 0.0 0.4); // end point of cylinder axis
|
||||
|
||||
radius1 0.1; // radius at p1
|
||||
radius1 0.1; // radius at p1
|
||||
|
||||
radius2 0.1; // radius at p2
|
||||
radius2 0.1; // radius at p2
|
||||
|
||||
resolution 36; // number of divisions
|
||||
resolution 36; // number of divisions
|
||||
|
||||
material wallMat; // material name of this wall
|
||||
}
|
||||
material wallMat; // material name of this wall
|
||||
}
|
||||
|
||||
coneShell
|
||||
{
|
||||
type cylinderWall; // other options: cuboidWall and planeWall
|
||||
coneShell
|
||||
{
|
||||
type cylinderWall; // other options: cuboidWall and planeWall
|
||||
|
||||
p1 (0.0 0.0 -0.1); // begin point of cylinder axis
|
||||
p1 (0.0 0.0 -0.1); // begin point of cylinder axis
|
||||
|
||||
p2 (0.0 0.0 0.0); // end point of cylinder axis
|
||||
p2 (0.0 0.0 0.0); // end point of cylinder axis
|
||||
|
||||
radius1 0.04; // radius at p1
|
||||
radius1 0.04; // radius at p1
|
||||
|
||||
radius2 0.1; // radius at p2
|
||||
radius2 0.1; // radius at p2
|
||||
|
||||
resolution 36; // number of divisions
|
||||
resolution 36; // number of divisions
|
||||
|
||||
material wallMat; // material name of this wall
|
||||
}
|
||||
material wallMat; // material name of this wall
|
||||
}
|
||||
|
||||
/*
|
||||
This is a plane wall at the exit of silo
|
||||
*/
|
||||
/*
|
||||
This is a plane wall at the exit of silo
|
||||
*/
|
||||
exitGate
|
||||
{
|
||||
type planeWall; // other options: cuboidWall and cylinderWall
|
||||
|
||||
exitGate
|
||||
{
|
||||
type planeWall; // other options: cuboidWall and cylinderWall
|
||||
p1 (-0.04 -0.04 -0.1); // first point of the wall
|
||||
|
||||
p1 (-0.04 -0.04 -0.1); // first point of the wall
|
||||
p2 ( 0.04 -0.04 -0.1); // second point of the wall
|
||||
|
||||
p2 ( 0.04 -0.04 -0.1); // second point of the wall
|
||||
p3 ( 0.04 0.04 -0.1); // third point of the wall
|
||||
|
||||
p3 ( 0.04 0.04 -0.1); // third point of the wall
|
||||
p4 (-0.04 0.04 -0.1); // fourth point of the wall
|
||||
|
||||
material wallMat; // material name of the wall
|
||||
|
||||
p4 (-0.04 0.04 -0.1); // fourth point of the wall
|
||||
|
||||
material wallMat; // material name of the wall
|
||||
|
||||
motion gateMotion;
|
||||
}
|
||||
motion gateMotion;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -2,35 +2,34 @@
|
||||
| phasicFlow File |
|
||||
| copyright: www.cemf.ir |
|
||||
\* ------------------------------------------------------------------------- */
|
||||
objectName particlesDict;
|
||||
objectType dictionary;
|
||||
objectName particlesDict;
|
||||
objectType dictionary;
|
||||
fileFormat ASCII;
|
||||
/*---------------------------------------------------------------------------*/
|
||||
setFields
|
||||
{
|
||||
/*
|
||||
Default value for fields defined for particles
|
||||
These fields should always be defined for simulations with
|
||||
spherical particles.
|
||||
*/
|
||||
/*
|
||||
Default value for fields defined for particles
|
||||
These fields should always be defined for simulations with
|
||||
spherical particles.
|
||||
*/
|
||||
defaultValue
|
||||
{
|
||||
velocity realx3 (0 0 0); // linear velocity (m/s)
|
||||
|
||||
defaultValue
|
||||
{
|
||||
velocity realx3 (0 0 0); // linear velocity (m/s)
|
||||
acceleration realx3 (0 0 0); // linear acceleration (m/s2)
|
||||
|
||||
acceleration realx3 (0 0 0); // linear acceleration (m/s2)
|
||||
rVelocity realx3 (0 0 0); // rotational velocity (rad/s)
|
||||
|
||||
rVelocity realx3 (0 0 0); // rotational velocity (rad/s)
|
||||
shapeName word parType1; // name of the particle shape
|
||||
}
|
||||
|
||||
shapeName word parType1; // name of the particle shape
|
||||
}
|
||||
|
||||
selectors
|
||||
{}
|
||||
selectors
|
||||
{}
|
||||
}
|
||||
|
||||
positionParticles
|
||||
{
|
||||
method empty; // empty simulation
|
||||
method empty; // empty simulation
|
||||
}
|
||||
|
||||
|
@ -2,40 +2,40 @@
|
||||
| phasicFlow File |
|
||||
| copyright: www.cemf.ir |
|
||||
\* ------------------------------------------------------------------------- */
|
||||
objectName settingsDict;
|
||||
objectType dictionary;
|
||||
objectName settingsDict;
|
||||
objectType dictionary;
|
||||
fileFormat ASCII;
|
||||
/*---------------------------------------------------------------------------*/
|
||||
run homogenizationSilo;
|
||||
|
||||
dt 0.00001; // time step for integration (s)
|
||||
dt 0.00001; // time step for integration (s)
|
||||
|
||||
startTime 0.0; // start time for simulation
|
||||
startTime 0.0; // start time for simulation
|
||||
|
||||
endTime 20; // end time for simulation
|
||||
endTime 20; // end time for simulation
|
||||
|
||||
saveInterval 0.05; // time interval for saving the simulation
|
||||
saveInterval 0.05; // time interval for saving the simulation
|
||||
|
||||
timePrecision 4; // maximum number of digits for time folder
|
||||
timePrecision 4; // maximum number of digits for time folder
|
||||
|
||||
g (0 0 -9.8); // gravity vector (m/s2)
|
||||
g (0 0 -9.8); // gravity vector (m/s2)
|
||||
|
||||
|
||||
// overrides the default behavior
|
||||
includeObjects (diameter);
|
||||
|
||||
// exclude unnecessary data from saving on disk
|
||||
excludeObjects (rVelocity.dy1 rVelocity.dy2 rVelocity.dy3
|
||||
pStructPosition.dy1 pStructPosition.dy2 pStructPosition.dy3
|
||||
pStructVelocity.dy1 pStructVelocity.dy2 pStructVelocity.dy3);
|
||||
excludeObjects ();
|
||||
|
||||
integrationMethod AdamsBashforth4; // integration method
|
||||
integrationMethod AdamsBashforth4; // integration method
|
||||
|
||||
writeFormat binary; // data writting format (ascii or binary)
|
||||
integrationHistory off; // to save space on disk
|
||||
|
||||
timersReport Yes; // report timers
|
||||
writeFormat binary; // data writting format (ascii or binary)
|
||||
|
||||
timersReportInterval 0.1; // time interval for reporting timers
|
||||
timersReport Yes; // report timers
|
||||
|
||||
timersReportInterval 0.1; // time interval for reporting timers
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user