Execution
Command Line
The main mode of interaction with MOOSE-based applications is the command line. The executable is run with an input file, which may produce output file(s):
Based on your installation of the application, the exact command how to run the code can differ; see the follwing subsections below.
Note: Further details on command line switches are in the user manual.
Pre-installed Version
If you are using pre-installed version of the code (like on INL HPC, for example), the executable should be in your path and the above command should work.
Self-built Version
If you built the code yourself, you can run it via:
If you are running from the location where you built the executable, you will need to prepend ./
, so the command would be:
In later steps of this tutorial, we will look at how to build such an input file and how to view the obtained results.
Terminal Output
In this section we explain different sections that are diplayed during the execution:
Framework information gives an overview of used dependent libraries. This is useful information to provide if you ever need to report a problem or ask for help.
The parallelism section will tell you how many MPI processes and/or threads your run is using.
The mesh section provides information about how many elements and nodes are used in the simulation.
The system information tells you how many degrees of freedom (DOFs) you have in the whole simulation and per MPI process (local DOFs). It also lists the primary and auxiliary varaibles present in your simulation.
The execution information provides information about the time stepper used, preconditioner, etc.
After the run header is printed, information about each time step is printed as it executes. A typical time step will tell you the simulation time, time step number and time step size (dt). The convergence history for each time step is printed out by default. You will see residuals for non-linear and linear steps and the result of the solve.
If your input file contains errors, it will be reported in the terminal.
This example shows how THM-based applications report errors.
If the error is detect by the MOOSE framework you will see something like this:
Parallel Execution
The following parallel execution models are supported:
Threads
MPI
MPI+Threads