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
824005ea
Commit
824005ea
authored
7 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Corrections to the documentation of the isothermal EoS reported by Ashley Kelly.
parent
35ab2dac
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
src/equation_of_state.h
+13
-11
13 additions, 11 deletions
src/equation_of_state.h
with
13 additions
and
11 deletions
src/equation_of_state.h
+
13
−
11
View file @
824005ea
...
...
@@ -185,7 +185,7 @@ struct eos_parameters {
/**
* @brief Returns the internal energy given density and entropy
*
* Since we are using an isothermal EoS, the entropy
value is
ignored
* Since we are using an isothermal EoS, the entropy
and density values are
ignored
.
* Computes \f$u = u_{cst}\f$.
*
* @param density The density \f$\rho\f$.
...
...
@@ -196,10 +196,11 @@ gas_internal_energy_from_entropy(float density, float entropy) {
return
eos
.
isothermal_internal_energy
;
}
/**
* @brief Returns the pressure given density and entropy
*
* Since we are using an isothermal EoS, the entropy value is ignored
* Since we are using an isothermal EoS, the entropy value is ignored
.
* Computes \f$P = (\gamma - 1)u_{cst}\rho\f$.
*
* @param density The density \f$\rho\f$.
...
...
@@ -214,7 +215,8 @@ __attribute__((always_inline)) INLINE static float gas_pressure_from_entropy(
/**
* @brief Returns the entropy given density and pressure.
*
* Computes \f$A = \frac{P}{\rho^\gamma}\f$.
* Since we are using an isothermal EoS, the pressure value is ignored.
* Computes \f$A = (\gamma - 1)u_{cst}\rho^{-(\gamma-1)}\f$.
*
* @param density The density \f$\rho\f$.
* @param pressure The pressure \f$P\f$ (ignored).
...
...
@@ -230,8 +232,8 @@ __attribute__((always_inline)) INLINE static float gas_entropy_from_pressure(
/**
* @brief Returns the sound speed given density and entropy
*
* Since we are using an isothermal EoS, the entropy
value is
ignored
* Computes \f$c = \sqrt{u_{cst} \gamma
\rho^{
\gamma-1
}
}\f$.
* Since we are using an isothermal EoS, the entropy
and density values are
ignored
.
* Computes \f$c = \sqrt{u_{cst} \gamma
(
\gamma-1
)
}\f$.
*
* @param density The density \f$\rho\f$.
* @param entropy The entropy \f$S\f$.
...
...
@@ -246,7 +248,7 @@ __attribute__((always_inline)) INLINE static float gas_soundspeed_from_entropy(
/**
* @brief Returns the entropy given density and internal energy
*
* Since we are using an isothermal EoS, the energy value is ignored
* Since we are using an isothermal EoS, the energy value is ignored
.
* Computes \f$S = \frac{(\gamma - 1)u_{cst}}{\rho^{\gamma-1}}\f$.
*
* @param density The density \f$\rho\f$
...
...
@@ -262,7 +264,7 @@ gas_entropy_from_internal_energy(float density, float u) {
/**
* @brief Returns the pressure given density and internal energy
*
* Since we are using an isothermal EoS, the energy value is ignored
* Since we are using an isothermal EoS, the energy value is ignored
.
* Computes \f$P = (\gamma - 1)u_{cst}\rho\f$.
*
* @param density The density \f$\rho\f$
...
...
@@ -291,8 +293,8 @@ gas_internal_energy_from_pressure(float density, float pressure) {
/**
* @brief Returns the sound speed given density and internal energy
*
* Since we are using an isothermal EoS, the energy
value is
ignored
* Computes \f$c = \sqrt{u_{cst} \gamma
\rho^{
\gamma-1
}
}\f$.
* Since we are using an isothermal EoS, the energy
and density values are
ignored
.
* Computes \f$c = \sqrt{u_{cst} \gamma
(
\gamma-1
)
}\f$.
*
* @param density The density \f$\rho\f$
* @param u The internal energy \f$u\f$
...
...
@@ -307,8 +309,8 @@ gas_soundspeed_from_internal_energy(float density, float u) {
/**
* @brief Returns the sound speed given density and pressure
*
* Since we are using an isothermal EoS, the pressure
value is
ignored
* Computes \f$c = \sqrt{u_{cst} \gamma
\rho^{
\gamma-1
}
}\f$.
* Since we are using an isothermal EoS, the pressure
and density values are
ignored
.
* Computes \f$c = \sqrt{u_{cst} \gamma
(
\gamma-1
)
}\f$.
*
* @param density The density \f$\rho\f$
* @param P The pressure \f$P\f$
...
...
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