You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tutorials/sphereGranFlow/screwConveyor/README.md
+10-30Lines changed: 10 additions & 30 deletions
Original file line number
Diff line number
Diff line change
@@ -33,27 +33,6 @@ positionParticles
33
33
34
34
}
35
35
```
36
-
In dictionary `setFields`, dictionary `defaultValue` defines the initial value for particle fields (here, `velocity`, `acceleration`, `rotVelocity`, and `shapeName`). Note that `shapeName` field should be consistent with the name of shape that you later set for shapes (here one shape with name `sphere1`).
37
-
38
-
<divalign="center">
39
-
in <b>settings/particlesDict</b> file
40
-
</div>
41
-
42
-
```C++
43
-
setFields
44
-
{
45
-
defaultValue
46
-
{
47
-
velocity realx3 (0 0 0); // linear velocity (m/s)
48
-
acceleration realx3 (0 0 0); // linear acceleration (m/s2)
shapeName word lightSphere; // name of the particle shape
51
-
}
52
-
53
-
selectors
54
-
{}
55
-
}
56
-
```
57
36
58
37
Enter the following command in the terminal to create the particles and store them in `0` folder.
59
38
@@ -84,7 +63,7 @@ rotatingAxisMotionInfo
84
63
}
85
64
86
65
```
87
-
In the dictionary `surfaces` you can define all the surfaces (shell) in the simulation. Two main options are available: built-in geometries in PhasicFlow, and providing surfaces with stl file. Here we use built-in geometries. In `cylinder` dictionary, a cylindrical shell with end helix, `material` name `prop1`, `motion` component `none` is defined. `helix` define plane helix at center of cylindrical shell, `material` name `prop1` and `motion` component `rotAxis`.
66
+
In the dictionary `surfaces` you can define all the surfaces (shell) in the simulation. Two main options are available: built-in geometries in PhasicFlow, and providing surfaces with stl file. Here we use built-in geometries. In `cylinder` dictionary, a cylindrical shell with end helix, `material` name `prop1`, `motion` component `none` is defined. `helix` define plane helix at center of cylindrical shell, `material` name `prop1` and `motion` component `rotAxis`.'rotAxis' is use for helix because it is rotating and 'none' is use for shell because It is motionless.
88
67
89
68
<divalign="center">
90
69
in <b>settings/geometryDict</b> file
@@ -112,6 +91,7 @@ surfaces
112
91
}
113
92
114
93
```
94
+
115
95
Enter the following command in the terminal to create the geometry and store it in `0/geometry` folder.
116
96
117
97
`> geometryPhasicFlow`
@@ -186,7 +166,7 @@ in <b>caseSetup/sphereShape</b> file
186
166
187
167
```C++
188
168
names (sphere1); // names of shapes
189
-
diameters (0.01); // diameter of shapes
169
+
diameters (0.01); // diameter of shapes
190
170
materials (prop1); // material names for shapes
191
171
```
192
172
@@ -197,12 +177,12 @@ in <b>settings/settingsDict</b> file
197
177
</div>
198
178
199
179
```C++
200
-
dt 0.0001; // time step for integration (s)
201
-
startTime 0; // start time for simulation
202
-
endTime 20; // end time for simulation
180
+
dt 0.0001; // time step for integration (s)
181
+
startTime 0; // start time for simulation
182
+
endTime 20; // end time for simulation
203
183
saveInterval 0.05; // time interval for saving the simulation
204
-
timePrecision 6; // maximum number of digits for time folder
205
-
g (0 -9.8 0); // gravity vector (m/s2)
184
+
timePrecision 6; // maximum number of digits for time folder
0 commit comments