Open mrhardman opened 9 months ago
I think we may have settled on a convention for the normalisation of the pressure (nref mref cref^2), but the units in the HDF5 output are not consistent with this (nref Tref). Is it possible to close this issue by documenting this clearly and cleaning up the diagnostic units? @johnomotani
@mrhardman I think that's true.
In the initial development of the 1D1V moment_kinetics models, the (parallel) pressure
ppar
was defined such that the thermal speedvth
was calculated in the code likevth = sqrt(2*ppar/density)
with
density
the species density. At the same time, the velocities were normalised to a reference speedcref = sqrt(2 Tref /mref)
. Whilst self-consistent for a certain normalisation of the pressure, the above convention leads to a pressure that is 1/2 of the conventionally normalised pressure. Typically, we would normalise the pressure tonref Tref = (1/2) mref nref cref^2
, wherenref
is a reference density. In this normalisationvth = sqrt(ppar/density)
The branch https://github.com/mabarnes/moment_kinetics/tree/radial-vperp-standard-DKE-Julia-1.7.2-mpi currently has all pressures defined in the latter convention, where is the master branch currently uses the former convention. Developers beware!
N.B. This discussion assumes that all masses are unity.
To Do: agree to a standard normalisation convention that are natural for both 1V and 2V simulations (where pperp and ppar are present).