Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move PeleMP docs into PelePhysics #449

Merged
merged 55 commits into from
Dec 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
15a7c85
Added initial documentation files
Sep 6, 2022
1985a3f
Mimic conf.py file from PeleC
Sep 6, 2022
f8244b8
Updating docs
Sep 6, 2022
472440b
Started adding more documentation and equations
Sep 6, 2022
bdd9b3f
Changed name of write_spray_ascii_file to write_ascii_files, added sp…
Sep 19, 2022
82aa365
Fix error in Equations.rst
Sep 19, 2022
2a95260
Fix typo in documentation
Sep 19, 2022
ca920d9
Added more equations to the documentation
Sep 20, 2022
2c361e7
Fix doc typo
Sep 20, 2022
f4a4420
More documentation changes
Sep 20, 2022
544cf96
Attempt at fixing table in documentation
Sep 20, 2022
c0f576b
More doc fixes
Sep 20, 2022
459f9b0
Missed a space
Sep 20, 2022
a1f6312
Configure equations
Sep 20, 2022
62a8179
Updated documentation with more equations, removed unnecessary includ…
Oct 12, 2022
6cae57f
Aligned equations in documentation
Oct 12, 2022
535dc6c
Changed name of mean diameter input for distributions, added more spr…
Oct 13, 2022
9aad891
More minor doc changes
Oct 13, 2022
96e4869
Allow text in tables to wrap
Oct 13, 2022
22d249e
Slight documentation changes
Oct 13, 2022
bdd2e57
Updated documents to reflect latest change for boiling method
Nov 16, 2022
23fe5f9
Added ChiSquared distribution, updated document to include latest inj…
Mar 3, 2023
e4e0408
More document changes
Mar 3, 2023
370ae52
Trying something to see if it triggers the gh-pages workflow
Mar 3, 2023
40a766c
Improve quality of injection image in docs
Mar 3, 2023
dda8499
Attempt at using footnotes for bibliography in documentation
Mar 4, 2023
107bfb2
Wrong type of footnote code
Mar 4, 2023
7073da1
Added a space next to footnote in call
Mar 4, 2023
1b6ab9e
Switched footnote to ref
Mar 4, 2023
408f779
Added jet names and checks for uniqueness, add routine to read jet ch…
Mar 5, 2023
2847a23
Slight change to documentation
Mar 24, 2023
55bc3a1
Add documentation about min parcels for jets
Mar 30, 2023
5575ba7
More injection documentation changes
Mar 30, 2023
08c9c77
More injection documentation stuff
Mar 30, 2023
da6d02c
Redid way liquid properties are specified in the input file and chang…
Apr 4, 2023
8fd5fd7
Added a body force to the spray equations
Apr 4, 2023
e2e0cc2
Updated spray documentation with assumptions list
Apr 12, 2023
20103e7
Tried adding single droplet verification results to documentation
Apr 20, 2023
de1d82f
Fix documentation bugs
Apr 20, 2023
f310475
More document changes
Apr 20, 2023
8bfdb64
Another attempt
Apr 20, 2023
00a6a85
Redo verification images in documentation
Apr 20, 2023
5d735dd
Slight doc changes
Apr 21, 2023
439ef8a
Formulations are the same but the routines for multicomponent evapora…
Apr 21, 2023
05caa8b
More documentation improvements
Apr 21, 2023
e727315
Typo in doc equation
Apr 21, 2023
80797e0
Start adding soot equations to documentation
Apr 24, 2023
6df252f
Removed todos from soot files, added SootInput file
Apr 24, 2023
20c61a8
Fix soot input typos
Apr 24, 2023
80b839e
Update documentation based on latest changes
May 31, 2023
c3bb86d
movement
marchdf Dec 6, 2023
ffd0c45
Moving the spray docs around
marchdf Dec 6, 2023
3d983d4
Reorg soot docs
marchdf Dec 6, 2023
94fd350
white space cleanup
marchdf Dec 6, 2023
b4e1810
spelling
marchdf Dec 6, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions Docs/sphinx/Soot.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
.. highlight:: rst

.. _Soot:

****
Soot
****

Soot Equations
==============

Soot formation, growth, and oxidation is modeled using the hybrid-method of moments (HMOM) model developed by Mueller et al. [#mueller]_. This approach combines the numerical ease of the method of moments with interpolative closure (MOMIC) with the ability to capture the bimodal nature of the soot number density function (NDF) provided by the direct quadrature method of moments (DQMOM). :math:`M_{x,y}` is the moment of the soot NDF, where :math:`x` is the order for volume and :math:`y` for surface area; these terms are modeled according to

.. math::
M_{x,y} = N_0 V_0^x S_0^y + \exp{\left(\sum_{r=0}^R \sum_{k = 0}^r a_{r,k} x^k y^{r-k}\right)},

where :math:`R` is the order of the polynomial interpolation, :math:`a_{r,k}` are the interpolation coefficients, :math:`N_0` is the weight of the delta function, and :math:`V_0` and :math:`S_0` are the volume and surface area of the nucleated spherical soot particles, respectively. The location of the delta function is fixed at coordinates :math:`V_0` and :math:`S_0` and assumed to be equal to the nucleated particle size.
The nucleated particle volume and surface area are fixed according to :math:`V_0 = 2 W_C C_{\rm{dimer}} / \rho_{\rm{soot}}` and :math:`S_0 = (36 \pi)^{1/3} V_0^{2/3}`, where :math:`W_C` is the molar mass of carbon, :math:`C_{\rm{dimer}}` is the average number of carbon atoms per dimer, and :math:`\rho_{\rm{soot}}` is the density of soot (:math:`\rho_{\rm{soot}} = 1800 {\text{ kg/m}}^3`). If the first-order polynomial interpolation of the moments (:math:`R=1`) is used, the above equation reduces to

.. math::
M_{x,y} = N_0 V_0^x S_0^y + N_L V_L^x S_L^y,

where :math:`V_L` and :math:`S_L` are the mean volume and surface area of the second mode (large particles). For first-order polynomial interpolation, four transport equations are solved: :math:`M_{0,0}` (number density), :math:`M_{1,0}` (volume fraction, also denoted as :math:`f_v`), :math:`M_{0,1}`, and :math:`N_0`.
The governing equations for the soot moments are [#bisetti]_

.. math::
\frac{\partial M_{x,y}}{\partial t} + \frac{\partial M_{x,y} \mathbf{u}_g}{\partial \mathbf{X}} = -\frac{\partial \boldsymbol{J}_{M}}{\partial \mathbf{X}} + \dot{M}_{x,y},

where :math:`\boldsymbol{J}_{M}` is the soot mass flux and :math:`\dot{M}_{x,y}` is the soot source term.
The current formulation ignores the molecular diffusion and thermophoretic effects of the soot, making the first term of the right-hand side zero.

For more details regarding the HMOM model, users are encouraged to consult the references cited.

Soot Flags and Inputs
======================

* In the ``GNUmakefile``, specify ``USE_SOOT = TRUE`` and ``NUM_SOOT_MOMENTS = N`` where ``N`` is the number of moments to be used in the solution, either 3 or 6.

* Depending on the gas phase solver, soot solving functionality can be turned on in the input file using ``pelec.add_soot_src = 1`` or ``peleLM.do_soot_solve = 1``.

* The chemistry model specified with ``Chemistry_model =`` in ``GNUmakefile`` must contain the PAH inception species, as well as ``H2``, ``H``, ``OH``, ``H2O``, ``CO``, ``C2H2``, and ``O2``.

* A PAH inception species must be provided in the input file using ``soot.incept_pah =``. Currently, only one of three inputs are accepted: ``A2``, ``A3``, or ``A4``; which correspond to naphthalene (C10H8), phenathrene (C14H10), or pyrene (C16H10).

* If the inception species is named something other than ``A#`` in the chemistry model, a different name can be specified using ``soot.pah_name =``. However, ``soot.incept_pah`` must be set to ``A2``, ``A3``, or ``A4``.

.. [#mueller] "Hybrid Method of Moments for modeling soot formation and growth", M. E. Mueller and G. Blanquart and H. Pitsch, Comb. Flame, Vol. 156, No. 6, pp. 1143-1155 (2009)

.. [#bisetti] "On the formation and early evolution of soot in turbulent nonpremixed flames", F. Bisetti and G. Blanquart and M. E. Mueller and H. Pitsch, Comb. Flame, Vol. 159, No. 1, pp. 317-335 (2012)
490 changes: 490 additions & 0 deletions Docs/sphinx/Spray.rst

Large diffs are not rendered by default.

Binary file added Docs/sphinx/Visualization/abram_res.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Docs/sphinx/Visualization/daif_res.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Docs/sphinx/Visualization/inject_transform.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Docs/sphinx/Visualization/ton_res.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions Docs/sphinx/_static/mywrap.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@


/* override table no-wrap */
.wy-table-responsive table td, .wy-table-responsive table th {
white-space: inherit;
}
8 changes: 5 additions & 3 deletions Docs/sphinx/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
master_doc = 'index'
project = u'PelePhysics'
copyright = u'AMReX Copyright (c) 2022, The Regents of the University of California, through Lawrence Berkeley National Laboratory and the Alliance for Sustainable Energy, LLC., through National Renewable Energy Laboratory (subject to receipt of any required approvals from the U.S. Dept. of Energy). All rights reserved.'
author = u'J.B. Bell, M.S. Day, E. Motheau, D. Graves, M. Henry de Frahan, R.W. Grout, N. Wimer, B. Perry, L. Esclapez, M. Hassanaly, J. Rood'
author = u'J.B. Bell, M.S. Day, E. Motheau, D. Graves, M. Henry de Frahan, R.W. Grout, N. Wimer, B. Perry, L. Esclapez, M. Hassanaly, J. Rood, L. Owen, B. Soriano, M. Arient'
version = u'2022.10'
release = u'2022.10'
language = 'en'
Expand All @@ -15,18 +15,20 @@
numfig_format = {'figure': '%s', 'table': '%s', 'code-block': '%s'}
html_theme = 'sphinx_rtd_theme'
htmlhelp_basename = 'PelePhysicsDoc'
html_static_path = ['_static']
html_css_files = ['mywrap.css']
latex_elements = {
}
latex_documents = [
(master_doc, 'PelePhysics.tex', u'PelePhysics Documentation',
author, 'manual'),
]
man_pages = [
(master_doc, 'pelec', u'PelePhysics Documentation',
(master_doc, 'pelephysics', u'PelePhysics Documentation',
[author], 1)
]
texinfo_documents = [
(master_doc, 'PelePhysics', u'PelePhysics Documentation',
author, 'PelePhysics', 'One line description of project.',
author, 'PelePhysics', 'Documentation for PelePhysics.',
'Miscellaneous'),
]
2 changes: 2 additions & 0 deletions Docs/sphinx/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ point your web browser at the file ``${PELE_PHYSICS_DIR}/build/html/index.html``
Transport.rst
Thermodynamics.rst
EOS.rst
Spray.rst
Soot.rst
Utility.rst
Tutorials.rst
DeveloperGuide.rst
Expand Down
Loading