From 1817c9e6407937122ddc2e6f2ebd88232f189581 Mon Sep 17 00:00:00 2001 From: pedramyousefi Date: Tue, 29 Aug 2023 09:33:48 +0330 Subject: [PATCH] All the problems were fixed --- .../sphereGranFlow/screwConveyor/README.md | 40 +++++-------------- .../screwConveyor/settings/particlesDict | 12 ------ 2 files changed, 10 insertions(+), 42 deletions(-) diff --git a/tutorials/sphereGranFlow/screwConveyor/README.md b/tutorials/sphereGranFlow/screwConveyor/README.md index 8ab5858e..d167e61c 100644 --- a/tutorials/sphereGranFlow/screwConveyor/README.md +++ b/tutorials/sphereGranFlow/screwConveyor/README.md @@ -33,27 +33,6 @@ positionParticles } ``` -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`). - -
-in settings/particlesDict file -
- -```C++ -setFields -{ - defaultValue - { - velocity realx3 (0 0 0); // linear velocity (m/s) - acceleration realx3 (0 0 0); // linear acceleration (m/s2) - rotVelocity realx3 (0 0 0); // rotational velocity (rad/s) - shapeName word lightSphere; // name of the particle shape - } - - selectors - {} -} -``` Enter the following command in the terminal to create the particles and store them in `0` folder. @@ -84,7 +63,7 @@ rotatingAxisMotionInfo } ``` -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`. +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.
in settings/geometryDict file @@ -112,6 +91,7 @@ surfaces } ``` + Enter the following command in the terminal to create the geometry and store it in `0/geometry` folder. `> geometryPhasicFlow` @@ -186,7 +166,7 @@ in caseSetup/sphereShape file ```C++ names (sphere1); // names of shapes -diameters (0.01); // diameter of shapes +diameters (0.01); // diameter of shapes materials (prop1); // material names for shapes ``` @@ -197,12 +177,12 @@ in settings/settingsDict file
```C++ -dt 0.0001; // time step for integration (s) -startTime 0; // start time for simulation -endTime 20; // end time for simulation +dt 0.0001; // time step for integration (s) +startTime 0; // start time for simulation +endTime 20; // end time for simulation saveInterval 0.05; // time interval for saving the simulation -timePrecision 6; // maximum number of digits for time folder -g (0 -9.8 0); // gravity vector (m/s2) +timePrecision 6; // maximum number of digits for time folder +g (0 -9.8 0); // gravity vector (m/s2) domain { @@ -212,9 +192,9 @@ domain integrationMethod AdamsBashforth3; // integration method -timersReport Yes; // report timers? +timersReport Yes; // report timers? -timersReportInterval 0.01; // time interval for reporting timers +timersReportInterval 0.01; // time interval for reporting timers ``` ## Running the case diff --git a/tutorials/sphereGranFlow/screwConveyor/settings/particlesDict b/tutorials/sphereGranFlow/screwConveyor/settings/particlesDict index fa3edaf3..8e5ed5e6 100644 --- a/tutorials/sphereGranFlow/screwConveyor/settings/particlesDict +++ b/tutorials/sphereGranFlow/screwConveyor/settings/particlesDict @@ -6,19 +6,7 @@ objectName particlesDict; objectType dictionary; -setFields -{ - defaultValue - { - velocity realx3 (0 0 0); // linear velocity (m/s) - acceleration realx3 (0 0 0); // linear acceleration (m/s2) - rotVelocity realx3 (0 0 0); // rotational velocity (rad/s) - shapeName word lightSphere; // name of the particle shape - } - selectors - {} -} // positions particles positionParticles