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.
PhasicFlow simulation case setup is based on the text-based scripts that we provide in two folders located in the simulation case folder: settings and caseSetup (You can find the case setup files in the above folders. All the commands should be entered in the terminal while the current working directory is the simulation case folder (at the top of the caseSetup and settings).
Open the file settings/particlesDict. Two dictionaries, positionParticles and setFields position particles and set the field values for the particles. In dictionary positionParticles, the positioning method is positionOrdered, which position particles in order in the space defined by box. box space is defined by two corner points min and max. In dictionary positionOrderedInfo, numPoints defines number of particles; diameter, the distance between two adjacent particles, and axisOrder defines the axis order for filling the space by particles.
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).
Enter the following command in the terminal to create the particles and store them in 0 folder.
> particlesPhasicFlow
In file settings/geometryDict , you can provide information for creating geometry. Each simulation should have a motionModel that defines a model for moving the surfaces in the simulation. rotatingAxisMotion model defines a fixed axis which rotates around itself. The dictionary rotAxis defines an motion component with p1 and p2 as the end points of the axis and omega as the rotation speed in rad/s. You can define more than one motion component in a simulation.
In the dictionary surfaces you can define all the surfaces (walls) 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 radii, radius1 and radius2, axis end points p1 and p2, material name prop1, motion component rotAxis is defined. resolution sets number of division for the cylinder shell. wall1 and wall2 define two plane walls at two ends of cylindrical shell with coplanar corner points p1, p2, p3, and p4, material name prop1 and motion component rotAxis.
Enter the following command in the terminal to create the geometry and store it in 0/geometry folder.
> geometryPhasicFlow
In the file caseSetup/interaction , you find properties of materials. materials defines a list of material names in the simulation and densities sets the corresponding density of each material name. model dictionary defines the interaction model for particle-particle and particle-wall interactions. contactForceModel selects the model for mechanical contacts (here nonlinear model with limited tangential displacement) and rollingFrictionModel selects the model for calculating rolling friction. Other required prosperities should be defined in this dictionary.
Dictionary contactSearch sets the methods for particle-particle and particle-wall contact search. method specifies the algorithm for finding neighbor list for particle-particle contacts and wallMapping shows how particles are mapped onto walls for finding neighbor list for particle-wall contacts. updateFrequency sets the frequency for updating neighbor list and sizeRatio sets the size of enlarged cells (with respect to particle diameter) for finding neighbor list. Larger sizeRatio include more particles in the neighbor list and you require to update it less frequent.
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.
Other settings for the simulation can be set in file settings/settingsDict. The dictionary domain defines the a rectangular bounding box with two corner points for the simulation. Each particle that gets out of this box, will be deleted automatically.
The solver for this simulation is sphereGranFlow. Enter the following command in the terminal. Depending on the computational power, it may take a few minutes to a few hours to complete.
> sphereGranFlow
After finishing the simulation, you can render the results in Paraview. To convert the results to VTK format, just enter the following command in the terminal. This will converts all the results (particles and geometry) to VTK format and store them in folder VTK/.
> pFlowToVTK