3.1. First tutorial¶
This section illustrates how to launch the GUI, open a project, run it, and visualize the results.
This section assumes MFiX is already installed. To install MFiX, see the Setup Guide.
Everything in this section applies to all platforms (Linux, macOS, Windows) unless otherwise noted.
3.1.1. Starting the MFiX GUI¶
Starting the GUI requires first to activate the environment (to select a given installed version of MFiX):
On Windows, open the Anaconda Prompt and activate the mfix environment
On Linux open a terminal and activate the mfix environment
On macOS open a terminal and activate the mfix environment
Next, type mfix
at the prompt. The two steps are shown below for each Operating System:
# Windows
conda activate mfix-23.2
(mfix-23.2) C:\> mfix
# Linux or Mac
conda activate mfix-23.2
(mfix-23.2) > mfix
If this is the first time opening the GUI, the main menu will automatically open. Otherwise, the previous project will automatically open.
3.1.2. Creating a project¶
Click (New)
A list of project templates is displayed.
The templates are tagged with the following icons. (Some templates have more than one icon).
Icon |
Description |
---|---|
Single phase Model |
|
Two-fluid Model (TFM) |
|
Particle in Cell Model (PIC) |
|
Discrete Element Model (DEM) |
|
Hybrid Model (TFM + DEM) |
|
Cartesian cut-cell (complex) geometry |
|
Chemistry |
Note
The blank template is the default, but it won’t run without customization. It requires a pressure outflow, among other things.
Filter the templates by de-selecting the (single phase), and (chemistry) icons
Double-click on
hopper_3d (3D DEM granular flow hopper)
to create a new projectEnter a project name (or keep the existing name) and browse to a location for the new project.
Click Ok
A new project directory will be created in the selected directory, with the name being the project name. Here, a DEM Hopper simulation setup has been loaded and is ready to run. You should see the model geometry in the “model” window (top-right).
3.1.3. Running the solver¶
Click the (Start) button to open the Run dialog.
Click Ok to use the default mfixsolver:
[default]/mfixsolver
The solver will begin to run, with output displayed in the Terminal window. There is a progress bar along the bottom of the screen where it says MFiX running: elapsed time.
3.1.4. View results¶
Results can be viewed, and plotted, while the simulation is running.
3.1.5. Pausing/unpausing¶
Click the (pause) button to pause the solver.
MFiX paused
will be displayed in the Terminal window. The solver process still exists, but is waiting for you to unpause it.While the solver is paused, you can change the project. For instance, on the Run Pane you could change
Stop time
to another value to have the solver run for a different amount of time.Click the (run) button to unpause the solver and continue running.
3.1.6. Stopping/resuming¶
MFiX stopped
will be displayed in the Terminal window. The solver
process has ended, with the output files still in the project directory.
You can then resume the solver by:
Clicking the (run) button to open the Run dialog.
Check
Restart
and selectResume
from the drop down list.Click Ok to use the default mfixsolver.
The solver process will start and continue from the point at which the output files were last written.