Home · DEM Course · Module 3
DEM (Discrete Element Method) Course with BrixDEM

Module 3 · Case preparation

🎬 9 lessons ⏱ 2 h course 📝 5 questions · pass with 4
🔒

This module is still locked

To unlock it, pass the Module 2 quiz with at least 70%.

Go to the quiz · Module 2
Lesson 5 of 9 · 0:52

Domain

Lesson transcript

The domain is the red box. It is the world of the simulation: a particle that leaves this box is deleted. Three buttons solve almost everything. Create Default Box creates an initial box. Enable Edit Mode lets you drag the faces with the mouse. And Fit to Geometry fits the box around the parts. After adjusting, check the numbers. Here are the width, height and depth of the box, in meters, and just below, the position of its center. The domain rule is simple. If it is too tight, it cuts particles off. If it is huge, the case gets slow. And if the part moves, the box must cover its whole path. Two warning signs. The particle count drops, but nothing went through the outlet: the domain is cutting them off. The inlet injects nothing: check that it is inside the red box.

Quiz · Module 3

Check what you learned

5 multiple-choice questions. Get at least 4 right to complete the module. You can try as many times as you like.

✓ You have already passed this module. You may retake the quiz to review.
1.The geometry was drawn in millimetres. What scale factor should be used when importing the STL?
2.The rotation field takes radians per second. How much is 20 rpm?
3.The particle count drops, but nothing passed through the outlet. What is probably wrong?
4.What is the most common mistake when setting up a part's motion?
5.In a material with sizes from 1 to 10 mm, what sets the time step?
Transcripts of every lesson in this module

1. The case for this module

In this module you will prepare a real case, from start to finish. The case is a discharging silo, based on a test published by González-Montellano and co-authors. The geometry is simple. All particles are the same. And there is only one way in and one way out. That way you can follow every step without getting lost. Keep this question in mind. What do I need to define, and with which numbers, for the program to run my equipment with no surprises? The answer is the navigation panel itself: geometry, domain, materials, insertion and setup. We will follow that order.

2. Project and files

Every case is a project, and every project lives in a folder. Under File you create, open and save. Save Project As is your best friend: it creates an independent copy. Want to test a variation? Save it under another name and change it freely. Important: without a saved project, the simulation won't run. Save before you click Run. Three precautions that save headaches. Use short names. Avoid accents and spaces in the path, because they can cause read and write errors that are hard to track down. Something like C, colon, backslash sims, backslash silo zero one does the job. When you save, BrixDEM organizes everything for you. There is the project file. A folder with the geometries. A folder with the results. And one with automatic backup copies.

3. Geometry

The most common way to bring in a part is to import an STL file. I click Import STL and pick the file. The parts show up in this list. Here, the silo hopper and the block that sits below the outlet. Now the most classic mistake of all: scale. BrixDEM works in meters. If the drawing came in millimeters, a twenty-five centimeter part becomes two hundred and fifty meters. The cure is simple: a scale factor of zero point zero zero one. So right after importing, look at the part in the 3D view. If it looks strange, check the scale before going on. Just need a floor or a box? You don't even need a file. In Surfaces, you pick the type and enter the limits. Container keeps particles inside. Obstacle is a block in the way. And what if you have no drawing at all? BrixDEM has its own modeler, the Sketch. You draw in two dimensions and extrude. And the Advanced tab holds the best shortcut: ready-made chutes, drums, silos, belts and mixers. You just fill in the dimensions. Once you close the Sketch, the part comes back to the main window. Before moving on, three tips about the mesh. A curved surface turns into facets, so it needs enough triangles. Detail smaller than the particle radius changes nothing, it only makes the run heavier. And close the geometry properly: particles escape through any gap.

4. Motion

Each part can have a motion. Select the part, open Motion, and pick the type from this list. Let's see what each one asks for. Stationary is the default: the part stays still. That is the case for walls, hoppers and chutes. Linear moves the part in a straight line, at constant speed. You give the vector in meters per second. A negative Y, for example, moves the part down. It is used for pistons and pusher plates. Rotational makes the part spin. The vector says two things: its direction is the axis, and its length is the speed, in radians per second. Rotation Center is a point the axis passes through. Put it on the part's real axis. Vibration makes the part oscillate, like a screen. Amplitude is the maximum displacement, in meters. Frequency is how many cycles per second. Phase is where the cycle starts. And Direction is the line along which it vibrates. Belt is the conveyor belt. Here the part does not move. Only its surface moves, dragging the particles along. You enter the surface speed, in meters per second. Elevator is the bucket elevator. A single STL becomes several copies, which travel a closed loop between two drums. With Quick setup, you point to the two cylinders, and the program extracts the centers, the axis and the radius. And Free 6-DOF is the free body: the material and gravity move the part. It has a video of its own, in Module 4. I go back to Rotational to show the ramp. Never start a machine all at once: the wall would jump to full speed and slam into the resting particles. In Motion program, you schedule segments. Each row is a segment: the start time, the amplitude and the ramp time. Amplitude one is the nominal speed. One half is half of it. Zero stops it. And minus one reverses the direction. The chart shows the program: it speeds up, holds, slows down and stops. And remember: none of this counts until you click Apply Motion. This is the most common mistake in the module. Ten rpm is one point zero five radians per second. Twenty rpm is two point zero nine. If you type twenty in the field, thinking in rpm, the part spins at a hundred and ninety-one rpm, almost ten times faster, and the simulation One last idea. For a drum, a belt or a piston, the motion is prescribed: the part does what you told it, no matter what hits it. But a gate or a loose bucket reacts to the material. That is what the free body is for, and you will see it in Module 4.

5. Domain

The domain is the red box. It is the world of the simulation: a particle that leaves this box is deleted. Three buttons solve almost everything. Create Default Box creates an initial box. Enable Edit Mode lets you drag the faces with the mouse. And Fit to Geometry fits the box around the parts. After adjusting, check the numbers. Here are the width, height and depth of the box, in meters, and just below, the position of its center. The domain rule is simple. If it is too tight, it cuts particles off. If it is huge, the case gets slow. And if the part moves, the box must cover its whole path. Two warning signs. The particle count drops, but nothing went through the outlet: the domain is cutting them off. The inlet injects nothing: check that it is inside the red box.

6. Materials and interactions

Materials holds the list. The plus button creates a new material. But you don't have to start from scratch. On this button, choose Material Database. This is the material database, with reference properties grouped by family: rocks, soils, metals, polymers and grains. On the right you see the density, Young's modulus and Poisson's ratio of the chosen material. With Import selected, it goes into your list. Careful: it is a starting point. These values do not replace calibration. Back in the list, I click on Vidro. The radius, the density and Young's modulus directly control the time step. Now the interactions. Golden rule: every pair must be here. Vidro with Vidro, and Vidro with the wall. If the material has several sizes, watch out for one thing. The time step is set by the smallest radius. A distribution from one to ten millimeters needs a step ten times smaller than a material made only of ten-millimeter particles. The small particle makes everything more expensive. No measurements yet? Use these starting points. Measure restitution in a drop test. Start friction between zero point three and zero point five. And leave cohesion off for dry material. These are only starting points: Module 5 shows how to calibrate.

7. Injectors

Insertion has three categories. Inlet injects. Outlet removes. And Monitor only measures, without removing anything. The shape can be a box, a disk, a cylinder or a cone. Pick the one that fits your geometry. Here are the golden rules of the inlet. The material must be the particle's, not the wall's. Further down, the inlet velocity and the flow rate. Enter the mass in kilograms per second, or the number of particles per second. One of the two must be greater than zero. This option, Instant fill, fills the region all at once, at the start. It is good for filling a mill or a mixer. And without clicking Add, nothing happens. The item has to appear in the list. Always do the math before you run. In our silo, each particle weighs three point four six grams. A thousand particles per second is three point four six kilograms per second. In fourteen seconds, forty-eight and a half kilograms come in. Now check: does it fit in the silo? And if the inlet uses a size distribution, remember the cost. If the largest particle has twice the radius of the smallest, the time step drops by half. If it has three times the radius, it drops to a third.

8. Numerical setup

Here is the Setup. End time is how much physical time you want to simulate. Here, fifty seconds. Below it, the time step. In automatic mode, BrixDEM computes it with the Rayleigh criterion. Changed the material? Click Calculate Time Step Now. Save frequency decides how many files are written. More files means a smoother video and more disk space used. Here is gravity. Note that in this case it points to negative Y. Check that it matches your drawing. And finally, where to run: CPU or GPU. For small cases, the CPU is usually enough. For millions of particles, the GPU pays off. When in doubt, measure both. Before running, estimate the cost. The number of steps is the end time divided by the time step. What the computer pays is steps times particles. In the silo, fifty seconds means twenty-seven million steps. That is why you should always start with a short end time. Do the disk math too. Measured on the program's own files, it is about two hundred and sixty bytes per particle, in each saved frame. With three hundred frames, a hundred thousand particles take about eight gigabytes. A million, about eighty. The CSV files add a little more. And if the disk is about to fill up, BrixDEM stops the periodic saves and keeps the final state.

9. Running the silo

Everything checked and saved. Now just click Run. In the 3D Particles tab, you watch the particles entering the silo while the simulation computes. That is the inlet at work, a little at every step. Look at the console too. Each line shows the simulated time, the number of particles and the kinetic energy. In Results, click a variable, and the chart appears in the 2D Charts tab, while the simulation is still running. Here, the particle count grows in a straight line, as expected for a constant flow rate. This run was short, just a test. For the real case, set the end time back to fifty seconds and simulate again. That was only a short run, a second and a half. Running the full fifty seconds, you see the whole silo: it fills, the plate holds, and then the discharge happens. At the end, the cumulative mass removed matches what came in, forty-eight and a half kilograms. That is the first check of any simulation. The case follows the test by González-Montellano and co-authors, published in Chemical Engineering Science in two thousand eleven. Here is the final checklist. Project saved. Scale checked. All pairs defined. Inlet and outlet in the list. If the simulation blows up, cut the time step in half.