File tree Expand file tree Collapse file tree 10 files changed +19166
-0
lines changed
tutorials/sphereGranFlow/screwConveyor Expand file tree Collapse file tree 10 files changed +19166
-0
lines changed Original file line number Diff line number Diff line change 1+ /* -------------------------------*- C++ -*--------------------------------- *\
2+ | phasicFlow File |
3+ | copyright: www.cemf.ir |
4+ \* ------------------------------------------------------------------------- */
5+
6+ objectName interaction;
7+ objectType dicrionary;
8+
9+ materials (prop1); // a list of materials names
10+ densities (1000.0 ); // density of materials [kg/m3]
11+
12+ contactListType sortedContactList;
13+
14+ model
15+ {
16+ contactForceModel nonLinearNonLimited;
17+ rollingFrictionModel normal;
18+
19+ Yeff (1.0e6 ); // Young modulus [Pa]
20+
21+ Geff (0.8e6 ); // Shear modulus [Pa]
22+
23+ nu (0.25 ); // Poisson's ratio [-]
24+
25+ en (0.7 ); // coefficient of normal restitution
26+
27+ et (1.0 ); // coefficient of tangential restitution
28+
29+ mu (0.3 ); // dynamic friction
30+
31+ mur (0.1 ); // rolling friction
32+
33+ }
34+
35+
36+ contactSearch
37+ {
38+ method NBS; // method for broad search particle-particle
39+ wallMapping cellMapping; // method for broad search particle-wall
40+
41+ NBSInfo
42+ {
43+ updateFrequency 10 ; // each 20 timesteps, update neighbor list
44+ sizeRatio 1.1 ; // bounding box size to particle diameter (max)
45+ }
46+
47+ cellMappingInfo
48+ {
49+ updateFrequency 10 ; // each 20 timesteps, update neighbor list
50+ cellExtent 0.6 ; // bounding box for particle-wall search (> 0.5)
51+ }
52+
53+ }
Original file line number Diff line number Diff line change 1+ /* -------------------------------*- C++ -*--------------------------------- *\
2+ | phasicFlow File |
3+ | copyright: www.cemf.ir |
4+ \* ------------------------------------------------------------------------- */
5+
6+ objectName particleInsertion;
7+ objectType dicrionary;
8+
9+
10+ active yes; // is insertion active?
11+
12+ collisionCheck No; // not implemented for yes
13+
14+ /*
15+ five layers of particles are packed one-by-one using 5 insertion steps.
16+ */
17+
18+ layer0
19+ {
20+ type cylinderRegion; // type of insertion region
21+ rate 5000 ; // insertion rate (particles/s)
22+ startTime 0 ; // (s)
23+ endTime 100 ; // (s)
24+ interval 0.025 ; // s
25+
26+ cylinderRegionInfo
27+ {
28+ radius 0.09 ; // radius of cylinder (m)
29+ p1 (0.22 0.73 0.25 ); // (m,m,m)
30+ p2 (0.22 0.742 0.25 ); // (m,m,m)
31+ }
32+
33+ setFields
34+ {
35+ velocity realx3 (0.0 -0.6 -0 ); // initial velocity of inserted particles
36+ }
37+
38+ mixture
39+ {
40+ sphere1 1 ; // mixture composition of inserted particles
41+
42+ }
43+ }
44+
45+
Original file line number Diff line number Diff line change 1+ /* -------------------------------*- C++ -*--------------------------------- *\
2+ | phasicFlow File |
3+ | copyright: www.cemf.ir |
4+ \* ------------------------------------------------------------------------- */
5+
6+ objectName sphereDict;
7+ objectType sphereShape;
8+
9+ names (sphere1); // names of shapes
10+ diameters (0.01 ); // diameter of shapes
11+ materials (prop1); // material names for shapes
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+ cd ${0%/* } || exit 1 # Run from this directory
3+
4+ ls | grep -P " ^(([0-9]+\.?[0-9]*)|(\.[0-9]+))$" | xargs -d" \n" rm -rf
5+ rm -rf VTK
6+
7+ # ------------------------------------------------------------------------------
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+ cd ${0%/* } || exit 1 # Run from this directory
3+ echo " \n<--------------------------------------------------------------------->"
4+ echo " 1) Creating particles"
5+ echo " <--------------------------------------------------------------------->\n"
6+ particlesPhasicFlow
7+
8+ echo " \n<--------------------------------------------------------------------->"
9+ echo " 2) Creating geometry"
10+ echo " <--------------------------------------------------------------------->\n"
11+ geometryPhasicFlow
12+
13+ echo " \n<--------------------------------------------------------------------->"
14+ echo " 3) Running the case"
15+ echo " <--------------------------------------------------------------------->\n"
16+ sphereGranFlow
17+
18+
19+
20+
21+ # ------------------------------------------------------------------------------
Original file line number Diff line number Diff line change 1+ /* -------------------------------*- C++ -*--------------------------------- *\
2+ | phasicFlow File |
3+ | copyright: www.cemf.ir |
4+ \* ------------------------------------------------------------------------- */
5+
6+ objectName geometryDict;
7+ objectType dictionary;
8+
9+ // motion model: rotating object around an axis
10+ motionModel rotatingAxisMotion;
11+
12+ surfaces
13+ {
14+ helix
15+ {
16+ type stlWall; // type of the wall
17+ file helix.stl ; // file name in stl folder
18+ material prop1; // material name of this wall
19+ motion rotAxis; // motion component name
20+ }
21+
22+ shell
23+ {
24+ type stlWall; // type of the wall
25+ file shell.stl ; // file name in stl folder
26+ material prop1; // material name of this wall
27+ motion none; // motion component name
28+ }
29+
30+ }
31+
32+
33+ rotatingAxisMotionInfo
34+ {
35+ rotAxis
36+ {
37+ p1 (1.09635 0.2010556 0.22313511 ); // first point for the axis of rotation
38+ p2 (0.0957492 0.201556 0.22313511 ); // second point for the axis of rotation
39+ omega 3 ; // rotation speed (rad/s)
40+ startTime 5 ;
41+ endTime 30 ;
42+ }
43+ }
44+
Original file line number Diff line number Diff line change 1+ /* -------------------------------*- C++ -*--------------------------------- *\
2+ | phasicFlow File |
3+ | copyright: www.cemf.ir |
4+ \* ------------------------------------------------------------------------- */
5+
6+ objectName particlesDict;
7+ objectType dictionary;
8+
9+ setFields
10+ {
11+ defaultValue
12+ {
13+ velocity realx3 (0 0 0 ); // linear velocity (m/s)
14+ acceleration realx3 (0 0 0 ); // linear acceleration (m/s2)
15+ rotVelocity realx3 (0 0 0 ); // rotational velocity (rad/s)
16+ shapeName word lightSphere; // name of the particle shape
17+ }
18+
19+ selectors
20+ {}
21+ }
22+
23+ // positions particles
24+ positionParticles
25+ {
26+ method empty; // creates the required fields with zero particles (empty).
27+
28+ maxNumberOfParticles 50000 ; // maximum number of particles in the simulation
29+ mortonSorting Yes; // perform initial sorting based on morton code?
30+
31+ }
Original file line number Diff line number Diff line change 1+ /* -------------------------------*- C++ -*--------------------------------- *\
2+ | phasicFlow File |
3+ | copyright: www.cemf.ir |
4+ \* ------------------------------------------------------------------------- */
5+ objectName settingsDict;
6+ objectType dictionary;;
7+
8+ run layerdSiloFilling;
9+
10+ dt 0.0001 ; // time step for integration (s)
11+
12+ startTime 0 ; // start time for simulation
13+
14+ endTime 20 ; // end time for simulation
15+
16+ saveInterval 0.05 ; // time interval for saving the simulation
17+
18+ timePrecision 6 ; // maximum number of digits for time folder
19+
20+ g (0 -9.8 0 ); // gravity vector (m/s2)
21+
22+ /*
23+ Simulation domain
24+ every particles that goes outside this domain is deleted.
25+ */
26+ domain
27+ {
28+ min (0.0 -0.06 0.001 );
29+ max (1.2 1 0.5 );
30+ }
31+
32+ integrationMethod AdamsBashforth3; // integration method
33+
34+ timersReport Yes; // report timers?
35+
36+ timersReportInterval 0.01 ; // time interval for reporting timers
You can’t perform that action at this time.
0 commit comments