Rate This Document
Findability
Accuracy
Completeness
Readability

Running and Verifying the boussinesqThermal3d Case

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Run the following command to set the environment variables:
    export PATH=/path/to/GNU/bin: /path/to/OPENMPI/bin:$PATH
    export LD_LIBRARY_PATH=/path/to/GNU/lib64:/path/to/OPENMPI/lib:$LD_LIBRARY_PATH
  3. Run the following command to create a hostfile file and add node information:
    echo -e 'node1\nnode2\n…\nnodex' > /path/to/HOSTFILE
    • In the preceding command, node1, node2, ..., and nodex indicate the host names of the nodes. You can run the hostname command to query the host names. \n indicates a newline character.
    • This step is mandatory when multiple nodes are running and can be skipped when only one node is running.
  4. Run the following command to go to the cavity2d case directory:
    cd /path/to/PALABOS/palabos-v2.1r0/examples/showCases/boussinesqThermal3d
  5. Run the following commands to perform compilation and installation:
    make -j 16
  6. Run the following command to run the test case:
    time mpirun --allow-run-as-root -mca btl ^openib --hostfile /path/to/HOSTFILE -x OMP_NUM_THREADS=1 -x PATH -x LD_LIBRARY_PATH -N 96 ./rayleighBenard3D 100

    Run the following command on a single node to run the test case:

    time mpirun --allow-run-as-root -mca btl ^openib -np 96 ./rayleighBenard3D 100

    After the case is executed, you can run the ll command to view the generated VTI file in the tmp directory.

    Figure 1 shows an example of the command output:
    Figure 1 Result example

    In the preceding figure, VTK is the VTI file. The file name extension is not displayed.