From 282d9733fc29c4853d3e69e7360d0f4f1dbe05c3 Mon Sep 17 00:00:00 2001 From: wanqing0421 Date: Fri, 28 Feb 2025 00:43:03 +0800 Subject: [PATCH] correctiont for rotatingDrumSmall --- .../rotatingDrumSmall/README.md | 36 +++++-------------- .../rotatingDrumSmall/caseSetup/interaction | 2 -- .../rotatingDrumSmall/caseSetup/sphereShape | 12 ------- .../rotatingDrumSmall/settings/domainDict | 5 --- .../rotatingDrumSmall/settings/particlesDict | 18 +--------- 5 files changed, 9 insertions(+), 64 deletions(-) delete mode 100755 tutorials/sphereGranFlow/rotatingDrumSmall/caseSetup/sphereShape diff --git a/tutorials/sphereGranFlow/rotatingDrumSmall/README.md b/tutorials/sphereGranFlow/rotatingDrumSmall/README.md index ca5907e9..7ce3d126 100644 --- a/tutorials/sphereGranFlow/rotatingDrumSmall/README.md +++ b/tutorials/sphereGranFlow/rotatingDrumSmall/README.md @@ -1,4 +1,4 @@ -# Problem definition (v-1.0) +## Problem definition (v-1.0) The problem is to simulate a rotating drum with the diameter 0.24 m and the length 0.1 m rotating at 11.6 rpm. It is filled with 30,000 4-mm spherical particles. The timestep for integration is 0.00001 s.
a view of rotating drum @@ -54,6 +54,8 @@ in settings/particlesDict file
```C++ +setFields +{ defaultValue { velocity realx3 (0 0 0); // linear velocity (m/s) @@ -67,25 +69,9 @@ in settings/particlesDict file selectors { - shapeAssigne - { - selector stridedRange; // other options: box, cylinder, sphere, randomPoints - - stridedRangeInfo - { - begin 0; // begin index of points - end ; // 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 - } - } } +} ``` Enter the following command in the terminal to create the particles and store them in `0` folder. @@ -215,7 +201,6 @@ model Geff (0.8e6); // Shear modulus [Pa] nu (0.25); // Poisson's ratio [-] en (0.7); // coefficient of normal restitution - et (1.0); // coefficient of tangential restitution mu (0.3); // dynamic friction mur (0.1); // rolling friction } @@ -246,10 +231,10 @@ contactSearch ``` -In the file `caseSetup/sphereShape`, you can define a list of `names` for shapes (`shapeName` in particle field), a list of diameters for shapes and their `properties` names. +In the file `caseSetup/shape`, you can define a list of `names` for shapes (`shapeName` in particle field), a list of diameters for shapes and their `properties` names.
-in caseSetup/sphereShape file +in caseSetup/shape file
```C++ @@ -302,14 +287,9 @@ in settings/domainDict file ```C++ globalBox // Simulation domain: every particles that goes outside this domain will be deleted { - min (-0.12 -0.12 0.00); // lower corner point of the box + 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 -} - -decomposition -{ - direction z; + max (0.12 0.12 0.11); // upper corner point of the box } boundaries diff --git a/tutorials/sphereGranFlow/rotatingDrumSmall/caseSetup/interaction b/tutorials/sphereGranFlow/rotatingDrumSmall/caseSetup/interaction index 3923f1d4..2713ed01 100755 --- a/tutorials/sphereGranFlow/rotatingDrumSmall/caseSetup/interaction +++ b/tutorials/sphereGranFlow/rotatingDrumSmall/caseSetup/interaction @@ -40,8 +40,6 @@ model en (0.7); // coefficient of normal restitution - et (1.0); // coefficient of tangential restitution - mu (0.3); // dynamic friction mur (0.1); // rolling friction diff --git a/tutorials/sphereGranFlow/rotatingDrumSmall/caseSetup/sphereShape b/tutorials/sphereGranFlow/rotatingDrumSmall/caseSetup/sphereShape deleted file mode 100755 index 7a87b7ad..00000000 --- a/tutorials/sphereGranFlow/rotatingDrumSmall/caseSetup/sphereShape +++ /dev/null @@ -1,12 +0,0 @@ -/* -------------------------------*- C++ -*--------------------------------- *\ -| phasicFlow File | -| copyright: www.cemf.ir | -\* ------------------------------------------------------------------------- */ -objectName sphereDict; -objectType sphereShape; -fileFormat ASCII; -/*---------------------------------------------------------------------------*/ - -names (sphere1); // names of shapes -diameters (0.004); // diameter of shapes -materials (prop1); // material names for shapes diff --git a/tutorials/sphereGranFlow/rotatingDrumSmall/settings/domainDict b/tutorials/sphereGranFlow/rotatingDrumSmall/settings/domainDict index a1b70f71..730402bc 100755 --- a/tutorials/sphereGranFlow/rotatingDrumSmall/settings/domainDict +++ b/tutorials/sphereGranFlow/rotatingDrumSmall/settings/domainDict @@ -13,11 +13,6 @@ globalBox // Simulation domain: every par max (0.12 0.12 0.11); // upper corner point of the box } -decomposition -{ - direction z; -} - boundaries { left diff --git a/tutorials/sphereGranFlow/rotatingDrumSmall/settings/particlesDict b/tutorials/sphereGranFlow/rotatingDrumSmall/settings/particlesDict index 21403626..23d4af07 100644 --- a/tutorials/sphereGranFlow/rotatingDrumSmall/settings/particlesDict +++ b/tutorials/sphereGranFlow/rotatingDrumSmall/settings/particlesDict @@ -29,24 +29,8 @@ setFields selectors { - shapeAssigne - { - selector stridedRange; // other options: box, cylinder, sphere, randomPoints - - stridedRangeInfo - { - begin 0; // begin index of points - end 30000; // 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