It took a long time to get the coupling module done, or the online others compiled a good UDF, not perfect. When compiling, I always prompt unable to find some of the fluent in the header files, personal suspicion is the operating system and Visual Studio problems, sometimes a change of system and vs try again, in fact, it is quite simple.
This test case is officially provided by Edem.
The software setup is divided into two parts, including the fluent setup and Edem settings, the model can be used in the same model, or different mesh models, the same set of grid models are used. (Edem can be read into the Msh file).
1 Case Description
The case model is simple, as shown by the cross-tube, the medium that flows through the model includes the continuous phase of the water and the particle phase.
2 Fluent Set 2.1 Import mesh file
- Start fluent, using the menu File | Read | Mesh ... Import a mesh file Intersection_vertical.msh
- Select Scale in the general Panel ... button to make sure the mesh model size, as shown in.
2.2 General panel and material
- Set time to Transient, using transient calculations
- Set z-axis direction of gravity-9.81
- Add Material Water-liquid
2.3 Cell Zone Conditions
- Set the zone media inside the cell zone conditons as Water-liquid, as shown in.
2.4 Boundary Conditions
- Set the inlet boundary entry speed to 5m/s, as shown in
2.5 Models
- Calculation using standard K-epsilon model
2.6 Loading Edem macros
- Open user-defined > Functions > Manage ...
- Enter the path of the UDF in the library Name and click the Load button to load the UDF macro
- After loading, the Edem child node appears under the Models tree node, as shown in
Click to see the Settings dialog as shown.
This dialog box is set later. Now transfer to Edem settings.
3 Edem Settings 3.1 setting model description
- Launch EDEM, click menu **file > Save ", in the pop-up File Save dialog box saves the project file, the default name is new EDEM input Deck.dem
- Global tab, set the title to 2-phase Eulerian
3.2 Setting up the material
- Create a new material "particle" to set the material properties.
- Click the Transfer button to open the Material/interactions Transfer dialog box.
- Transfer Steel to simulation from the material database.
- Set material interactions, particle–particle, and Particle–steel, using default values
3.3 Defining particles
- Click the Grain label.
- Click the + button to enter a name? Eulerian particle?
- Set the radius to 2mm.
- Set X to -0.5 mm.
- Click + to create a new surface.
- Set the radius to 2mm.
- Set X to 0.5 mm.
- The material of the granules is ' particle '.
- Click Lculate properties to automatically calculate the particle quality, volume and other attributes.
3.4 Defining geometry
- Defining Geometry Materials
- Open the Geometry tab. Click Import ... button to import the grid file Intersection_vertical.msh
In the Details tab, select Material as steel.
- Click the + button to select Polygon, and name "Factory".
- Select Virtual in the Details.
- Select the Polygon button, set as follows:
3.5 Creating a grain factory
- Create a grain factory, set up a grain factory type
- Click the Fcatories tab.
- Click the + button to add a new particle factory.
- Set the factory type to Dynamic.
- Select Unlimited particles.
Select rate to 2.5e3 particles/s.
- In the drop-down menu, determine the selection? Factory.
- Select a speed of linear or spray click the Set button.
- Set the speed greatly small z=5m/s.
The solid phase setting has been completed.
3.6 Solvers
- Click the Simulator tab.
- Set the time step to 39%.
Adjust the time step to 8e-5s. The time step within the EDEM is typically between 1:1 and 100:1 in the time-step ratio in Fluent. EDEM time step cannot be greater than the time step of Fluent.
- Set up data write-out frequency
- Set write out frequency to 0.01s.
If it is necessary to return on time, re-simulate from a point, automatically save case and data must be selected in the fluent
Choose.
- Set the grid size to 3.5 Rmin. This will generate about 60,000 meshes.
- Mark track collisions.
3.7 Starting the Coupler
- Choose menu Tools > EDEM coupling options > Show coupling Server
- In the lower right corner of the dialog box, click the button Start, then Edem is in the listening state
4 Fluent Other settings
Return to fluent to continue setting
- Setting up the 2-phase simulation
- Select Eulerian as the coupling method.
- Select "Fluid?".
- Set the sample points to 10.
If sample points is 10, a large particle can be transported in 10 meshes. Increases the size of the samplepoints, increases the stability of the simulation but reduces the speed.
- Set the momentum (? MTM?) Under-relaxation is 0.7.
Reducing the relaxation factor increases the stability of the simulation and makes it easier to converge. However, more iterations may be used to achieve convergence.
- Set volume Under-relaxation to 0.6.
- Click the Open button to select the new EDEM input Deck.dem file
- Click OK.
Now look at the TUI Output window information as shown, indicating that the coupling has been successful.
Now look at the coupling server state in Edem, as shown in. has been successfully coupled.
- Initialize, set file options
- Initialization
A) Select Solve > Initialize > Initialize.
b) Select Compute from Inlet, and click Init T.
- Set AutoSave case and data option to 25.
A) Select File > Write > AutoSave.
b) set to 25. The time step is 2e-3 s, which means that the data file is saved every 0.05s.
Click File > Write > Case & Data to save the case (. CAs) and data (. dat) files.
The. dat file contains the geometry, boundary conditions, and other liquid phase (solid phase) information at the 0s point. This file contains geometry, boundary conditions, and other simulation parameters.
In the simulation process, case and data are automatically saved, and EDEM files are saved automatically.
- Select Solve > Iterate to set the time step to 2e-3. 。 This flavor EDEM 25 times times the time step.
- Set a time step of 500 steps. That is to say, the simulation 1s altogether.
- Set the number of iterations per time step to 60. For Eulerian-eulerian emulation, the number of steps is 50-200.
- Select iterate to start simulation simulation. The EDEM will run automatically.
5 post-processing
From for notes (Wiz)
List of attachments
"Fluent case" 06: Coupling calculation with Edem