Commit b8f4c77c authored by James Willis's avatar James Willis
Browse files

Rearranged and replaced: div_v,curl_v->balsara,entropy_dt,pressure->P_over_rho...

Rearranged and replaced: div_v,curl_v->balsara,entropy_dt,pressure->P_over_rho variables of the part struct.
parent 7a95f1e1
......@@ -25,6 +25,8 @@ struct xpart {
/* Velocity at the last full step. */
float v_full[3];
} __attribute__((aligned(xpart_align)));
......@@ -55,15 +57,12 @@ struct part {
/* Particle density. */
float rho;
/* Derivative of the density with respect to this particle's smoothing length.
*/
float rho_dh;
/* Particle entropy. */
float entropy;
/* Entropy time derivative */
float entropy_dt;
/* Derivative of the density with respect to this particle's smoothing length.
*/
float rho_dh;
/* Particle mass. */
float mass;
......@@ -72,37 +71,40 @@ struct part {
struct {
/* Number of neighbours */
/* Number of neighbours. */
float wcount;
/* Number of neighbours spatial derivative */
/* Number of neighbours spatial derivative. */
float wcount_dh;
/* Velocity curl components */
/* Particle velocity curl. */
float rot_v[3];
/* Particle velocity divergence. */
float div_v;
} density;
struct {
/* Velocity curl norm*/
float curl_v;
/* Balsara switch */
float balsara;
/* Signal velocity */
/* Signal velocity. */
float v_sig;
/* Particle pressure */
float pressure;
/* Pressure over density*/
float P_over_rho;
/* Particle sound speed */
/* Particle sound speed. */
float soundspeed;
/* Entropy time derivative */
float entropy_dt;
} force;
};
/* Velocity divergence */
float div_v;
/* Particle ID. */
long long id;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment