-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #179 from decaluwe/science_update
WIP: Reorganize Science section.
- Loading branch information
Showing
9 changed files
with
177 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
.. slug: reactions | ||
.. slug: kinetics | ||
.. has_math: true | ||
.. title: Modeling Chemical Reactions | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
.. slug: thermodynamics | ||
.. has_math: true | ||
.. title: Calculating phase and species thermodynamics | ||
.. jumbotron:: | ||
|
||
.. raw:: html | ||
|
||
<h1 class="display-3">Calculating thermodynamic properties in Cantera</h1> | ||
|
||
.. class:: lead | ||
|
||
Here, we describe how Cantera uses species and phase information to calculate thermodynamic properties. | ||
|
||
Thermodynamic properties typically depend on information at both the species and phase levels. The user must specify thermodynamic models for both levels, and these selections must be compatible with one another. For instance: one cannot pair certain non-ideal species thermodyamic models with an ideal phase model. | ||
|
||
- The user must specify a thermodynamic model for each species and provide inputs that inform how species properties are calculated. For example, the user specifies how the reference enthalpy and entropy values for each species are calcualted, as a function of temperature. | ||
- The user also selects a phase model. This model describes how the species interact with one another to determine phase properties and species specific properties, for a given thermodynamic state. This includes general :math:`p`-:math:`\hat{v}`-:math:`T` behavior (for example, calculate the phase pressure for a given molar volume, temperature, and chemical composition), as well as how species-specific properties, such as internal energy, entropy, and others depend on the state variables | ||
|
||
Example: The Ideal Gas Model | ||
============================ | ||
For a simple example: in the Ideal Gas model, one might use 7-parameter NASA polynomials to specify the species reference thermodynamic quantities. These would be used to calculate the reference molar enthalpy :math:`\hat{h}_k^\circ(T)` and entropy :math:`\hat{s}_k^\circ(T)` for a given species :math:`k` as a function of temperature :math:`T`. See the `NASA Polynomials Species Thermo entry </science/science-species.html#the-nasa-7-coefficient-polynomial-parameterization>`__ for more information. | ||
|
||
At the phase level, the Ideal Gas Law provides the :math:`P`-:math:`\hat{v}`-:math:`T` relationship. The ideal gas law is an example of an equation of state. This is used, for example, to calculate the pressure as a function of molar volume :math:`\hat{v}`, and temperature, :math:`T`: | ||
|
||
.. math:: | ||
p = \frac{\overline{R}T}{\hat{v}} | ||
where :math:`\overline{R}` is the Universal Gas Constant. The `Maxwell relations <https://en.wikipedia.org/wiki/Maxwell_relations>`__ are used to derive other thermodynamic properties from the equation of state. With the Ideal Gas phase model, these reduce to rather simple forms. For example, for a species :math:`k`, the Ideal Gas molar internal energy :math:`\hat{u}_k` and entropy :math:`\hat{s}_k` are: | ||
|
||
.. math:: | ||
\hat{u}_k = \hat{h}^\circ_k(T) - p\hat{v} | ||
\hat{s}_k = \hat{s}^\circ_k(T) - \overline{R}\ln\left(\frac{pX_k}{p^\circ}\right) | ||
where :math:`X_k` is the mole fraction of species :math:`k`, and where :math:`p^\circ` is the reference pressure at which the properties :math:`\hat{h}_k^\circ(T)` and :math:`\hat{s}_k^\circ(T)` are known. | ||
|
||
Please click either of the cards below for details on the species and phase models available in Cantera: | ||
|
||
.. container:: container | ||
:tagname: section | ||
|
||
.. container:: card-deck | ||
|
||
.. container:: card | ||
|
||
.. container:: | ||
:tagname: a | ||
:attributes: href=species-thermo.html | ||
title=Species | ||
|
||
.. container:: card-header section-card | ||
:tagname: div | ||
|
||
Species | ||
|
||
.. container:: card-body | ||
|
||
.. container:: card-text | ||
|
||
The models and equations that Cantera uses to calculate species thermodynamic properties, such as the NASA 7-parameter polynomial form. | ||
|
||
.. container:: card | ||
|
||
.. container:: | ||
:tagname: a | ||
:attributes: href=phase-thermo.html | ||
title=Phases | ||
|
||
.. container:: card-header section-card | ||
:tagname: div | ||
|
||
Phases | ||
|
||
.. container:: card-body | ||
|
||
.. container:: card-text | ||
|
||
The theory behind some of Cantera's phase models, such as the Ideal Gas Law. | ||
|
||
|
Oops, something went wrong.