Skip to content

Commit 33a838b

Browse files
Merge pull request #89 from pedramyousefi/main
All the problems were fixed
2 parents 012e386 + 1817c9e commit 33a838b

File tree

2 files changed

+10
-42
lines changed

2 files changed

+10
-42
lines changed

tutorials/sphereGranFlow/screwConveyor/README.md

Lines changed: 10 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -33,27 +33,6 @@ positionParticles
3333

3434
}
3535
```
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-
<div align="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)
49-
rotVelocity realx3 (0 0 0); // rotational velocity (rad/s)
50-
shapeName word lightSphere; // name of the particle shape
51-
}
52-
53-
selectors
54-
{}
55-
}
56-
```
5736

5837
Enter the following command in the terminal to create the particles and store them in `0` folder.
5938

@@ -84,7 +63,7 @@ rotatingAxisMotionInfo
8463
}
8564

8665
```
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.
8867

8968
<div align="center">
9069
in <b>settings/geometryDict</b> file
@@ -112,6 +91,7 @@ surfaces
11291
}
11392

11493
```
94+
11595
Enter the following command in the terminal to create the geometry and store it in `0/geometry` folder.
11696

11797
`> geometryPhasicFlow`
@@ -186,7 +166,7 @@ in <b>caseSetup/sphereShape</b> file
186166

187167
```C++
188168
names (sphere1); // names of shapes
189-
diameters (0.01); // diameter of shapes
169+
diameters (0.01); // diameter of shapes
190170
materials (prop1); // material names for shapes
191171
```
192172
@@ -197,12 +177,12 @@ in <b>settings/settingsDict</b> file
197177
</div>
198178
199179
```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
203183
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
185+
g (0 -9.8 0); // gravity vector (m/s2)
206186
207187
domain
208188
{
@@ -212,9 +192,9 @@ domain
212192
213193
integrationMethod AdamsBashforth3; // integration method
214194
215-
timersReport Yes; // report timers?
195+
timersReport Yes; // report timers?
216196
217-
timersReportInterval 0.01; // time interval for reporting timers
197+
timersReportInterval 0.01; // time interval for reporting timers
218198
```
219199

220200
## Running the case

tutorials/sphereGranFlow/screwConveyor/settings/particlesDict

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,7 @@
66
objectName particlesDict;
77
objectType dictionary;
88

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-
}
189

19-
selectors
20-
{}
21-
}
2210

2311
// positions particles
2412
positionParticles

0 commit comments

Comments
 (0)