Skip to content

Latest commit

 

History

History
128 lines (98 loc) · 10.3 KB

README.md

File metadata and controls

128 lines (98 loc) · 10.3 KB

PelePhysics

AMReX Badge Exascale Computing Project

Overview

PelePhysics is a repository of physics databases and implementation code for use with the Pele suite of codes, primarily the compressible solver PeleC and low-Mach solver PeleLMeX.

PelePhysics contains C++ source code for the following physics and other modules, in the Source directory:

  • EOS: Equation of State, include multi-species ideal and real gas options
  • Transport: Routines to evaluate multi-species transport properties
  • Reactions: Routines for substepped integration of stiff chemical systems, including with CVODE
  • Spray: Lagrangian spray droplet library, formerly part of PeleMP
  • Soot: An implementation of the Hybrid Method of Moments soot model, formerly part of PeleMP
  • Radiation: Raidative heat transfer model based on the spherical harmonics method, formerly PeleRad
  • Utility: Several handy modules for data management across other Pele codes

Additionally, PelePhysics contains a variety of stand-alone tools to aid in Pele simulation workflows, found in the Support directory. Most notable among these is CEPTR, described further below, a tool that converts chemical mechanisms from Cantera format to efficient source code files for use in the Pele codes.

For convenience, the Mechanisms directory contains the CEPTR-generated source code for a number of chemical mechanisms, as well as both Cantera and CHEMKIN format data files for each mechanism.

Documentation for these various capabilities, to varying degrees, can be found in the Docs directory or online at https://amrex-combustion.github.io/PelePhysics/. The papers listed below under the Citation heading may also be valuable resources.

PelePhysics has two required dependencies, AMReX and SUNDIALS, which are both git submodules located the Submodules directory. The ThirdParty directory is used when building these submodules, and for downloading and building other optional submodules.

Finally, the Testing directory includes several stand-alone codes for exercising various aspects of the physics modules mentioned above.

Getting Started

PelePhysics is primarily intended as a library for use with other Pele codes. For more information on how to download PelePhysics and its dependencies, and how to build the stand-alone test codes, consult the online documentation.

Acknowledgment

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.

Citation

To cite PelePhysics as a whole and its use as part of the broader Pele suite, please use the following SIAM Parallel Processing article:

@article{PeleSoftware,
  author = {Marc T. {Henry de Frahan} and Lucas Esclapez and Jon Rood and Nicholas T. Wimer and Paul Mullowney and Bruce A. Perry and Landon Owen and Hariswaran Sitaraman and Shashank Yellapantula and Malik Hassanaly and Mohammad J. Rahimi and Michael J. Martin and Olga A. Doronina and Sreejith N. A. and Martin Rieth and Wenjun Ge and Ramanan Sankaran and Ann S. Almgren and Weiqun Zhang and John B. Bell and Ray Grout and Marc S. Day and Jacqueline H. Chen},
  title = {The Pele Simulation Suite for Reacting Flows at Exascale},
  booktitle = {Proceedings of the 2024 SIAM Conference on Parallel Processing for Scientific Computing},
  journal = {Proceedings of the 2024 SIAM Conference on Parallel Processing for Scientific Computing},
  chapter = {},
  pages = {13-25},
  doi = {10.1137/1.9781611977967.2},
  URL = {https://epubs.siam.org/doi/abs/10.1137/1.9781611977967.2},
  eprint = {https://epubs.siam.org/doi/pdf/10.1137/1.9781611977967.2},
  year = {2024},
  publisher = {Proceedings of the 2024 SIAM Conference on Parallel Processing for Scientific Computing}
}

To cite the multi-physics (soot, spray, radiation) capabilities in PelePhysics that were imported from PeleMP and PeleRad, please use the following Journal of Fluids Engineering article:

@article{owen2023pelemp,
  title={PeleMP: The Multiphysics Solver for the Combustion Pele Adaptive Mesh Refinement Code Suite},
  author={Owen, Landon D and Ge, Wenjun and Rieth, Martin and Arienti, Marco and Esclapez, Lucas and S Soriano, Bruno and Mueller, Michael E and Day, Marc and Sankaran, Ramanan and Chen, Jacqueline H},
  journal={Journal of Fluids Engineering},
  pages={1--41},
  year={2023}
}

Getting help, contributing

Do you have a question ? Found an issue ? Please use the GitHub Discussions to engage with the development team or open a new GitHub issue to report a bug. The development team also encourages users to take an active role in respectfully answering each other's questions in these spaces. When reporting a bug, it is helpful to provide as much detail as possible, including a case description and the major compile and runtime options being used. Though not required, it is most effective to create a fork of this repository and share a branch of that fork with a case that minimally reproduces the error.

New contributions to PelePhysics are welcome ! Contributing Guidelines are provided in CONTRIBUTING.md.

CEPTR

This PelePhysics repository contains the CEPTR source code generation tool in order to support the inclusion of chemical models specified in the Cantera yaml format. CETPR derives from FUEGO, which was originally created by Michael Aivazis at CalTech, and donated to CCSE in 2001. Originally, FUEGO was part of a larger Python-based set of workflow tools Michael developed for managing and publishing simulation-based studies. FUEGO itself was developed as a drop-in replacement for the CHEMKIN library, and provided "hand-coded" replacement routines for evaluation of EOS thermodynamic functions that are considerably more efficient than their CHEMKIN counterparts. Since 2001, CCSE has continued to modify FUEGO independently for its own use so that the current version here bears little resemblance to Michael's original code, or its intentions. CEPTR has adapted FUEGO code to use the Cantera yaml format and is now the preferred way of generating mechanism files.

Typically, Cantera mechanisms (combustion models) are transmitted via a set of yaml files, which provide data for

  • Species - definition of chemical species, as composed by fundamental elements
  • Chemistry - modified Arrhenius reaction parameters, including third body efficiencies and pressure dependencies
  • Thermodynamics - NASA-formatted polynomial expressions, assuming a mixture of ideal gases
  • Transport - physical parameters for each of the chemical species required for the EGLib (or comparable) library for computing species- and temperature-dependent molecular transport coefficients

This information is read by the CEPTR tool, and source code files are generated that are to linked directly into an executable in the Pele code suite in order to provide data and functions necessary to evaluate chemistry, transport and thermodynamic relationships. PelePhysics supports the following in addition to standard Cantera style models:

  • Soave-Redlich-Kwong real gas equation of state, implemented to be consistent with corresponding ideal gas model at suitable conditions
  • Gamma-law gas equation of state
  • Constant coefficient transport
  • Simple A simplified mixture-averaged transport model consistent with EGLib under suitable conditions
  • Inert Chemistry setting to ignore reactions
  • Mixture-averaged thermal diffusion coefficients are also available using the transport.use_soret flag (see PeleLMeX implementation for more information)
  • Utilization of auxiliary source files (C++) that follow the Cantera species production rate function interface (e.g., QSS approximations)

If the Pele codes are built with Eos_Model = Fuego, the make system variable Chemistry_Model must be set to one of the models (subfolders) that exist in the ${PELE_PHYSICS_HOME}/Mechanisms folder. The repository currently provides (multiple) models for each of the following mixtures:

  • air
  • hydrogen
  • methane
  • ethane
  • n-dodecane
  • di-methyl ether
  • ... more can be added (see below)

NOTE: Non-ideal equations of state

PelePhysics currently supports a cubic EOS model: Soave-Redlich-Kwong. It is built on top of the ideal gas models, and is selected by specifying its name as the Eos_Model during the build (the make system requires that both Eos_Model and Chemistry_Model be specified). Any additional parameters required for the EOS (e.g., attractions, repulsions, critical states) are either included in the underlying CEPTR database used to generate the source file model implementation, or else are inferred from the input model data.

Model generation procedures

This repository provides the tools necessary for generating new Pele-compatible combustion mechanisms. Please refer to the CEPTR documentation for instructions on generating mechanism models. Make sure that you edit the GNUmakefile where you want to use this (in, e.g., PeleC/Exec) so that Chemistry_Model is XXX. In PeleC/Exec/Make.PeleC, the model is expected to be in the folder ${PELE_PHYSICS_HOME}/Mechanisms/$(Chemistry_Model), and it is expected that the folder contains a Make.package file to include, so make sure things are where they need to be. Refer to other mechanisms for additional guidance.