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
topGate {
{ // type of wall
// type of wall type cylinderWall;
type cylinderWall;
// begin point of cylinder axis // begin point of cylinder axis
p1 (0.0 0.0 0.3); p1 (0.0 0.0 0.3);
// end point of cylinder axis // end point of cylinder axis
p2 (0.0 0.0 0.301); p2 (0.0 0.0 0.301);
// radius at p1 // radius at p1
radius1 0.03; radius1 0.03;
// radius at p2 // radius at p2
radius2 0.0001; radius2 0.0001;
// material of wall // material of wall
material solidProperty; material solidProperty;
// motion component name // motion component name
motion axisOfRotation; motion axisOfRotation;
} }
topCylinder topCylinder
{ {
// type of the wall // type of the wall
type cylinderWall; type cylinderWall;
// begin point of cylinder axis // begin point of cylinder axis
p1 (0.0 0.0 0.28); p1 (0.0 0.0 0.28);
// end point of cylinder axis // end point of cylinder axis
p2 (0.0 0.0 0.3); p2 (0.0 0.0 0.3);
// radius at p1 // radius at p1
radius1 0.03; radius1 0.03;
// radius at p2 // radius at p2
radius2 0.03; radius2 0.03;
// number of divisions // number of divisions
resolution 36; resolution 36;
// material name of this wall // material name of this wall
material solidProperty; material solidProperty;
// motion component name // motion component name
motion axisOfRotation; motion axisOfRotation;
} }
coneShelltop coneShelltop
{ {
// type of the wall // type of the wall
type cylinderWall; type cylinderWall;
// begin point of cylinder axis // begin point of cylinder axis
p1 (0.0 0.0 0.2); p1 (0.0 0.0 0.2);
// end point of cylinder axis // end point of cylinder axis
p2 (0.0 0.0 0.28); p2 (0.0 0.0 0.28);
// radius at p1 // radius at p1
radius1 0.1; radius1 0.1;
// radius at p2 // radius at p2
radius2 0.03; radius2 0.03;
// number of divisions // number of divisions
resolution 36; resolution 36;
// material name of this wall // material name of this wall
material solidProperty; material solidProperty;
// motion component name // motion component name
motion axisOfRotation; motion axisOfRotation;
} }
cylinderShell cylinderShell
{ {
// type of the wall // type of the wall
type cylinderWall; type cylinderWall;
// begin point of cylinder axis // begin point of cylinder axis
p1 (0.0 0.0 0.1); p1 (0.0 0.0 0.1);
// end point of cylinder axis // end point of cylinder axis
p2 (0.0 0.0 0.2); p2 (0.0 0.0 0.2);
// radius at p1 // radius at p1
radius1 0.1; radius1 0.1;
// radius at p2 // radius at p2
radius2 0.1; radius2 0.1;
// number of divisions // number of divisions
resolution 36; resolution 36;
// material name of this wall // material name of this wall
material solidProperty; material solidProperty;
// motion component name // motion component name
motion axisOfRotation; motion axisOfRotation;
} }
coneShelldown coneShelldown
{ {
// type of the wall
type cylinderWall;
// type of the wall // begin point of cylinder axis
type cylinderWall; p1 (0.0 0.0 0.02);
// begin point of cylinder axis // end point of cylinder axis
p1 (0.0 0.0 0.02); p2 (0.0 0.0 0.1);
// end point of cylinder axis // radius at p1
p2 (0.0 0.0 0.1); radius1 0.03;
// radius at p1 // radius at p2
radius1 0.03; 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
motion axisOfRotation;
}
bottomCylinder bottomCylinder
{ {
// type of the wall // type of the wall
type cylinderWall; type cylinderWall;
// begin point of cylinder axis // begin point of cylinder axis
p1 (0.0 0.0 0.0); p1 (0.0 0.0 0.0);
// end point of cylinder axis // end point of cylinder axis
p2 (0.0 0.0 0.02); p2 (0.0 0.0 0.02);
// radius at p1 // radius at p1
radius1 0.03; radius1 0.03;
// radius at p2 // radius at p2
radius2 0.03; radius2 0.03;
// number of divisions // number of divisions
resolution 36; resolution 36;
// material name of this wall // material name of this wall
material solidProperty; material solidProperty;
// motion component name // motion component name
motion axisOfRotation; motion axisOfRotation;
} }
exitGate exitGate
{ {
// type of the wall
type cylinderWall;
// type of the wall // begin point of cylinder axis
type cylinderWall; p1 (0.0 0.0 -0.001);
// begin point of cylinder axis // end point of cylinder axis
p1 (0.0 0.0 -0.001); p2 (0.0 0.0 0.0);
// end point of cylinder axis // radius at p1
p2 (0.0 0.0 0.0); radius1 0.03;
// radius at p1 // radius at p2
radius1 0.03; radius2 0.0001;
// radius at p2 // number of divisions
radius2 0.0001; resolution 36;
// number of divisions // material name of this wall
resolution 36; material solidProperty;
// 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; // perform initial sorting based on morton code
orderedInfo mortonSorting Yes;
{
// minimum space between centers of particles orderedInfo
diameter 0.005; {
// minimum space between centers of particles
diameter 0.005;
// number of particles in the simulation // number of particles in the simulation
numPoints 24000; numPoints 24000;
// axis order for filling the space with particles // axis order for filling the space with particles
axisOrder (x y z); 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