= density = pressure = internal specific energy = temperature = entropy
spans spans all elements
Second law of thermodynamics:
therefore
Ideal gas relation:
where = gas constant = heat capacity
polytropic gas heat capacity:
where = heat capacity ratio
polytropic ideal gas:
therefore
therefore
specific enthalpy:
where = enthalpy
second law, in terms of :
therefore
second law for polytropic ideal gas:
using
therefore
substitute into second law:
second law partials for polytropic ideal gas:
substitute
our partials of become:
solve to find the entropy function:
The entropy function should be constant (i.e. except in the presence of shock waves.
Notice that velocity does not appear in the entropy function.
Nor does it appear later in the entropy flux function .
This might be why the entropy flux function gradient with respect to primitives matches the diagonalized quasilinear solution,
which is equal to the acoustic matrix plus identity times .
This variables might be distinct of the entropy flux, but they are also distinct of what its gradient computes.
Characteristics
primitives:
conservatives:
for = total energy density = total specific energy
Derivative of conservative wrt primitive:
Derivative of primitives wrt conservatives:
Flux vector:
for = total entropy density = total specific entropy
Derivative of flux vector with respect to primitive variables:
Derivative of flux vector with respect to conservative variables:
Hyperbolic conservation law:
with respect to conservative variables:
Rewritten in terms of primitives:
reindex
Therefore the equivalent flux matrix for the primitive variables - the quasilinear flux matrix - is given by:
for the acoustic matrix in direction
Let be the speed of sound.
Right eigenvectors of :
has the following solutions:
combining of the 1st and 3rd constraints:
divide by :
Let
Therefore
substitute into the 2nd constraint:
equate this with the 2nd constraint:
solve for :
use and to solve for :
Then there is (TODO show where this comes from)
This is true for by the 1st and 3rd constraint, and by the 2nd constraint
Therefore we are left with three degrees of freedom: one of , and two of for
Put these together and we get:
For is the diagonal matrix of eigenvalues
and are the collection of eigenvectors , for the index denoting the distinct eigenvector.
Written out:
Now we can find the eigenvalues of the change in flux with respect to change in conservative as: by chain rule by inserting a delta by replacing the delta with a change in coordinates and its inverse
Now we can replace the with the acoustic matrix .
So the eigenvectors of are equal to those of plus (why? because is traceless?).
And (only if the eigenvectors of are equal to those of . why again?) the right eigenvectors of
are equal to .
Entropy Function
Entropy recap:
Derivative of wrt primitives:
Derivative of densitised entropy wrt primitives:
...transformed by the transpose quasilinear flux matrix...
So the gradient of the densitized entropy function, times the quasilinear flux matrix, is equal to the gradient of the combined densitized entropy function times the velocity in the flux direction.
Is that the conditions for the definition of the entropy flux?
Second derivative of densitized entropy with respect to primitives:
eigenvalues of second derivative of entropy with respect to primitives: times 3
and