6.1. Interactive vs. batch Solver¶
6.1.1. Interactive Solver¶
The MFiX Interactive Solver can interact with the GUI through http communication while the solver is running. Information about the flow solution can be passed directly from the solver to the GUI. For example, the simulation status, current simulation time, time step and residual information is communicated directly to the GUI, which can display or plot this information. The Dashboard view summarizes the progress of the simulation.
The GUI can also control the status of the simulation. A simulation can be paused, resumed and stopped. Pausing/resuming a simulation is useful when some settings need to be adjusted without terminating the simulation. This feature is particularly useful when the solver runs in a queue system. Here some parameters can be changed and take effect upon resuming the simulation without exiting the queue.
It should be noted that only a few settings can be adjusted with the pause/resume feature. Typical settings that can be changed include the final time, inlet boundary condition velocity/flow rate and numerics parameters. Settings that cannot be changed (say the mesh resolution of fluid/solids material properties) are greyed out while the simulation is paused.
The run status is controlled by the play, pause, and stop icons ( ) located along the top bar. A simulation is started by pressing . At any time during a simulation, it can be paused by pressing . If the simulations was launched through a queue system, it will stay in the queue while paused (the elapsed time is still continuing). Editable settings will unlock while non-editable settings will stay greyed out. Once a setting has been modified, the project needs to be saved and the simulation can resume by pressing again (if the project was not saved, the user will be prompted to save it).
A simlation can be stopped by pressing the . This will write a restart file corresponding to a snapshot of the simulation at the time the simulation was stopped and terminate the run. If the simulations was launched through a queue system, it will exit the queue.
An example of pause/resume can be found at the end of Running First Tutorial
6.1.2. Batch solver¶
The MFiX Batch Solver is independent from the GUI, and it is the equivalent of the command line version of MFiX in 2016-1 and earlier versions. The batch solver binary is not installed in the MFiX conda package; it needs to be compiled before being used. Using the Batch Solver is appropriate when you do not want to use the interactive features with the GUI. You cannot pause, unpause, stop, or monitor status from the batch solver.
It is recommended to use the interactive solver when running the solver from the GUI and use the batch solver when running from command line.
6.2. Default Interactive Solver¶
The default solver does not need to be compiled, because the binary executable
is installed with MFiX. The default mfixsolver
is automatically installed
when following the steps in Getting started.
6.2.1. Running in GUI¶
Start the MFiX GUI from the Anaconda Prompt (Windows) or bash
(Mac or Linux):
# Windows
(mfix-22.3.1) C:\> mfix
# Linux
(mfix-22.3.1) > mfix
# Mac
(mfix-22.3.1) > mfix
From the main menu browse to create a new project, or open an existing one.
When running a simulation, press (run) and select the default mfixsolver.
You can pause, unpause, and stop the solver from the toolbar.
6.2.2. Running From Command Line¶
If you have a project file <RUN_NAME>.mfx
saved in a project directory named
<RUN_NAME>
, navigate to that project directory to launch the default solver locally.
One can accomplish this with the following commands:
> cd <RUN_NAME>
> mfixsolver -f <RUN_NAME>.mfx
For example, to run the 3D fluidized bed tutorial, with the project file
FB3D.mfx
created in the GUI and saved in a directory FB3D
:
> cd FB3D
> mfixsolver -f FB3D.mfx
To show additional command line options for the solver, type:
> mfixsolver --help