Documentation | Nightly Test Results | Citation
- To compile and run the Pele suite of codes, one needs a C++ compiler that supports the C++14 standard. A hierarchical strategy for parallelism is supported, based MPI + OpenMP, or MPI + CUDA. The codes work with all major MPI and OpenMP implementations. The codes should build and run with no modifications to the make system if using a Linux system with the GNU compilers, version 4.9.4 and above.
To build PeleC and run a sample 3D flame problem:
Have PeleC use the default submodules for AMReX, PelePhysics, and SUNDIALS in its own repo by simply performing:
git clone --recursive [email protected]:AMReX-Combustion/PeleC.git cd PeleC/Exec/RegTests/PMF make TPL && make -j ./Pele3d.xxx.yyy.ex example.inp
Notes
- In the exec line above, xxx.yyy is a tag identifying your compiler and various build options, and will vary across pltaform. (Note that GNU compilers must be at least 4.8.4, and MPI should be at least version 3).
- The example is 3D premixed flame, flowing vertically upward through the domain with no gravity. The lateral boundaries are periodic. A detailed hydrogen model is used. The solution is initialized with a wrinkled (perturbed) 2D steady flame solution computed using the PREMIX code. Two levels of solution-adaptive refinement are automatically triggered by the presence of the flame intermediate, HO2.
- In addition to informative output to the terminal, periodic plotfiles are written in the run folder. These may be viewed with CCSE's Amrvis (<https://ccse.lbl.gov/Downloads/downloadAmrvis.html>) or Vis-It (<http://vis.lbl.gov/NERSC/Software/visit/>):
- In VisIt, direct the File->Open dialogue to select the file named "Header" that is inside each plotfile folder..
- With Amrvis, "amrvis3d plt00030", for example.
PeleC is built on the AMReX and PelePhysics libraries. PeleC also requires the SUNDIALS ODE solver library.
To add a new feature to PeleC, the procedure is:
Create a branch for the new feature (locally):
git checkout -b AmazingNewFeature
Develop the feature, merging changes often from the development branch into your AmazingNewFeature branch:
git commit -m "Developed AmazingNewFeature" git checkout development git pull [fix any identified conflicts between local and remote branches of "development"] git checkout AmazingNewFeature git rebase development [fix any identified conflicts between "development" and "AmazingNewFeature"]
3a. Build and run the full test suite using CMake and CTest (See the Build directory for an example script). Please do not introduce warnings. PeleC is checked against clang-tidy and cppcheck in the CI. To use cppcheck and clang-tidy locally use these CMake options:
-DPELEC_ENABLE_CLANG_TIDY:BOOL=ON -DPELEC_ENABLE_CPPCHECK:BOOL=ON
3b. Run clang-tidy by using an LLVM compiler and making sure clang-tidy is found during configure. Then make will run clang-tidy along with compilation. Once verifying cppcheck was found during configure, using the make cppcheck target should run its checks on the compile_commands.json database generated by CMake. More information on these checks can be seen in the CI files used for GitHub Actions in the .github/workflows directory.
3c. To easily format all source files before commit, use the following command:
find Source Exec \( -name "*.cpp" -o -name "*.H" \) -exec clang-format -i {} +
Push feature branch to PeleC repository:
git push -u origin AmazingNewFeature [Note: -u option required only for the first push of new branch]
Submit a pull request through [email protected]:AMReX-Combustion/PeleC.git, and make sure you are requesting a merge against the development branch
Check the CI status on Github and make sure the tests passed for merge request
Note
Github CI uses the CMake build system and CTest to test the core source files of PeleC. If you are adding source files, you will need to add them to the list of source files in the CMake
directory for the tests to pass. Make sure to add them to the GNU make makefiles as well.
Nightly test results for PeleC against multiple compilers and machines can be seen on its CDash page.
The full documentation for Pele exists in the Docs directory; at present this is maintained inline using Sphinx Sphinx. With Sphinx, documentation is written in Restructured Text. reST is a markup language similar to Markdown, but with somewhat greater capabilities (and idiosyncrasies). There are several primers available to get started. One gotcha is that indentation matters.
cd Docs && mkdir build && cd build && cmake .. && make
To cite the PeleC software and refer to its computational performance, use the following journal article:
@article{PeleC_IJHPCA, author = {Marc T {Henry de Frahan} and Jon S Rood and Marc S Day and Hariswaran Sitaraman and Shashank Yellapantula and Bruce A Perry and Ray W Grout and Ann Almgren and Weiqun Zhang and John B Bell and Jacqueline H Chen}, title = {{PeleC: An adaptive mesh refinement solver for compressible reacting flows}}, journal = {The International Journal of High Performance Computing Applications}, volume = {0}, number = {0}, pages = {10943420221121151}, year = {2022}, doi = {10.1177/10943420221121151}, url = {https://doi.org/10.1177/10943420221121151} }
Additionally, to cite the application of PeleC to compressible reacting flows, use the following Combustion and Flame journal article:
@article{Sitaraman2021, author = {Hariswaran Sitaraman and Shashank Yellapantula and Marc T. {Henry de Frahan} and Bruce Perry and Jon Rood and Ray Grout and Marc Day} title = {Adaptive mesh based combustion simulations of direct fuel injection effects in a supersonic cavity flame-holder}, journal = {Combustion and Flame}, volume = {232}, pages = {111531}, year = {2021}, issn = {0010-2180}, doi = {https://doi.org/10.1016/j.combustflame.2021.111531}, url = {https://www.sciencedirect.com/science/article/pii/S0010218021002741}, }
This research was supported by the Exascale Computing Project (ECP), Project Number: 17-SC-20-SC, a collaborative effort of two DOE organizations -- the Office of Science and the National Nuclear Security Administration -- responsible for the planning and preparation of a capable exascale ecosystem -- including software, applications, hardware, advanced system engineering, and early testbed platforms -- to support the nation's exascale computing imperative.