comments are implemented.

This commit is contained in:
ramin1728 2025-03-08 13:24:53 +03:30
parent e5c11cfea3
commit a5074e4eb7
5 changed files with 195 additions and 216 deletions

View File

@ -28,19 +28,19 @@ In file `settings/geometryDict` the information of rotating axis and speed of ro
// information for rotatingAxisMotion motion model // information for rotatingAxisMotion motion model
rotatingAxisInfo rotatingAxisInfo
{ {
axisOfRotation axisOfRotation
{ {
p1 (-0.1 0.0 0.15); // first point for the axis of rotation p1 (-0.1 0.0 0.15); // first point for the axis of rotation
p2 ( 0.1 0.0 0.15); // second point for the axis of rotation p2 ( 0.1 0.0 0.15); // second point for the axis of rotation
omega 1.5708; // rotation speed ==> 15 rad/s omega 1.5708; // rotation speed ==> 15 rad/s
// Start time of Geometry Rotating (s) // Start time of Geometry Rotating (s)
startTime 0.5; startTime 0.5;
// End time of Geometry Rotating (s) // End time of Geometry Rotating (s)
endTime 9.5; endTime 9.5;
} }
} }
``` ```
@ -51,195 +51,191 @@ In `settings/geometryDict` file, the surfaces and motion component of each surfa
```C++ ```C++
surfaces surfaces
{ {
topGate
{
// type of wall
type cylinderWall;
topGate // begin point of cylinder axis
{ p1 (0.0 0.0 0.3);
// type of wall
type cylinderWall;
// begin point of cylinder axis // end point of cylinder axis
p1 (0.0 0.0 0.3); p2 (0.0 0.0 0.301);
// end point of cylinder axis // radius at p1
p2 (0.0 0.0 0.301); radius1 0.03;
// radius at p1 // radius at p2
radius1 0.03; radius2 0.0001;
// radius at p2 // material of wall
radius2 0.0001; material solidProperty;
// material of wall // motion component name
material solidProperty; motion axisOfRotation;
}
// motion component name topCylinder
motion axisOfRotation; {
} // type of the wall
type cylinderWall;
topCylinder // begin point of cylinder axis
{ p1 (0.0 0.0 0.28);
// type of the wall
type cylinderWall;
// begin point of cylinder axis // end point of cylinder axis
p1 (0.0 0.0 0.28); p2 (0.0 0.0 0.3);
// end point of cylinder axis // radius at p1
p2 (0.0 0.0 0.3); radius1 0.03;
// radius at p1 // radius at p2
radius1 0.03; radius2 0.03;
// radius at p2 // number of divisions
radius2 0.03; resolution 36;
// number of divisions // material name of this wall
resolution 36; material solidProperty;
// material name of this wall // motion component name
material solidProperty; motion axisOfRotation;
}
// motion component name coneShelltop
motion axisOfRotation; {
} // type of the wall
type cylinderWall;
coneShelltop // begin point of cylinder axis
{ p1 (0.0 0.0 0.2);
// type of the wall
type cylinderWall;
// begin point of cylinder axis // end point of cylinder axis
p1 (0.0 0.0 0.2); p2 (0.0 0.0 0.28);
// end point of cylinder axis // radius at p1
p2 (0.0 0.0 0.28); radius1 0.1;
// radius at p1 // radius at p2
radius1 0.1; radius2 0.03;
// radius at p2 // number of divisions
radius2 0.03; resolution 36;
// number of divisions // material name of this wall
resolution 36; material solidProperty;
// material name of this wall // motion component name
material solidProperty; motion axisOfRotation;
}
// motion component name cylinderShell
motion axisOfRotation; {
} // type of the wall
type cylinderWall;
cylinderShell // begin point of cylinder axis
{ p1 (0.0 0.0 0.1);
// type of the wall
type cylinderWall;
// begin point of cylinder axis // end point of cylinder axis
p1 (0.0 0.0 0.1); p2 (0.0 0.0 0.2);
// end point of cylinder axis // radius at p1
p2 (0.0 0.0 0.2); radius1 0.1;
// radius at p1 // radius at p2
radius1 0.1; radius2 0.1;
// radius at p2 // number of divisions
radius2 0.1; resolution 36;
// number of divisions // material name of this wall
resolution 36; material solidProperty;
// material name of this wall // motion component name
material solidProperty; motion axisOfRotation;
}
// motion component name coneShelldown
motion axisOfRotation; {
} // type of the wall
type cylinderWall;
coneShelldown // begin point of cylinder axis
{ p1 (0.0 0.0 0.02);
// type of the wall // end point of cylinder axis
type cylinderWall; p2 (0.0 0.0 0.1);
// begin point of cylinder axis // radius at p1
p1 (0.0 0.0 0.02); radius1 0.03;
// end point of cylinder axis // radius at p2
p2 (0.0 0.0 0.1); radius2 0.1;
// radius at p1 // number of divisions
radius1 0.03; resolution 36;
// radius at p2 // material name of this wall
radius2 0.1; material solidProperty;
// number of divisions // motion component name
resolution 36; motion axisOfRotation;
}
// material name of this wall bottomCylinder
material solidProperty; {
// type of the wall
type cylinderWall;
// motion component name // begin point of cylinder axis
motion axisOfRotation; p1 (0.0 0.0 0.0);
}
bottomCylinder // end point of cylinder axis
{ p2 (0.0 0.0 0.02);
// type of the wall
type cylinderWall;
// begin point of cylinder axis // radius at p1
p1 (0.0 0.0 0.0); radius1 0.03;
// end point of cylinder axis // radius at p2
p2 (0.0 0.0 0.02); radius2 0.03;
// radius at p1 // number of divisions
radius1 0.03; resolution 36;
// radius at p2 // material name of this wall
radius2 0.03; material solidProperty;
// number of divisions // motion component name
resolution 36; motion axisOfRotation;
}
// material name of this wall exitGate
material solidProperty; {
// type of the wall
type cylinderWall;
// motion component name // begin point of cylinder axis
motion axisOfRotation; p1 (0.0 0.0 -0.001);
}
exitGate // end point of cylinder axis
{ p2 (0.0 0.0 0.0);
// type of the wall // radius at p1
type cylinderWall; radius1 0.03;
// begin point of cylinder axis // radius at p2
p1 (0.0 0.0 -0.001); radius2 0.0001;
// end point of cylinder axis // number of divisions
p2 (0.0 0.0 0.0); resolution 36;
// radius at p1 // material name of this wall
radius1 0.03; material solidProperty;
// radius at p2
radius2 0.0001;
// number of divisions
resolution 36;
// material name of this wall
material solidProperty;
// motion component name
motion axisOfRotation;
}
// motion component name
motion axisOfRotation;
}
} }
``` ```
@ -272,31 +268,33 @@ in <b>settings/particlesDict</b> file
// positions particles // positions particles
positionParticles positionParticles
{ {
// ordered positioning // ordered positioning
method ordered; method ordered;
// perform initial sorting based on morton code
mortonSorting Yes;
orderedInfo
{
// minimum space between centers of particles
diameter 0.005;
// number of particles in the simulation // perform initial sorting based on morton code
numPoints 24000; mortonSorting Yes;
// axis order for filling the space with particles orderedInfo
axisOrder (x y z); {
} // minimum space between centers of particles
diameter 0.005;
// number of particles in the simulation
numPoints 24000;
// axis order for filling the space with particles
axisOrder (x y z);
}
regionType cylinder; // other options: box and sphere regionType cylinder; // other options: box and sphere
cylinderInfo // cylinder for positioning particles cylinderInfo // cylinder for positioning particles
{ {
p1 (0.0 0.0 0.09); // Coordinates of bottom cylinderRegion (m,m,m) p1 (0.0 0.0 0.09); // Coordinates of bottom cylinderRegion (m,m,m)
p2 (0.0 0.0 0.21); // Coordinates of top cylinderRegion (m,m,m) p2 (0.0 0.0 0.21); // Coordinates of top cylinderRegion (m,m,m)
radius 0.09; // radius of cylinder radius 0.09; // radius of cylinder
} }
} }
``` ```
@ -314,31 +312,31 @@ contactListType sortedContactList;
model model
{ {
contactForceModel nonLinearNonLimited; contactForceModel nonLinearNonLimited;
rollingFrictionModel normal; rollingFrictionModel normal;
/* /*
Property (solidProperty-solidProperty); Property (solidProperty-solidProperty);
*/ */
// Young modulus [Pa] // Young modulus [Pa]
Yeff (1.0e6); Yeff (1.0e6);
// Shear modulus [Pa] // Shear modulus [Pa]
Geff (0.8e6); Geff (0.8e6);
// Poisson's ratio [-] // Poisson's ratio [-]
nu (0.25); nu (0.25);
// coefficient of normal restitution // coefficient of normal restitution
en (0.7); en (0.7);
// dynamic friction // dynamic friction
mu (0.3); mu (0.3);
// rolling friction // rolling friction
mur (0.1); mur (0.1);
} }
``` ```

View File

@ -27,24 +27,24 @@ contactSearch
model model
{ {
contactForceModel nonLinearNonLimited; contactForceModel nonLinearNonLimited;
rollingFrictionModel normal; rollingFrictionModel normal;
/* /*
Property (solidProperty-solidProperty) Property (solidProperty-solidProperty)
*/ */
Yeff (1.0e6); // Young modulus [Pa] Yeff (1.0e6); // Young modulus [Pa]
Geff (0.8e6); // Shear modulus [Pa] Geff (0.8e6); // Shear modulus [Pa]
nu (0.25); // Poisson's ratio [-] nu (0.25); // Poisson's ratio [-]
en (0.7); // coefficient of normal restitution en (0.7); // coefficient of normal restitution
mu (0.3); // dynamic friction mu (0.3); // dynamic friction
mur (0.1); // rolling friction mur (0.1); // rolling friction
} }

View File

@ -23,26 +23,26 @@ boundaries
right right
{ {
type exit; // other options: periodict, reflective type exit; // other options: periodic, reflective
} }
bottom bottom
{ {
type exit; // other options: periodict, reflective type exit; // other options: periodic, reflective
} }
top top
{ {
type exit; // other options: periodict, reflective type exit; // other options: periodic, reflective
} }
rear rear
{ {
type exit; // other options: periodict, reflective type exit; // other options: periodic, reflective
} }
front front
{ {
type exit; // other options: periodict, reflective type exit; // other options: periodic, reflective
} }
} }

View File

@ -10,7 +10,7 @@ motionModel rotatingAxis; // motion model: rotating objec
rotatingAxisInfo // information for rotatingAxisMotion motion model rotatingAxisInfo // information for rotatingAxisMotion motion model
{ {
axisOfRotation axisOfRotation
{ {
p1 (-0.1 0.0 0.15); // first point for the axis of rotation p1 (-0.1 0.0 0.15); // first point for the axis of rotation

View File

@ -16,9 +16,9 @@ setFields
spherical particles. spherical particles.
*/ */
defaultValue defaultValue
{ {
velocity realx3 (0 0 0); // linear velocity (m/s) 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)
@ -28,26 +28,7 @@ setFields
} }
selectors selectors
{ {}
shapeAssigne
{
selector stridedRange; // other options: box, cylinder, sphere, randomPoints
stridedRangeInfo
{
begin 0; // begin index of points
end 24000; // end index of points
stride 3; // stride for selector
}
fieldValue // fields that the selector is applied to
{
shapeName word sphere1; // sets shapeName of the selected points to largeSphere
}
}
}
} }
positionParticles // positions particles positionParticles // positions particles