From 7e7184f1c5c92450cf04394baa714ad0a8c09d36 Mon Sep 17 00:00:00 2001 From: ramin1728 Date: Tue, 11 Feb 2025 23:18:29 +0330 Subject: [PATCH 1/2] binarySystemOfParticles is Updated. --- .../binarySystemOfParticles/README.md | 34 +++++++++---------- .../caseSetup/interaction | 14 ++++---- .../settings/geometryDict | 14 ++++---- .../settings/particlesDict | 18 +++++----- 4 files changed, 40 insertions(+), 40 deletions(-) diff --git a/tutorials/sphereGranFlow/binarySystemOfParticles/README.md b/tutorials/sphereGranFlow/binarySystemOfParticles/README.md index 299245d9..00aac380 100644 --- a/tutorials/sphereGranFlow/binarySystemOfParticles/README.md +++ b/tutorials/sphereGranFlow/binarySystemOfParticles/README.md @@ -28,8 +28,8 @@ in caseSetup/sphereShape file ```C++ names (smallSphere largeSphere); // names of shapes -diameters (0.003 0.005); // diameter of shapes (m) -materials (prop1 prop1); // material names for shapes +diameters (0.003 0.005); // diameter of shapes (m) +materials (prop1 prop1); // material names for shapes ``` ### Positioning and initial mixture @@ -44,18 +44,17 @@ in settings/particlesDict file // positions particles positionParticles { - method ordered; // other options: random or empty - + method ordered; // other options: random or empty orderedInfo { - diameter 0.005; // minimum space between centers of particles - numPoints 30000; // number of particles in the simulation + diameter 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 } regionType cylinder; // other options: box and sphere - cylinder // cylinder region for positioning particles + cylinder // cylinder region for positioning particles { p1 (0.0 0.0 0.003); // begin point of cylinder axis (m m m) p2 (0.0 0.0 0.097); // end point of cylinder axis (m m m) @@ -76,9 +75,9 @@ setFields { /* Default value for fields defined for particles - These fields should always be defined for simulations with - spherical particles. -*/ + These fields should always be defined for simulations with + spherical particles. + */ defaultValue { @@ -87,20 +86,21 @@ setFields rotVelocity realx3 (0 0 0); // rotational velocity (rad/s) shapeName word smallSphere; // name of the particle shape } - + selectors { shapeAssigne { - selector stridedRange; // other options: box, cylinder, sphere, randomPoints - + selector stridedRange; // other options: box, cylinder, sphere, randomPoints + stridedRangeInfo { - begin 0; // begin index of points + begin 0; // begin index of points end 30000; // end index of points - stride 3; // stride for selector + stride 3; // stride for selector } - fieldValue // fields that the selector is applied to + + fieldValue // fields that the selector is applied to { /* sets shapeName of the selected points to largeSphere @@ -139,4 +139,4 @@ Options: --setFields-only Exectue the setFields part only. Read the pointStructure from time folder and setFields and save the result in the same time folder. ``` -so, with flag `--setFields-only`, you can execute the `setFields` part of `particlesDict`. Now suppose that you have a simulation case which proceeded up to 2 seconds and for any reason you want to change some field value at time 3 s and continue the simulation from 3 s. To this end, you need to change `startTime` in settings dictionary to 3, execute `particlesPhasicFlow --setFields-only`, and start the simulation. +so, with flag `--setFields-only`, you can execute the `setFields` part of `particlesDict`. Now suppose that you have a simulation case which proceeded up to 2 seconds and for any reason you want to change some field value at time 3 s and continue the simulation from 3 s. To this end, you need to change `startTime` in settings dictionary to 3, execute `particlesPhasicFlow --setFields-only`, and start the simulation. \ No newline at end of file diff --git a/tutorials/sphereGranFlow/binarySystemOfParticles/caseSetup/interaction b/tutorials/sphereGranFlow/binarySystemOfParticles/caseSetup/interaction index 8ea45868..e3a6247b 100755 --- a/tutorials/sphereGranFlow/binarySystemOfParticles/caseSetup/interaction +++ b/tutorials/sphereGranFlow/binarySystemOfParticles/caseSetup/interaction @@ -6,9 +6,9 @@ objectName interaction; objectType dicrionary; fileFormat ASCII; /*---------------------------------------------------------------------------*/ -materials (prop1); // properties of material +materials (prop1); // properties of material -densities (1000.0); // density of materials [kg/m3] +densities (1000.0); // density of materials [kg/m3] contactListType sortedContactList; @@ -38,14 +38,14 @@ model 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 - et (1.0); // coefficient of tangential restitution + et (1.0); // coefficient of tangential 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/binarySystemOfParticles/settings/geometryDict b/tutorials/sphereGranFlow/binarySystemOfParticles/settings/geometryDict index 9fa0b8a3..55562a4f 100755 --- a/tutorials/sphereGranFlow/binarySystemOfParticles/settings/geometryDict +++ b/tutorials/sphereGranFlow/binarySystemOfParticles/settings/geometryDict @@ -26,19 +26,19 @@ surfaces { 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.1); // end point of cylinder axis + p2 (0.0 0.0 0.1); // end point of cylinder axis - radius1 0.12; // radius at p1 + radius1 0.12; // radius at p1 - radius2 0.12; // radius at p2 + radius2 0.12; // radius at p2 - resolution 24; // number of divisions + resolution 24; // number of divisions - material prop1; // material name of this wall + material prop1; // material name of this wall - motion rotAxis; // motion component name + motion rotAxis; // motion component name } /* diff --git a/tutorials/sphereGranFlow/binarySystemOfParticles/settings/particlesDict b/tutorials/sphereGranFlow/binarySystemOfParticles/settings/particlesDict index 24a6c7ab..b29ebbed 100755 --- a/tutorials/sphereGranFlow/binarySystemOfParticles/settings/particlesDict +++ b/tutorials/sphereGranFlow/binarySystemOfParticles/settings/particlesDict @@ -29,20 +29,20 @@ setFields { shapeAssigne { - selector stridedRange; // other options: box, cylinder, sphere, randomPoints + selector stridedRange; // other options: box, cylinder, sphere, randomPoints stridedRangeInfo { - begin 0; // begin index of points + begin 0; // begin index of points - end 30000; // end index of points + end 30000; // end index of points - stride 3; // stride for selector + stride 3; // stride for selector } fieldValue // fields that the selector is applied to { - shapeName word largeSphere; // sets shapeName of the selected points to largeSphere + shapeName word largeSphere; // sets shapeName of the selected points to largeSphere } } } @@ -50,13 +50,13 @@ setFields positionParticles // positions particles { - method ordered; // other options: random and empty + method ordered; // other options: random and empty orderedInfo { - diameter 0.005; // diameter of particles + diameter 0.005; // diameter of particles - numPoints 30000; // number of particles in the simulation + numPoints 30000; // number of particles in the simulation axisOrder (z x y); // axis order for filling the space with particles } @@ -69,6 +69,6 @@ positionParticles // positions particles p2 (0.0 0.0 0.097); // end point of cylinder axis - radius 0.117; // radius of cylinder + radius 0.117; // radius of cylinder } } From b315d1235728539374aa5aceb916123efb3a58d7 Mon Sep 17 00:00:00 2001 From: ramin1728 Date: Tue, 11 Feb 2025 23:35:58 +0330 Subject: [PATCH 2/2] conveyorBelt is Updated. --- .../conveyorBelt/caseSetup/interaction | 36 +++++++++---------- .../conveyorBelt/settings/geometryDict | 21 ++++++----- 2 files changed, 31 insertions(+), 26 deletions(-) diff --git a/tutorials/sphereGranFlow/conveyorBelt/caseSetup/interaction b/tutorials/sphereGranFlow/conveyorBelt/caseSetup/interaction index 3ea53adf..6d50f330 100755 --- a/tutorials/sphereGranFlow/conveyorBelt/caseSetup/interaction +++ b/tutorials/sphereGranFlow/conveyorBelt/caseSetup/interaction @@ -16,13 +16,13 @@ contactSearch { method NBS; // method for broad search particle-particle - updateInterval 10; + updateInterval 10; sizeRatio 1.1; - cellExtent 0.55; + cellExtent 0.55; - adjustableBox No; + adjustableBox No; } model @@ -46,25 +46,25 @@ model 0.8e6 0.8e6 0.8e6); - nu (0.25 0.25 0.25 // Poisson's ratio [-] - 0.25 0.25 - 0.25); + nu (0.25 0.25 0.25 // Poisson's ratio [-] + 0.25 0.25 + 0.25); - en (0.97 0.97 0.85 // coefficient of normal restitution - 0.97 0.85 - 1.00); + en (0.97 0.97 0.85 // coefficient of normal restitution + 0.97 0.85 + 1.00); - et (1.0 1.0 1.0 // coefficient of tangential restitution - 1.0 1.0 - 1.0); + et (1.0 1.0 1.0 // coefficient of tangential restitution + 1.0 1.0 + 1.0); - mu (0.65 0.65 0.35 // dynamic friction - 0.65 0.35 - 0.35); + mu (0.65 0.65 0.35 // dynamic friction + 0.65 0.35 + 0.35); - mur (0.1 0.1 0.1 // rolling friction - 0.1 0.1 - 0.1); + mur (0.1 0.1 0.1 // rolling friction + 0.1 0.1 + 0.1); } diff --git a/tutorials/sphereGranFlow/conveyorBelt/settings/geometryDict b/tutorials/sphereGranFlow/conveyorBelt/settings/geometryDict index 69873d0e..73f24386 100755 --- a/tutorials/sphereGranFlow/conveyorBelt/settings/geometryDict +++ b/tutorials/sphereGranFlow/conveyorBelt/settings/geometryDict @@ -6,7 +6,7 @@ objectName geometryDict; objectType dictionary; fileFormat ASCII; /*---------------------------------------------------------------------------*/ -motionModel conveyorBelt; // motion model can be rotatingAxis or stationary or vibrating +motionModel conveyorBelt; // motion model can be rotatingAxis or stationary or vibrating conveyorBeltInfo { @@ -54,17 +54,22 @@ surfaces belt { - type stlWall; // type of the wall - file belt.stl; // file name in stl folder - material wallMat; // material name of this wall - motion conveyorBelt1; // motion component name + type stlWall; // type of the wall + + file belt.stl; // file name in stl folder + + material wallMat; // material name of this wall + + motion conveyorBelt1; // motion component name } box { - type stlWall; // type of the wall - file box.stl; // file name in stl folder - material wallMat; // material name of this wall + type stlWall; // type of the wall + + file box.stl; // file name in stl folder + + material wallMat; // material name of this wall } }