mirror of
https://github.com/PhasicFlow/phasicFlow.git
synced 2025-07-08 03:07:03 +00:00
postprocess for segregation
This commit is contained in:
49
tutorials/postprocessPhasicFlow/segregation/settings/domainDict
Executable file
49
tutorials/postprocessPhasicFlow/segregation/settings/domainDict
Executable file
@ -0,0 +1,49 @@
|
||||
/* -------------------------------*- C++ -*--------------------------------- *\
|
||||
| phasicFlow File |
|
||||
| copyright: www.cemf.ir |
|
||||
\* ------------------------------------------------------------------------- */
|
||||
objectName domainDict;
|
||||
objectType dictionary;
|
||||
fileFormat ASCII;
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
||||
// Simulation domain: every particles that goes outside this domain will be deleted
|
||||
globalBox
|
||||
{
|
||||
min (-0.12 -0.12 0.00); // lower corner point of the box
|
||||
|
||||
max (0.12 0.12 0.11); // upper corner point of the box
|
||||
}
|
||||
|
||||
boundaries
|
||||
{
|
||||
left
|
||||
{
|
||||
type exit; // other options: periodic, reflective
|
||||
}
|
||||
|
||||
right
|
||||
{
|
||||
type exit; // other options: periodic, reflective
|
||||
}
|
||||
|
||||
bottom
|
||||
{
|
||||
type exit; // other options: periodic, reflective
|
||||
}
|
||||
|
||||
top
|
||||
{
|
||||
type exit; // other options: periodic, reflective
|
||||
}
|
||||
|
||||
rear
|
||||
{
|
||||
type exit; // other options: periodic, reflective
|
||||
}
|
||||
|
||||
front
|
||||
{
|
||||
type exit; // other options: periodic, reflective
|
||||
}
|
||||
}
|
@ -2,70 +2,89 @@
|
||||
| phasicFlow File |
|
||||
| copyright: www.cemf.ir |
|
||||
\* ------------------------------------------------------------------------- */
|
||||
objectName geometryDict;
|
||||
objectType dictionary;
|
||||
objectName geometryDict;
|
||||
objectType dictionary;
|
||||
fileFormat ASCII;
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
||||
// motion model: rotating object around an axis
|
||||
motionModel rotatingAxisMotion;
|
||||
motionModel rotatingAxis;
|
||||
|
||||
rotatingAxisInfo // information for rotatingAxisMotion motion model
|
||||
{
|
||||
rotAxis
|
||||
{
|
||||
p1 (0.0 0.0 0.0); // first point for the axis of rotation
|
||||
|
||||
p2 (0.0 0.0 1.0); // second point for the axis of rotation
|
||||
|
||||
omega 1.214; // rotation speed (rad/s)
|
||||
|
||||
startTime 0.5;
|
||||
}
|
||||
}
|
||||
|
||||
surfaces
|
||||
{
|
||||
/*
|
||||
A cylinder with begin and end radii 0.12 m and axis points at (0 0 0)
|
||||
and (0 0 0.1)
|
||||
*/
|
||||
cylinder
|
||||
{
|
||||
type cylinderWall; // type of the wall
|
||||
p1 (0.0 0.0 0.0); // begin point of cylinder axis
|
||||
p2 (0.0 0.0 0.1); // end point of cylinder axis
|
||||
radius1 0.12; // radius at p1
|
||||
radius2 0.12; // radius at p2
|
||||
resolution 24; // number of divisions
|
||||
material prop1; // material name of this wall
|
||||
motion rotAxis; // motion component name
|
||||
}
|
||||
/*
|
||||
A cylinder with begin and end radii 0.12 m and axis points at (0 0 0) and (0 0 0.1)
|
||||
*/
|
||||
cylinder
|
||||
{
|
||||
type cylinderWall; // type of the wall
|
||||
|
||||
/*
|
||||
This is a plane wall at the rear end of cylinder
|
||||
*/
|
||||
wall1
|
||||
{
|
||||
type planeWall; // type of the wall
|
||||
p1 (-0.12 -0.12 0.0); // first point of the wall
|
||||
p2 ( 0.12 -0.12 0.0); // second point
|
||||
p3 ( 0.12 0.12 0.0); // third point
|
||||
p4 (-0.12 0.12 0.0); // fourth point
|
||||
material prop1; // material name of the wall
|
||||
motion rotAxis; // motion component name
|
||||
}
|
||||
p1 (0.0 0.0 0.0); // begin point of cylinder axis
|
||||
|
||||
/*
|
||||
This is a plane wall at the front end of cylinder
|
||||
*/
|
||||
wall2
|
||||
{
|
||||
type planeWall;
|
||||
p1 (-0.12 -0.12 0.1);
|
||||
p2 ( 0.12 -0.12 0.1);
|
||||
p3 ( 0.12 0.12 0.1);
|
||||
p4 (-0.12 0.12 0.1);
|
||||
material prop1;
|
||||
motion rotAxis;
|
||||
}
|
||||
|
||||
|
||||
p2 (0.0 0.0 0.1); // end point of cylinder axis
|
||||
|
||||
radius1 0.12; // radius at p1
|
||||
|
||||
radius2 0.12; // radius at p2
|
||||
|
||||
resolution 24; // number of divisions
|
||||
|
||||
material prop1; // material name of this wall
|
||||
|
||||
motion rotAxis; // motion component name
|
||||
}
|
||||
|
||||
/*
|
||||
This is a plane wall at the rear end of cylinder
|
||||
*/
|
||||
wall1
|
||||
{
|
||||
type planeWall; // type of the wall
|
||||
|
||||
p1 (-0.12 -0.12 0.0); // first point of the wall
|
||||
|
||||
p2 ( 0.12 -0.12 0.0); // second point
|
||||
|
||||
p3 ( 0.12 0.12 0.0); // third point
|
||||
|
||||
p4 (-0.12 0.12 0.0); // fourth point
|
||||
|
||||
material prop1; // material name of the wall
|
||||
|
||||
motion rotAxis; // motion component name
|
||||
}
|
||||
|
||||
/*
|
||||
This is a plane wall at the front end of cylinder
|
||||
*/
|
||||
wall2
|
||||
{
|
||||
type planeWall; // type of the wall
|
||||
|
||||
p1 (-0.12 -0.12 0.1); // first point of the wall
|
||||
|
||||
p2 ( 0.12 -0.12 0.1); // second point
|
||||
|
||||
p3 ( 0.12 0.12 0.1); // third point
|
||||
|
||||
p4 (-0.12 0.12 0.1); // fourth point
|
||||
|
||||
material prop1; // material name of the wall
|
||||
|
||||
motion rotAxis; // motion component name
|
||||
}
|
||||
}
|
||||
|
||||
// information for rotatingAxisMotion motion model
|
||||
rotatingAxisMotionInfo
|
||||
{
|
||||
rotAxis
|
||||
{
|
||||
p1 (0.0 0.0 0.0); // first point for the axis of rotation
|
||||
p2 (0.0 0.0 1.0); // second point for the axis of rotation
|
||||
omega 1.214; // rotation speed (rad/s)
|
||||
}
|
||||
}
|
@ -10,21 +10,20 @@ fileFormat ASCII;
|
||||
// positions particles
|
||||
positionParticles
|
||||
{
|
||||
method positionOrdered; // ordered positioning
|
||||
method ordered;
|
||||
|
||||
maxNumberOfParticles 30001; // maximum number of particles in the simulation
|
||||
mortonSorting Yes; // perform initial sorting based on morton code?
|
||||
|
||||
cylinder // cylinder region for positioning particles
|
||||
regionType cylinder;
|
||||
|
||||
cylinderInfo
|
||||
{
|
||||
p1 (0.0 0.0 0.003); // begin point of cylinder axis
|
||||
p2 (0.0 0.0 0.097); // end point of cylinder axis
|
||||
radius 0.117; // radius of cylinder
|
||||
}
|
||||
|
||||
positionOrderedInfo
|
||||
orderedInfo
|
||||
{
|
||||
distance 0.005; // minimum distance between particles centers
|
||||
distance 0.005; // minimum space between centers of particles
|
||||
numPoints 30000; // number of particles in the simulation
|
||||
axisOrder (z x y); // axis order for filling the space with particles
|
||||
}
|
||||
@ -35,8 +34,8 @@ setFields
|
||||
/*
|
||||
Default value for fields defined for particles
|
||||
These fields should always be defined for simulations with
|
||||
spherical particles.*/
|
||||
|
||||
spherical particles.
|
||||
*/
|
||||
defaultValue
|
||||
{
|
||||
velocity realx3 (0 0 0); // linear velocity (m/s)
|
||||
@ -49,17 +48,17 @@ setFields
|
||||
{
|
||||
shapeAssigne
|
||||
{
|
||||
selector selectRandom; // type of point selector
|
||||
selectRandomInfo
|
||||
selector randomPoints; // type of point selector
|
||||
|
||||
randomPointsInfo
|
||||
{
|
||||
begin 0; // begin index of points
|
||||
end 29999; // end index of points
|
||||
number 10000; // number of points to be selected
|
||||
end 29999; // end index of points
|
||||
number 10000;
|
||||
}
|
||||
|
||||
fieldValue // fields that the selector is applied to
|
||||
{
|
||||
/*
|
||||
sets shapeName of the selected points to largeSphere*/
|
||||
shapeName word largeSphere;
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,82 @@
|
||||
/* -------------------------------*- C++ -*--------------------------------- *\
|
||||
| phasicFlow File |
|
||||
| copyright: www.cemf.ir |
|
||||
\* ------------------------------------------------------------------------- */
|
||||
objectName processDataDict;
|
||||
objectType dictionary;;
|
||||
fileFormat ASCII;
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
||||
runTimeActive yes;
|
||||
|
||||
shapeType sphere;
|
||||
|
||||
components
|
||||
(
|
||||
on_rectMesh
|
||||
{
|
||||
processMethod GaussianDistribution;
|
||||
processRegion rectMesh;
|
||||
|
||||
timeControl settingsDict;
|
||||
|
||||
rectMeshInfo
|
||||
{
|
||||
min (-0.12 -0.12 0.00);
|
||||
max (0.12 0.12 0.1);
|
||||
nx 36;
|
||||
ny 36;
|
||||
nz 15;
|
||||
}
|
||||
|
||||
operations
|
||||
(
|
||||
avVelocity
|
||||
{
|
||||
function average;
|
||||
|
||||
field velocity;
|
||||
|
||||
fluctuation2 yes;
|
||||
|
||||
threshold 4;
|
||||
|
||||
phi mass;
|
||||
}
|
||||
|
||||
solidVolFraction
|
||||
{
|
||||
function sum;
|
||||
|
||||
field volume;
|
||||
|
||||
divideByVolume yes;
|
||||
|
||||
threshold 4;
|
||||
}
|
||||
|
||||
smallSphereVolFraction
|
||||
{
|
||||
function average;
|
||||
|
||||
field one;
|
||||
|
||||
phi volume;
|
||||
|
||||
divideByVolume no;
|
||||
|
||||
threshold 4;
|
||||
|
||||
includeMask lessThan;
|
||||
|
||||
lessThanInfo
|
||||
{
|
||||
field diameter;
|
||||
|
||||
value 0.0031;
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
}
|
||||
);
|
@ -1,54 +0,0 @@
|
||||
/* -------------------------------*- C++ -*--------------------------------- *\
|
||||
| phasicFlow File |
|
||||
| copyright: www.cemf.ir |
|
||||
\* ------------------------------------------------------------------------- */
|
||||
objectName postprocessDict;
|
||||
objectType dictionary;;
|
||||
fileFormat ASCII;
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
||||
rectMesh
|
||||
{
|
||||
min (-0.12 -0.12 0.0); //minimum corner point
|
||||
max (0.12 0.12 0.1); //maximum corner point
|
||||
nx 24; // number of divisions in x direction
|
||||
ny 24; // number of divisions in y direction
|
||||
nz 10; // number of divisions in z direction
|
||||
}
|
||||
|
||||
|
||||
numberBased
|
||||
{
|
||||
// num particles in a cell
|
||||
numParticles
|
||||
{
|
||||
field real 1.0; // uniform field with value 1
|
||||
operation sum; // sum over all particles in a cell
|
||||
includeMask all; // select all
|
||||
}
|
||||
|
||||
// concentration of small particles (number based)
|
||||
smallConc
|
||||
{
|
||||
field real 1.0; // uniform field with value 1
|
||||
operation average; // average over all particles in a cell
|
||||
threshold 1; // exclude cells with number of particles less than 1
|
||||
includeMask lessThan; // include mask
|
||||
lessThanInfo
|
||||
{
|
||||
field diameter; // include particles with diameter less than 0.004
|
||||
value 0.004;
|
||||
}
|
||||
}
|
||||
|
||||
// average velocity of particles
|
||||
avVelocity
|
||||
{
|
||||
field velocity; // read velocity field from time folder
|
||||
operation average; // average over all particles in the cell
|
||||
threshold 3; // exclude cells with number of particles less than 3
|
||||
includeMask all; // select all
|
||||
|
||||
}
|
||||
|
||||
}
|
@ -2,39 +2,37 @@
|
||||
| phasicFlow File |
|
||||
| copyright: www.cemf.ir |
|
||||
\* ------------------------------------------------------------------------- */
|
||||
objectName settingsDict;
|
||||
objectType dictionary;;
|
||||
objectName settingsDict;
|
||||
objectType dictionary;
|
||||
fileFormat ASCII;
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
||||
run rotatingDrumSmall;
|
||||
run rotatingDrumSmall;
|
||||
|
||||
dt 0.00001; // time step for integration (s)
|
||||
libs ("libPostprocessData.so");
|
||||
|
||||
startTime 0; // start time for simulation
|
||||
auxFunctions postprocessData;
|
||||
|
||||
endTime 10; // end time for simulation
|
||||
dt 0.00001; // time step for integration (s)
|
||||
|
||||
saveInterval 0.1; // time interval for saving the simulation
|
||||
startTime 0; // start time for simulation
|
||||
|
||||
timePrecision 6; // maximum number of digits for time folder
|
||||
endTime 10; // end time for simulation
|
||||
|
||||
g (0 -9.8 0); // gravity vector (m/s2)
|
||||
saveInterval 0.1; // time interval for saving the simulation
|
||||
|
||||
/*
|
||||
Simulation domain
|
||||
every particles that goes outside this domain is deleted.
|
||||
*/
|
||||
domain
|
||||
{
|
||||
min (-0.12 -0.12 0);
|
||||
max (0.12 0.12 0.1);
|
||||
}
|
||||
timePrecision 6; // maximum number of digits for time folder
|
||||
|
||||
integrationMethod AdamsBashforth2; // integration method
|
||||
g (0 -9.8 0); // gravity vector (m/s2)
|
||||
|
||||
writeFormat ascii;
|
||||
includeObjects (diameter); // save necessary (i.e., required) data on disk
|
||||
|
||||
timersReport Yes; // report timers?
|
||||
integrationMethod AdamsBashforth2; // integration method
|
||||
|
||||
timersReportInterval 0.01; // time interval for reporting timers
|
||||
integrationHistory off;
|
||||
|
||||
writeFormat ascii; // data writting format (ascii or binary)
|
||||
|
||||
timersReport Yes; // report timers (Yes or No)
|
||||
|
||||
timersReportInterval 0.01; // time interval for reporting timers
|
||||
|
Reference in New Issue
Block a user