From a5074e4eb7da937df7846d56cccb8cae4f9da9a3 Mon Sep 17 00:00:00 2001 From: ramin1728 Date: Sat, 8 Mar 2025 13:24:53 +0330 Subject: [PATCH] comments are implemented. --- .../sphereGranFlow/toteblender/ReadMe.md | 352 +++++++++--------- .../toteblender/caseSetup/interaction | 22 +- .../toteblender/settings/domainDict | 10 +- .../toteblender/settings/geometryDict | 2 +- .../toteblender/settings/particlesDict | 25 +- 5 files changed, 195 insertions(+), 216 deletions(-) diff --git a/tutorials/sphereGranFlow/toteblender/ReadMe.md b/tutorials/sphereGranFlow/toteblender/ReadMe.md index b380d97b..0b4fbf86 100644 --- a/tutorials/sphereGranFlow/toteblender/ReadMe.md +++ b/tutorials/sphereGranFlow/toteblender/ReadMe.md @@ -28,19 +28,19 @@ In file `settings/geometryDict` the information of rotating axis and speed of ro // information for rotatingAxisMotion motion model rotatingAxisInfo { - axisOfRotation - { - 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 + axisOfRotation + { + 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 - omega 1.5708; // rotation speed ==> 15 rad/s + omega 1.5708; // rotation speed ==> 15 rad/s // Start time of Geometry Rotating (s) - startTime 0.5; + startTime 0.5; // 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++ surfaces { - - topGate - { - // type of wall - type cylinderWall; + topGate + { + // type of wall + type cylinderWall; - // begin point of cylinder axis - p1 (0.0 0.0 0.3); + // begin point of cylinder axis + p1 (0.0 0.0 0.3); - // end point of cylinder axis - p2 (0.0 0.0 0.301); + // end point of cylinder axis + p2 (0.0 0.0 0.301); - // radius at p1 - radius1 0.03; + // radius at p1 + radius1 0.03; - // radius at p2 - radius2 0.0001; + // radius at p2 + radius2 0.0001; - // material of wall - material solidProperty; + // material of wall + material solidProperty; - // motion component name - motion axisOfRotation; - } + // motion component name + motion axisOfRotation; + } - topCylinder - { - // type of the wall - type cylinderWall; + topCylinder + { + // type of the wall + type cylinderWall; - // begin point of cylinder axis - p1 (0.0 0.0 0.28); + // begin point of cylinder axis + p1 (0.0 0.0 0.28); - // end point of cylinder axis - p2 (0.0 0.0 0.3); + // end point of cylinder axis + p2 (0.0 0.0 0.3); - // radius at p1 - radius1 0.03; + // radius at p1 + radius1 0.03; - // radius at p2 - radius2 0.03; + // radius at p2 + radius2 0.03; - // number of divisions - resolution 36; + // number of divisions + resolution 36; - // material name of this wall - material solidProperty; + // material name of this wall + material solidProperty; - // motion component name - motion axisOfRotation; - } + // motion component name + motion axisOfRotation; + } - coneShelltop - { - // type of the wall - type cylinderWall; + coneShelltop + { + // type of the wall + type cylinderWall; - // begin point of cylinder axis - p1 (0.0 0.0 0.2); + // begin point of cylinder axis + p1 (0.0 0.0 0.2); - // end point of cylinder axis - p2 (0.0 0.0 0.28); + // end point of cylinder axis + p2 (0.0 0.0 0.28); - // radius at p1 - radius1 0.1; + // radius at p1 + radius1 0.1; - // radius at p2 - radius2 0.03; + // radius at p2 + radius2 0.03; - // number of divisions - resolution 36; + // number of divisions + resolution 36; - // material name of this wall - material solidProperty; + // material name of this wall + material solidProperty; - // motion component name - motion axisOfRotation; - } + // motion component name + motion axisOfRotation; + } - cylinderShell - { - // type of the wall - type cylinderWall; + cylinderShell + { + // type of the wall + type cylinderWall; - // begin point of cylinder axis - p1 (0.0 0.0 0.1); + // begin point of cylinder axis + p1 (0.0 0.0 0.1); - // end point of cylinder axis - p2 (0.0 0.0 0.2); + // end point of cylinder axis + p2 (0.0 0.0 0.2); - // radius at p1 - radius1 0.1; + // radius at p1 + radius1 0.1; - // radius at p2 - radius2 0.1; + // radius at p2 + radius2 0.1; - // number of divisions - resolution 36; + // number of divisions + resolution 36; - // material name of this wall - material solidProperty; + // material name of this wall + material solidProperty; - // motion component name - motion axisOfRotation; - } + // motion component name + motion axisOfRotation; + } - coneShelldown - { + coneShelldown + { + // type of the wall + type cylinderWall; - // type of the wall - type cylinderWall; + // begin point of cylinder axis + p1 (0.0 0.0 0.02); - // begin point of cylinder axis - p1 (0.0 0.0 0.02); + // end point of cylinder axis + p2 (0.0 0.0 0.1); - // end point of cylinder axis - p2 (0.0 0.0 0.1); + // radius at p1 + radius1 0.03; - // radius at p1 - radius1 0.03; + // radius at p2 + radius2 0.1; - // radius at p2 - radius2 0.1; + // number of divisions + resolution 36; - // number of divisions - resolution 36; + // material name of this wall + material solidProperty; - // material name of this wall - material solidProperty; - - // motion component name - motion axisOfRotation; - } + // motion component name + motion axisOfRotation; + } - bottomCylinder - { - // type of the wall - type cylinderWall; + bottomCylinder + { + // type of the wall + type cylinderWall; - // begin point of cylinder axis - p1 (0.0 0.0 0.0); + // begin point of cylinder axis + p1 (0.0 0.0 0.0); - // end point of cylinder axis - p2 (0.0 0.0 0.02); + // end point of cylinder axis + p2 (0.0 0.0 0.02); - // radius at p1 - radius1 0.03; + // radius at p1 + radius1 0.03; - // radius at p2 - radius2 0.03; + // radius at p2 + radius2 0.03; - // number of divisions - resolution 36; + // number of divisions + resolution 36; - // material name of this wall - material solidProperty; + // material name of this wall + material solidProperty; - // motion component name - motion axisOfRotation; - } + // motion component name + motion axisOfRotation; + } - exitGate - { + exitGate + { + // type of the wall + type cylinderWall; - // type of the wall - type cylinderWall; + // begin point of cylinder axis + p1 (0.0 0.0 -0.001); - // begin point of cylinder axis - p1 (0.0 0.0 -0.001); + // end point of cylinder axis + p2 (0.0 0.0 0.0); - // end point of cylinder axis - p2 (0.0 0.0 0.0); + // radius at p1 + radius1 0.03; - // radius at p1 - radius1 0.03; + // radius at p2 + radius2 0.0001; - // radius at p2 - radius2 0.0001; + // number of divisions + resolution 36; - // number of divisions - resolution 36; - - // material name of this wall - material solidProperty; - - // motion component name - motion axisOfRotation; - } + // material name of this wall + material solidProperty; + // motion component name + motion axisOfRotation; + } } ``` @@ -272,31 +268,33 @@ in settings/particlesDict file // positions particles positionParticles { - // ordered positioning - method ordered; - // perform initial sorting based on morton code - mortonSorting Yes; - orderedInfo - { - // minimum space between centers of particles - diameter 0.005; + // ordered positioning + 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 - numPoints 24000; + // number of particles in the simulation + numPoints 24000; - // axis order for filling the space with particles - axisOrder (x y z); - } + // axis order for filling the space with particles + axisOrder (x y z); + } regionType cylinder; // other options: box and sphere 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 { - contactForceModel nonLinearNonLimited; + contactForceModel nonLinearNonLimited; - rollingFrictionModel normal; + rollingFrictionModel normal; - /* - Property (solidProperty-solidProperty); - */ + /* + Property (solidProperty-solidProperty); + */ - // Young modulus [Pa] - Yeff (1.0e6); + // Young modulus [Pa] + Yeff (1.0e6); - // Shear modulus [Pa] - Geff (0.8e6); + // Shear modulus [Pa] + Geff (0.8e6); - // Poisson's ratio [-] - nu (0.25); + // Poisson's ratio [-] + nu (0.25); - // coefficient of normal restitution - en (0.7); + // coefficient of normal restitution + en (0.7); - // dynamic friction - mu (0.3); + // dynamic friction + mu (0.3); - // rolling friction - mur (0.1); + // rolling friction + mur (0.1); } ``` diff --git a/tutorials/sphereGranFlow/toteblender/caseSetup/interaction b/tutorials/sphereGranFlow/toteblender/caseSetup/interaction index c8e5411c..8b081774 100644 --- a/tutorials/sphereGranFlow/toteblender/caseSetup/interaction +++ b/tutorials/sphereGranFlow/toteblender/caseSetup/interaction @@ -27,24 +27,24 @@ contactSearch 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 } diff --git a/tutorials/sphereGranFlow/toteblender/settings/domainDict b/tutorials/sphereGranFlow/toteblender/settings/domainDict index 857bb5fa..6a13327a 100755 --- a/tutorials/sphereGranFlow/toteblender/settings/domainDict +++ b/tutorials/sphereGranFlow/toteblender/settings/domainDict @@ -23,26 +23,26 @@ boundaries right { - type exit; // other options: periodict, reflective + type exit; // other options: periodic, reflective } bottom { - type exit; // other options: periodict, reflective + type exit; // other options: periodic, reflective } top { - type exit; // other options: periodict, reflective + type exit; // other options: periodic, reflective } rear { - type exit; // other options: periodict, reflective + type exit; // other options: periodic, reflective } front { - type exit; // other options: periodict, reflective + type exit; // other options: periodic, reflective } } diff --git a/tutorials/sphereGranFlow/toteblender/settings/geometryDict b/tutorials/sphereGranFlow/toteblender/settings/geometryDict index 187f05de..542ac7a9 100644 --- a/tutorials/sphereGranFlow/toteblender/settings/geometryDict +++ b/tutorials/sphereGranFlow/toteblender/settings/geometryDict @@ -10,7 +10,7 @@ motionModel rotatingAxis; // motion model: rotating objec rotatingAxisInfo // information for rotatingAxisMotion motion model { - axisOfRotation + axisOfRotation { p1 (-0.1 0.0 0.15); // first point for the axis of rotation diff --git a/tutorials/sphereGranFlow/toteblender/settings/particlesDict b/tutorials/sphereGranFlow/toteblender/settings/particlesDict index 94c882fc..590ae070 100644 --- a/tutorials/sphereGranFlow/toteblender/settings/particlesDict +++ b/tutorials/sphereGranFlow/toteblender/settings/particlesDict @@ -16,9 +16,9 @@ setFields 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) @@ -28,26 +28,7 @@ setFields } 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