Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SWIFTsim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SWIFT
SWIFTsim
Commits
e4128a10
Commit
e4128a10
authored
5 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Better description of the EoS in the online documentation, especially of the isothermal case
parent
691bb573
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/RTD/source/EquationOfState/index.rst
+17
-9
17 additions, 9 deletions
doc/RTD/source/EquationOfState/index.rst
with
17 additions
and
9 deletions
doc/RTD/source/EquationOfState/index.rst
+
17
−
9
View file @
e4128a10
...
@@ -7,18 +7,24 @@
...
@@ -7,18 +7,24 @@
Equations of State
Equations of State
==================
==================
Currently
(if the documentation was well updated), we have two different gas
Currently
, SWIFT offers two different gas equations of state (EoS)
equations of state (EoS)
implemented: ideal and isothermal; as well as a variety
implemented:
``
ideal
``
and
``
isothermal
``
; as well as a variety
of EoS for
of EoS for
"planetary" materials.
"planetary" materials.
The EoS describe the relations between our
The EoS describe the relations between our main thermodynamical variables:
main thermodynamical variables: the internal energy per unit mass
the internal energy
(\\(u\\)), the density (\\(\\rho\\)), the entropy (\\(A\\))
(\\(u\\)), the
mass
density (\\(\\rho\\)), the entropy (\\(A\\))
and
and
the pressure (\\(P\\)).
the pressure (\\(P\\)).
Gas EoS
Gas EoS
-------
-------
In the following section, the variables not yet defined are: \\(\\gamma\\) for
We write the adiabatic index as \\(\\gamma \\) and \\( c_s \\) denotes
the adiabatic index and \\( c_s \\) for the speed of sound.
the speed of sound. The adiabatic index can be changed at configure
time by choosing one of the allowed values of the option
``--with-adiabatic-index``. The default value is \\(\\gamma = 5/3 \\).
The tables below give the expression for the thermodynamic quantities
on each row entry as a function of the gas density and the
thermodynamical quantity given in the header of each column.
.. csv-table:: Ideal Gas
.. csv-table:: Ideal Gas
:header: "Variable", "A", "u", "P"
:header: "Variable", "A", "u", "P"
...
@@ -38,7 +44,9 @@ the adiabatic index and \\( c_s \\) for the speed of sound.
...
@@ -38,7 +44,9 @@ the adiabatic index and \\( c_s \\) for the speed of sound.
"P", "", "\\(\\left( \\gamma - 1\\right) u \\rho \\)", ""
"P", "", "\\(\\left( \\gamma - 1\\right) u \\rho \\)", ""
"\\( c_s\\)", "", "\\(\\sqrt{ u \\gamma \\left( \\gamma - 1 \\right) } \\)", ""
"\\( c_s\\)", "", "\\(\\sqrt{ u \\gamma \\left( \\gamma - 1 \\right) } \\)", ""
Note that when running with an isothermal equation of state, the value
of the internal energy written to the snapshots is meaningless. The
other quantities (pressure, entropy, ...) are, however, correct.
Planetary EoS
Planetary EoS
-------------
-------------
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment